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 ¶
func (t *JSONPatchTransformer) Transform(src *unstructured.Unstructured) (*unstructured.Unstructured, error)
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 ¶
func (t *MetadataTransformer) Transform(src *unstructured.Unstructured) (*unstructured.Unstructured, error)
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
Click to show internal directories.
Click to hide internal directories.