Documentation ¶
Index ¶
- type DropInvalidAnnotationsAndLabelsTransformer
- func (t *DropInvalidAnnotationsAndLabelsTransformer) Match(ctx context.Context, info *ResourceInfo) (matched bool, err error)
- func (t *DropInvalidAnnotationsAndLabelsTransformer) Transform(ctx context.Context, info *ResourceInfo) ([]*unstructured.Unstructured, error)
- func (t *DropInvalidAnnotationsAndLabelsTransformer) Type() Type
- type ResourceInfo
- type ResourceListsTransformer
- type ResourceTransformer
- type Type
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 (t *DropInvalidAnnotationsAndLabelsTransformer) Match(ctx context.Context, info *ResourceInfo) (matched bool, err error)
func (*DropInvalidAnnotationsAndLabelsTransformer) Transform ¶
func (t *DropInvalidAnnotationsAndLabelsTransformer) Transform(ctx context.Context, info *ResourceInfo) ([]*unstructured.Unstructured, error)
func (*DropInvalidAnnotationsAndLabelsTransformer) Type ¶
func (t *DropInvalidAnnotationsAndLabelsTransformer) Type() 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 (t *ResourceListsTransformer) Transform(ctx context.Context, info *ResourceInfo) ([]*unstructured.Unstructured, error)
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 }
Click to show internal directories.
Click to hide internal directories.