Documentation ¶
Index ¶
- func DecodeAny(manifest io.Reader, options ...DecodeOption) (k8s.Object, error)
- func DecodeEach(ctx context.Context, manifest io.Reader, handlerFn HandlerFunc, ...) error
- func DecodeUnstructured(unstructured *unstructured.Unstructured) (k8s.Object, error)
- type DecodeOption
- type HandlerFunc
- type MutateFunc
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeEach ¶
func DecodeEach(ctx context.Context, manifest io.Reader, handlerFn HandlerFunc, options ...DecodeOption) error
func DecodeUnstructured ¶
func DecodeUnstructured(unstructured *unstructured.Unstructured) (k8s.Object, error)
Types ¶
type DecodeOption ¶
type DecodeOption func(*Options)
func DefaultGVK ¶
func DefaultGVK(def *schema.GroupVersionKind) DecodeOption
func WithMutation ¶
func WithMutation(mut MutateFunc) DecodeOption
type MutateFunc ¶
type Options ¶
type Options struct { DefaultGVK *schema.GroupVersionKind MutateFuncs []MutateFunc }
Click to show internal directories.
Click to hide internal directories.