Documentation ¶
Index ¶
- func GetVariables(regex string) (envs map[string]interface{}, err error)
- type Build
- type Substitutions
- func (s *Substitutions) Add(data map[interface{}]interface{}, optimistic bool) (err error)
- func (s *Substitutions) Eval(data map[interface{}]interface{}, substs map[interface{}]interface{}, ...) (eval map[interface{}]interface{}, err error)
- func (s *Substitutions) Get() map[interface{}]interface{}
- func (s *Substitutions) GetMap() map[string]interface{}
- func (s *Substitutions) Walk(path string, f fs.FileInfo) error
- type SubstitutionsConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetVariables ¶
Types ¶
type Build ¶
type Build struct { Manifests []map[interface{}]interface{} Kustomization *kustomize.Kustomize Substitutions *Substitutions // contains filtered or unexported fields }
func (*Build) BuildSubstitutions ¶ added in v0.3.0
type Substitutions ¶
type Substitutions struct { Subst map[interface{}]interface{} `yaml:"subst"` Config SubstitutionsConfig `yaml:"config"` Resources resmap.ResMap // contains filtered or unexported fields }
func NewSubstitutions ¶
func NewSubstitutions(cfg SubstitutionsConfig, decrypts []decrypt.Decryptor, res resmap.ResMap) (s *Substitutions, err error)
func (*Substitutions) Add ¶
func (s *Substitutions) Add(data map[interface{}]interface{}, optimistic bool) (err error)
adds new data to the Substitutions
func (*Substitutions) Eval ¶
func (s *Substitutions) Eval(data map[interface{}]interface{}, substs map[interface{}]interface{}, optimistic bool) (eval map[interface{}]interface{}, err error)
Merge merges the Substitutions with the given data
func (*Substitutions) Get ¶
func (s *Substitutions) Get() map[interface{}]interface{}
Get returns the Substitutions as map[interface{}]interface{}
func (*Substitutions) GetMap ¶
func (s *Substitutions) GetMap() map[string]interface{}
ToMap returns the Substitutions as map[string]interface{}
Click to show internal directories.
Click to hide internal directories.