state

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

README

State

This package is defined to implement all common state defined for common tasks.

State defined in a controller can import common state in this package directly to avoid too many duplicated interface implementation.

Now it only implements

  • IFeatureGates

Expected:

  • IObject

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ICluster

type ICluster interface {
	Cluster() *v1alpha1.Cluster
}

type IFeatureGates

type IFeatureGates interface {
	FeatureGates() features.Gates
}

func NewFeatureGates

func NewFeatureGates[
	S scope.Object[F, T],
	F client.Object,
	T runtime.Object,
](obj IObjectAndCluster[F]) IFeatureGates

type IObject

type IObject[T client.Object] interface {
	Object() T
}

type IObjectAndCluster

type IObjectAndCluster[T client.Object] interface {
	IObject[T]
	ICluster
}

type IPDClient

type IPDClient interface {
	GetPDClient() pdapi.PDClient
	SetPDClient(pdapi.PDClient)
}

func NewPDClientState

func NewPDClientState() IPDClient

Jump to

Keyboard shortcuts

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