resrctransfrmr

package
v0.0.0-...-119410a Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 TypeResourceListsTransformer Type = "resource-lists-transformer"

Jump to

Keyboard shortcuts

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