mutation

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMetaGeneratePatchesHandler

func NewMetaGeneratePatchesHandler(
	name string,
	mutators ...MetaMutator,
) handlers.Named

Types

type DiscoverVariables

type DiscoverVariables interface {
	DiscoverVariables(
		context.Context,
		*runtimehooksv1.DiscoverVariablesRequest,
		*runtimehooksv1.DiscoverVariablesResponse,
	)
}

type GeneratePatches

type GeneratePatches interface {
	GeneratePatches(
		context.Context,
		*runtimehooksv1.GeneratePatchesRequest,
		*runtimehooksv1.GeneratePatchesResponse,
	)
}

type MetaMutator

type MetaMutator interface {
	Mutate(
		ctx context.Context,
		obj *unstructured.Unstructured,
		vars map[string]apiextensionsv1.JSON,
		holderRef runtimehooksv1.HolderReference,
		clusterKey client.ObjectKey,
	) error
}

type MutateFunc

type MutateFunc func(
	ctx context.Context,
	obj *unstructured.Unstructured,
	vars map[string]apiextensionsv1.JSON,
	holderRef runtimehooksv1.HolderReference,
	clusterKey client.ObjectKey,
) error

type ValidateTopology

type ValidateTopology interface {
	ValidateTopology(
		context.Context,
		*runtimehooksv1.ValidateTopologyRequest,
		*runtimehooksv1.ValidateTopologyResponse,
	)
}

Jump to

Keyboard shortcuts

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