generator

package
v0.0.0-...-0d9a3c4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2025 License: Apache-2.0, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

Generator is a deployment generator.

func NewGenerator

func NewGenerator(store deployment.ManifestGeneratorStore, logger *slog.Logger) Generator

NewGenerator creates a new deployment generator.

func (*Generator) Generate

func (d *Generator) Generate(m sp.Module, raw cue.Value, env string) ([]byte, error)

Generate generates manifests for a deployment module.

func (*Generator) GenerateBundle

func (d *Generator) GenerateBundle(b deployment.ModuleBundle, env cue.Value) (GeneratorResult, error)

GenerateBundle generates manifests for a deployment bundle.

type GeneratorResult

type GeneratorResult struct {
	Manifests map[string][]byte
	Module    []byte
}

GeneratorResult is the result of a deployment generation.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳