fkt

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	Kustomization *Kustomization       `yaml:"kustomization,flow"`
	Managed       *bool                `yaml:"managed"`
	Values        *Values              `yaml:"values,flow"`
	Resources     map[string]*Resource `yaml:"resources,flow"`
	AgePublicKey  string               `yaml:"age_public_key"`
	// contains filtered or unexported fields
}

type Config

type Config struct {
	Settings *Settings           `yaml:"settings"`
	Values   Values              `yaml:"values,flow"`
	Clusters map[string]*Cluster `yaml:"clusters"`
	Secrets  struct {
		SecretsFile string `yaml:"file"`
		// contains filtered or unexported fields
	} `yaml:"secrets"`
}

func LoadConfig

func LoadConfig(configurationFile string) (*Config, error)

func (*Config) Process

func (config *Config) Process() error

func (*Config) Validate

func (config *Config) Validate() error

type K8S added in v0.20.0

type K8S struct {
	Kind string `json:"kind"`
}

type Kustomization added in v0.11.0

type Kustomization struct {
	APIVersion        string            `yaml:"apiVersion"`
	Kind              string            `yaml:"kind"`
	Resources         []string          `yaml:"resources"`
	CommonAnnotations map[string]string `yaml:"commonAnnotations"`
	Patches           []interface{}     `yaml:"patches"`
}

type LogConfig

type LogConfig struct {
	Level  LogLevel  `yaml:"level"`
	File   string    `yaml:"file"`
	Format LogFormat `yaml:"format"`
}

type LogFormat

type LogFormat string
const (
	ConsoleFormat LogFormat = "console"
	JsonFormat    LogFormat = "json"
	DefaultFormat LogFormat = "console"
)

func (*LogFormat) UnmarshalYAML

func (l *LogFormat) UnmarshalYAML(value *yaml.Node) error

type LogLevel

type LogLevel string
const (
	TraceLevel   LogLevel = "trace"
	DebugLevel   LogLevel = "debug"
	InfoLevel    LogLevel = "info"
	WarnLevel    LogLevel = "warn"
	ErrorLevel   LogLevel = "error"
	PanicLevel   LogLevel = "none"
	DefaultLevel LogLevel = "none"
)

func (*LogLevel) UnmarshalYAML

func (l *LogLevel) UnmarshalYAML(value *yaml.Node) error

type Resource added in v0.20.0

type Resource struct {
	Template  *string `yaml:"template"`
	Namespace *string `yaml:"namespace"`
	Values    Values  `yaml:"values,flow"`
	Managed   *bool   `yaml:"managed"`
	Name      string
}

type Secrets added in v0.20.0

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

type Settings

type Settings struct {
	DryRun     bool       `yaml:"dry_run"`
	LogConfig  *LogConfig `yaml:"log"`
	Delimiters struct {
		Left  string `yaml:"left"`
		Right string `yaml:"right"`
	} `yaml:"delimiters"`
	Directories struct {
		Templates string `yaml:"templates"`
		Target    string `yaml:"target"`
		// contains filtered or unexported fields
	} `yaml:"directories"`
	// contains filtered or unexported fields
}

func (*Settings) Defaults added in v0.6.0

func (settings *Settings) Defaults(
	baseDirectory string,
	dryRun bool,
	logConfig LogConfig,
) error

func (*Settings) Validate

func (settings *Settings) Validate() error

type Values

type Values map[string]interface{}

func ProcessValues added in v0.18.0

func ProcessValues(values ...*Values) Values

Jump to

Keyboard shortcuts

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