model

package
v1.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DefaultConfigMapDataKey = "configmap-values.yaml"
	DefaultSecretDataKey    = "secret-values.yaml"
)
View Source
const (
	ValueFileMergeStrategyCustomOrder                        = "CustomOrder"
	ValueFileMergeStrategySameTypeInLayerOrder               = "SameTypeInLayerOrder"
	ValueFileMergeStrategyConfigMapsInLayerOrder             = "ConfigMapsInLayerOrder"
	ValueFileMergeStrategySecretsInLayerOrder                = "SecretsInLayerOrder"
	ValueFileMergeStrategyConfigMapsAndSecretsInLayerOrder   = "ConfigMapsAndSecretsInLayerOrder" // nolint:gosec
	ValueFileMergeStrategySameTypeFromCurrentLayer           = "SameTypeFromCurrentLayer"
	ValueFileMergeStrategyConfigMapAndSecretFromCurrentLayer = "ConfigMapAndSecretFromCurrentLayer" // nolint:gosec
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomOrderValueMergeStrategyOptions

type CustomOrderValueMergeStrategyOptions struct {
	Order []ValueMergeReference `yaml:"order"`
}

type Include

type Include struct {
	Id        string          `yaml:"id"`
	Function  IncludeFunction `yaml:"function"`
	Path      Path            `yaml:"path"`
	Extension string          `yaml:"extension"`
}

type IncludeFunction

type IncludeFunction struct {
	Name string `yaml:"name"`
}

type Layer

type Layer struct {
	Id        string    `yaml:"id"`
	Path      Path      `yaml:"path"`
	Values    Values    `yaml:"values"`
	Templates Templates `yaml:"templates"`
	Patches   Patches   `yaml:"patches"`
}

type PatchOptions

type PatchOptions struct {
	Name     string `yaml:"name"`
	Required bool   `yaml:"required"`
}

type Patches

type Patches struct {
	Path      Path         `yaml:"path"`
	ConfigMap PatchOptions `yaml:"configMap"`
	Secret    PatchOptions `yaml:"secret"`
}

type Path

type Path struct {
	Directory string `yaml:"directory"`
	Required  bool   `yaml:"required"`
}

type RawMessage

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

func (*RawMessage) Unmarshal

func (msg *RawMessage) Unmarshal(v interface{}) error

func (*RawMessage) UnmarshalYAML

func (msg *RawMessage) UnmarshalYAML(unmarshal func(interface{}) error) error

type Schema

type Schema struct {
	Variables []Variable `yaml:"variables"`
	Layers    []Layer    `yaml:"layers"`
	Includes  []Include  `yaml:"includes"`
}

type Template

type Template struct {
	Name     string           `yaml:"name"`
	Required bool             `yaml:"required"`
	Values   ValueFileOptions `yaml:"values"`
}

type Templates

type Templates struct {
	Path      Path     `yaml:"path"`
	ConfigMap Template `yaml:"configMap"`
	Secret    Template `yaml:"secret"`
}

type Value

type Value struct {
	Name     string `yaml:"name"`
	Required bool   `yaml:"required"`
}

type ValueFileMergeOptions

type ValueFileMergeOptions struct {
	Strategy string     `yaml:"strategy"`
	Options  RawMessage `yaml:"options"`
}

type ValueFileOptions

type ValueFileOptions struct {
	Merge ValueFileMergeOptions `yaml:"merge"`
}

type ValueMergeReference

type ValueMergeReference struct {
	LayerId string                  `yaml:"layerId"`
	Type    ValueMergeReferenceType `yaml:"type"`
}

type ValueMergeReferenceType

type ValueMergeReferenceType string
const (
	ValueMergeReferenceTypeConfigMap ValueMergeReferenceType = "ConfigMap"
	ValueMergeReferenceTypeSecret    ValueMergeReferenceType = "Secret"
)

type Values

type Values struct {
	Path      Path  `yaml:"path"`
	ConfigMap Value `yaml:"configMap"`
	Secret    Value `yaml:"secret"`
}

type Variable

type Variable struct {
	Name     string `yaml:"name"`
	Required bool   `yaml:"required"`
	Default  string `yaml:"default"`
}

Jump to

Keyboard shortcuts

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