v1

package
v1.4.0-dev-20240802 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: Apache-2.0 Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterPersistentVolumeGeneratingHandler

func RegisterPersistentVolumeGeneratingHandler(ctx context.Context, controller PersistentVolumeController, apply apply.Apply,
	condition condition.Cond, name string, handler PersistentVolumeGeneratingHandler, opts *generic.GeneratingHandlerOptions)

RegisterPersistentVolumeGeneratingHandler configures a PersistentVolumeController to execute a PersistentVolumeGeneratingHandler for every events observed, passing the returned objects to the provided apply.Apply. If a non-empty condition is provided, it will be updated in the status conditions for every handler execution

func RegisterPersistentVolumeStatusHandler

func RegisterPersistentVolumeStatusHandler(ctx context.Context, controller PersistentVolumeController, condition condition.Cond, name string, handler PersistentVolumeStatusHandler)

RegisterPersistentVolumeStatusHandler configures a PersistentVolumeController to execute a PersistentVolumeStatusHandler for every events observed. If a non-empty condition is provided, it will be updated in the status conditions for every handler execution

func RegisterResourceQuotaGeneratingHandler added in v1.2.0

func RegisterResourceQuotaGeneratingHandler(ctx context.Context, controller ResourceQuotaController, apply apply.Apply,
	condition condition.Cond, name string, handler ResourceQuotaGeneratingHandler, opts *generic.GeneratingHandlerOptions)

RegisterResourceQuotaGeneratingHandler configures a ResourceQuotaController to execute a ResourceQuotaGeneratingHandler for every events observed, passing the returned objects to the provided apply.Apply. If a non-empty condition is provided, it will be updated in the status conditions for every handler execution

func RegisterResourceQuotaStatusHandler added in v1.2.0

func RegisterResourceQuotaStatusHandler(ctx context.Context, controller ResourceQuotaController, condition condition.Cond, name string, handler ResourceQuotaStatusHandler)

RegisterResourceQuotaStatusHandler configures a ResourceQuotaController to execute a ResourceQuotaStatusHandler for every events observed. If a non-empty condition is provided, it will be updated in the status conditions for every handler execution

Types

type Interface

type Interface interface {
	PersistentVolume() PersistentVolumeController
	ResourceQuota() ResourceQuotaController
}

func New

func New(controllerFactory controller.SharedControllerFactory) Interface

type PersistentVolumeCache

type PersistentVolumeCache interface {
	generic.NonNamespacedCacheInterface[*v1.PersistentVolume]
}

PersistentVolumeCache interface for retrieving PersistentVolume resources in memory.

type PersistentVolumeClient

type PersistentVolumeClient interface {
	generic.NonNamespacedClientInterface[*v1.PersistentVolume, *v1.PersistentVolumeList]
}

PersistentVolumeClient interface for managing PersistentVolume resources in Kubernetes.

type PersistentVolumeController

type PersistentVolumeController interface {
	generic.NonNamespacedControllerInterface[*v1.PersistentVolume, *v1.PersistentVolumeList]
}

PersistentVolumeController interface for managing PersistentVolume resources.

type PersistentVolumeGeneratingHandler

type PersistentVolumeGeneratingHandler func(obj *v1.PersistentVolume, status v1.PersistentVolumeStatus) ([]runtime.Object, v1.PersistentVolumeStatus, error)

PersistentVolumeGeneratingHandler is the top-level handler that is executed for every PersistentVolume event. It extends PersistentVolumeStatusHandler by a returning a slice of child objects to be passed to apply.Apply

type PersistentVolumeStatusHandler

type PersistentVolumeStatusHandler func(obj *v1.PersistentVolume, status v1.PersistentVolumeStatus) (v1.PersistentVolumeStatus, error)

PersistentVolumeStatusHandler is executed for every added or modified PersistentVolume. Should return the new status to be updated

type ResourceQuotaCache added in v1.2.0

type ResourceQuotaCache interface {
	generic.CacheInterface[*v1.ResourceQuota]
}

ResourceQuotaCache interface for retrieving ResourceQuota resources in memory.

type ResourceQuotaClient added in v1.2.0

type ResourceQuotaClient interface {
	generic.ClientInterface[*v1.ResourceQuota, *v1.ResourceQuotaList]
}

ResourceQuotaClient interface for managing ResourceQuota resources in Kubernetes.

type ResourceQuotaController added in v1.2.0

type ResourceQuotaController interface {
	generic.ControllerInterface[*v1.ResourceQuota, *v1.ResourceQuotaList]
}

ResourceQuotaController interface for managing ResourceQuota resources.

type ResourceQuotaGeneratingHandler added in v1.2.0

type ResourceQuotaGeneratingHandler func(obj *v1.ResourceQuota, status v1.ResourceQuotaStatus) ([]runtime.Object, v1.ResourceQuotaStatus, error)

ResourceQuotaGeneratingHandler is the top-level handler that is executed for every ResourceQuota event. It extends ResourceQuotaStatusHandler by a returning a slice of child objects to be passed to apply.Apply

type ResourceQuotaStatusHandler added in v1.2.0

type ResourceQuotaStatusHandler func(obj *v1.ResourceQuota, status v1.ResourceQuotaStatus) (v1.ResourceQuotaStatus, error)

ResourceQuotaStatusHandler is executed for every added or modified ResourceQuota. Should return the new status to be updated

Jump to

Keyboard shortcuts

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