Documentation ¶
Overview ¶
Package transformers has implementations of resmap.ResMap transformers.
Index ¶
- type Transformer
- func NewAnnotationsMapTransformer(m map[string]string, fs []config.FieldSpec) (Transformer, error)
- func NewImageTransformer(slice []image.Image) (Transformer, error)
- func NewLabelsMapTransformer(m map[string]string, fs []config.FieldSpec) (Transformer, error)
- func NewMapTransformer(pc []config.FieldSpec, m map[string]string) (Transformer, error)
- func NewMultiTransformer(t []Transformer) Transformer
- func NewMultiTransformerWithConflictCheck(t []Transformer) Transformer
- func NewNamePrefixSuffixTransformer(np, ns string, fieldSpecs []config.FieldSpec) (Transformer, error)
- func NewNameReferenceTransformer(br []config.NameBackReferences) Transformer
- func NewNamespaceTransformer(ns string, cf []config.FieldSpec) Transformer
- func NewNoOpTransformer() Transformer
- func NewRefVarTransformer(varMap map[string]string, fs []config.FieldSpec) Transformer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Transformer ¶
type Transformer interface { // Transform modifies data in the argument, e.g. adding labels to resources that can be labelled. Transform(m resmap.ResMap) error }
A Transformer modifies an instance of resmap.ResMap.
func NewAnnotationsMapTransformer ¶ added in v1.0.9
NewAnnotationsMapTransformer construct a mapTransformer.
func NewImageTransformer ¶
func NewImageTransformer(slice []image.Image) (Transformer, error)
NewImageTransformer constructs an imageTransformer.
func NewLabelsMapTransformer ¶ added in v1.0.9
NewLabelsMapTransformer constructs a mapTransformer.
func NewMapTransformer ¶
NewMapTransformer construct a mapTransformer.
func NewMultiTransformer ¶
func NewMultiTransformer(t []Transformer) Transformer
NewMultiTransformer constructs a multiTransformer.
func NewMultiTransformerWithConflictCheck ¶ added in v1.0.8
func NewMultiTransformerWithConflictCheck(t []Transformer) Transformer
NewMultiTransformerWithConflictCheck constructs a multiTransformer with checking of conflicts.
func NewNamePrefixSuffixTransformer ¶ added in v1.0.11
func NewNamePrefixSuffixTransformer( np, ns string, fieldSpecs []config.FieldSpec) (Transformer, error)
NewNamePrefixSuffixTransformer makes a namePrefixSuffixTransformer.
func NewNameReferenceTransformer ¶
func NewNameReferenceTransformer(br []config.NameBackReferences) Transformer
NewNameReferenceTransformer constructs a nameReferenceTransformer with a given slice of NameBackReferences.
func NewNamespaceTransformer ¶ added in v1.0.2
func NewNamespaceTransformer(ns string, cf []config.FieldSpec) Transformer
NewNamespaceTransformer construct a namespaceTransformer.
func NewNoOpTransformer ¶
func NewNoOpTransformer() Transformer
NewNoOpTransformer constructs a noOpTransformer.
func NewRefVarTransformer ¶ added in v1.0.2
func NewRefVarTransformer( varMap map[string]string, fs []config.FieldSpec) Transformer
NewRefVarTransformer returns a Transformer that replaces $(VAR) style variables with values. The fieldSpecs are the places to look for occurrences of $(VAR).
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package config provides the functions to load default or user provided configurations for different transformers
|
Package config provides the functions to load default or user provided configurations for different transformers |
defaultconfig
Package defaultconfig provides the default transformer configurations
|
Package defaultconfig provides the default transformer configurations |