accumulator

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfigFromCRDs

func LoadConfigFromCRDs(
	ldr ifc.Loader, paths []string) (*builtinconfig.TransformerConfig, error)

LoadConfigFromCRDs parse CRD schemas from paths into a TransformerConfig

Types

type ResAccumulator

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

ResAccumulator accumulates resources and the rules used to customize those resources. It's a ResMap plus stuff needed to modify the ResMap.

func MakeEmptyAccumulator

func MakeEmptyAccumulator() *ResAccumulator

func (*ResAccumulator) AbsorbAll

func (ra *ResAccumulator) AbsorbAll(
	resources resmap.ResMap) error

func (*ResAccumulator) AppendAll

func (ra *ResAccumulator) AppendAll(
	resources resmap.ResMap) error

func (*ResAccumulator) FixBackReferences

func (ra *ResAccumulator) FixBackReferences() (err error)

func (*ResAccumulator) GetTransformerConfig

func (ra *ResAccumulator) GetTransformerConfig() *builtinconfig.TransformerConfig

func (*ResAccumulator) MergeAccumulator

func (ra *ResAccumulator) MergeAccumulator(other *ResAccumulator) (err error)

func (*ResAccumulator) MergeConfig

func (ra *ResAccumulator) MergeConfig(
	tConfig *builtinconfig.TransformerConfig) (err error)

func (*ResAccumulator) MergeVars

func (ra *ResAccumulator) MergeVars(incoming []types.Var) error

func (*ResAccumulator) ResMap

func (ra *ResAccumulator) ResMap() resmap.ResMap

ResMap returns a copy of the internal resMap.

func (*ResAccumulator) ResolveVars

func (ra *ResAccumulator) ResolveVars() error

func (*ResAccumulator) Transform

func (ra *ResAccumulator) Transform(t resmap.Transformer) error

func (*ResAccumulator) Vars

func (ra *ResAccumulator) Vars() []types.Var

Vars returns a copy of underlying vars.

Directories

Path Synopsis
Package expansion provides functions find and replace $(FOO) style variables in strings.
Package expansion provides functions find and replace $(FOO) style variables in strings.

Jump to

Keyboard shortcuts

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