resrctransfrmr

package
v0.0.0-...-b0e6734 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DropInvalidAnnotationsAndLabelsTransformer

type DropInvalidAnnotationsAndLabelsTransformer struct{}

TODO(3.0): remove this transformer. Replace it with proper early validation of resource Heads.

func NewDropInvalidAnnotationsAndLabelsTransformer

func NewDropInvalidAnnotationsAndLabelsTransformer() *DropInvalidAnnotationsAndLabelsTransformer

func (*DropInvalidAnnotationsAndLabelsTransformer) Match

func (*DropInvalidAnnotationsAndLabelsTransformer) Transform

func (*DropInvalidAnnotationsAndLabelsTransformer) Type

type ResourceInfo

type ResourceInfo struct {
	Obj          *unstructured.Unstructured
	Type         resrc.Type
	ManageableBy resrc.ManageableBy
}

type ResourceListsTransformer

type ResourceListsTransformer struct{}

func NewResourceListsTransformer

func NewResourceListsTransformer() *ResourceListsTransformer

func (*ResourceListsTransformer) Match

func (t *ResourceListsTransformer) Match(ctx context.Context, info *ResourceInfo) (matched bool, err error)

func (*ResourceListsTransformer) Transform

func (*ResourceListsTransformer) Type

func (t *ResourceListsTransformer) Type() Type

type ResourceTransformer

type ResourceTransformer interface {
	Match(ctx context.Context, resourceInfo *ResourceInfo) (matched bool, err error)
	Transform(ctx context.Context, matchedResourceInfo *ResourceInfo) (output []*unstructured.Unstructured, err error)
	Type() Type
}

type Type

type Type string
const TypeDropInvalidAnnotationsAndLabelsTransformer Type = "drop-invalid-annotations-and-labels-transformer"
const TypeResourceListsTransformer Type = "resource-lists-transformer"

Jump to

Keyboard shortcuts

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