mutation

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMetaGeneratePatchesHandler

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

Types

type ClusterGetter added in v0.8.0

type ClusterGetter func(context.Context) (*clusterv1.Cluster, error)

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,
		getCluster ClusterGetter,
	) 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