transformer

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyTransformers added in v0.3.0

func ApplyTransformers(ctx context.Context, transformers []Transformer, objects []unstructured.Unstructured) ([]unstructured.Unstructured, error)

ApplyTransformers applies all transformer to each unstructured objects

func Name

func Name(trans Transformer) string

Types

type JSONPatchTransformer

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

func NewJSONPatchTransformer

func NewJSONPatchTransformer(json6902 []cosmov1alpha1.Json6902, instName string) *JSONPatchTransformer

func (*JSONPatchTransformer) Transform

type MetadataTransformer

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

func NewMetadataTransformer

func NewMetadataTransformer(inst cosmov1alpha1.InstanceObject, scheme *runtime.Scheme, disableNamePrefix bool) *MetadataTransformer

func (*MetadataTransformer) Transform

type Transformer

type Transformer interface {
	Transform(*unstructured.Unstructured) (*unstructured.Unstructured, error)
}

Transformer is interface to modify unstructured object

func AllTransformers added in v0.5.0

func AllTransformers(inst cosmov1alpha1.InstanceObject, scheme *runtime.Scheme, tmpl cosmov1alpha1.TemplateObject) []Transformer

Jump to

Keyboard shortcuts

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