cuegen

package
v0.14.4 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(config Config) error

Exec initializes the Cuegen struct and executes cuegen

func GetGitFS

func GetGitFS(component string) (fs.FS, error)

GetGitFS returns a fs.FS from the given git repository URL

Types

type Component

type Component struct {
	Filesystem fs.FS
	ID         string
	Path       string
	Type       string
}

type Components

type Components map[string]Component

type Config

type Config struct {
	APIVersion string `yaml:"apiVersion"`
	Kind       string `yaml:"kind"`
	Metadata   struct {
		Name string `yaml:"name"`
	} `yaml:"metadata"`
	Components     []string `yaml:"components"`
	Debug          bool     `yaml:"debug"`
	ObjectsPath    string   `yaml:"objectsPath"`
	SecretDataPath string   `yaml:"secretDataPath"`
	ChartRoot      string
	CheckPath      string   `yaml:"checkPath"`
	CheckPaths     []string `yaml:"checkPaths"`
	RootFS         *fs.FS
	// workaround file order bug in cue
	RootFsIndex           uint8 `yaml:"rootIndex"`
	EnableOrderWorkaround bool  `yaml:"enableOrderWorkaround"`
	//
	Spec struct {
		Imports        []string `yaml:"imports"`
		Debug          bool     `yaml:"debug"`
		ObjectsPath    string   `yaml:"objectsPath"`
		YqPostProcess  string   `yaml:"yqPostProcess"`
		CheckPath      string   `yaml:"checkPath"`
		CheckPaths     []string `yaml:"checkPaths"`
		SecretDataPath string   `yaml:"secretDataPath"`
	} `yaml:"spec"`
}

type Cuegen

type Cuegen struct {
	Components            Components
	Debug                 bool
	ObjectsPath           string
	SecretDataPath        string
	CheckPaths            []string
	ChartRoot             string
	DumpOverlaysTo        string
	RootFS                *fs.FS
	EnableOrderWorkaround bool
}

func (Cuegen) Exec

func (cg Cuegen) Exec() error

func (Cuegen) PrintConfig

func (cg Cuegen) PrintConfig()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL