v3

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterClusterGeneratingHandler

func RegisterClusterGeneratingHandler(ctx context.Context, controller ClusterController, apply apply.Apply,
	condition condition.Cond, name string, handler ClusterGeneratingHandler, opts *generic.GeneratingHandlerOptions)

RegisterClusterGeneratingHandler configures a ClusterController to execute a ClusterGeneratingHandler 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 RegisterClusterStatusHandler

func RegisterClusterStatusHandler(ctx context.Context, controller ClusterController, condition condition.Cond, name string, handler ClusterStatusHandler)

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

func RegisterFeatureGeneratingHandler added in v0.3.10

func RegisterFeatureGeneratingHandler(ctx context.Context, controller FeatureController, apply apply.Apply,
	condition condition.Cond, name string, handler FeatureGeneratingHandler, opts *generic.GeneratingHandlerOptions)

RegisterFeatureGeneratingHandler configures a FeatureController to execute a FeatureGeneratingHandler 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 RegisterFeatureStatusHandler added in v0.3.10

func RegisterFeatureStatusHandler(ctx context.Context, controller FeatureController, condition condition.Cond, name string, handler FeatureStatusHandler)

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

func RegisterGlobalRoleGeneratingHandler added in v0.5.0

func RegisterGlobalRoleGeneratingHandler(ctx context.Context, controller GlobalRoleController, apply apply.Apply,
	condition condition.Cond, name string, handler GlobalRoleGeneratingHandler, opts *generic.GeneratingHandlerOptions)

RegisterGlobalRoleGeneratingHandler configures a GlobalRoleController to execute a GlobalRoleGeneratingHandler 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 RegisterGlobalRoleStatusHandler added in v0.5.0

func RegisterGlobalRoleStatusHandler(ctx context.Context, controller GlobalRoleController, condition condition.Cond, name string, handler GlobalRoleStatusHandler)

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

func RegisterNodeGeneratingHandler added in v0.3.6

func RegisterNodeGeneratingHandler(ctx context.Context, controller NodeController, apply apply.Apply,
	condition condition.Cond, name string, handler NodeGeneratingHandler, opts *generic.GeneratingHandlerOptions)

RegisterNodeGeneratingHandler configures a NodeController to execute a NodeGeneratingHandler 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 RegisterNodeStatusHandler added in v0.3.6

func RegisterNodeStatusHandler(ctx context.Context, controller NodeController, condition condition.Cond, name string, handler NodeStatusHandler)

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

func RegisterProjectGeneratingHandler added in v0.4.0

func RegisterProjectGeneratingHandler(ctx context.Context, controller ProjectController, apply apply.Apply,
	condition condition.Cond, name string, handler ProjectGeneratingHandler, opts *generic.GeneratingHandlerOptions)

RegisterProjectGeneratingHandler configures a ProjectController to execute a ProjectGeneratingHandler 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 RegisterProjectStatusHandler added in v0.4.0

func RegisterProjectStatusHandler(ctx context.Context, controller ProjectController, condition condition.Cond, name string, handler ProjectStatusHandler)

RegisterProjectStatusHandler configures a ProjectController to execute a ProjectStatusHandler 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 ClusterCache

type ClusterCache interface {
	generic.NonNamespacedCacheInterface[*v3.Cluster]
}

ClusterCache interface for retrieving Cluster resources in memory.

type ClusterClient

type ClusterClient interface {
	generic.NonNamespacedClientInterface[*v3.Cluster, *v3.ClusterList]
}

ClusterClient interface for managing Cluster resources in Kubernetes.

type ClusterController

type ClusterController interface {
	generic.NonNamespacedControllerInterface[*v3.Cluster, *v3.ClusterList]
}

ClusterController interface for managing Cluster resources.

type ClusterGeneratingHandler

type ClusterGeneratingHandler func(obj *v3.Cluster, status v3.ClusterStatus) ([]runtime.Object, v3.ClusterStatus, error)

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

type ClusterProxyConfigCache added in v0.5.0

type ClusterProxyConfigCache interface {
	generic.CacheInterface[*v3.ClusterProxyConfig]
}

ClusterProxyConfigCache interface for retrieving ClusterProxyConfig resources in memory.

type ClusterProxyConfigClient added in v0.5.0

type ClusterProxyConfigClient interface {
	generic.ClientInterface[*v3.ClusterProxyConfig, *v3.ClusterProxyConfigList]
}

ClusterProxyConfigClient interface for managing ClusterProxyConfig resources in Kubernetes.

type ClusterProxyConfigController added in v0.5.0

type ClusterProxyConfigController interface {
	generic.ControllerInterface[*v3.ClusterProxyConfig, *v3.ClusterProxyConfigList]
}

ClusterProxyConfigController interface for managing ClusterProxyConfig resources.

type ClusterRoleTemplateBindingCache added in v0.1.6

type ClusterRoleTemplateBindingCache interface {
	generic.CacheInterface[*v3.ClusterRoleTemplateBinding]
}

ClusterRoleTemplateBindingCache interface for retrieving ClusterRoleTemplateBinding resources in memory.

type ClusterRoleTemplateBindingClient added in v0.1.6

type ClusterRoleTemplateBindingClient interface {
	generic.ClientInterface[*v3.ClusterRoleTemplateBinding, *v3.ClusterRoleTemplateBindingList]
}

ClusterRoleTemplateBindingClient interface for managing ClusterRoleTemplateBinding resources in Kubernetes.

type ClusterRoleTemplateBindingController added in v0.1.6

type ClusterRoleTemplateBindingController interface {
	generic.ControllerInterface[*v3.ClusterRoleTemplateBinding, *v3.ClusterRoleTemplateBindingList]
}

ClusterRoleTemplateBindingController interface for managing ClusterRoleTemplateBinding resources.

type ClusterStatusHandler

type ClusterStatusHandler func(obj *v3.Cluster, status v3.ClusterStatus) (v3.ClusterStatus, error)

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

type FeatureCache added in v0.3.10

type FeatureCache interface {
	generic.NonNamespacedCacheInterface[*v3.Feature]
}

FeatureCache interface for retrieving Feature resources in memory.

type FeatureClient added in v0.3.10

type FeatureClient interface {
	generic.NonNamespacedClientInterface[*v3.Feature, *v3.FeatureList]
}

FeatureClient interface for managing Feature resources in Kubernetes.

type FeatureController added in v0.3.10

type FeatureController interface {
	generic.NonNamespacedControllerInterface[*v3.Feature, *v3.FeatureList]
}

FeatureController interface for managing Feature resources.

type FeatureGeneratingHandler added in v0.3.10

type FeatureGeneratingHandler func(obj *v3.Feature, status v3.FeatureStatus) ([]runtime.Object, v3.FeatureStatus, error)

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

type FeatureStatusHandler added in v0.3.10

type FeatureStatusHandler func(obj *v3.Feature, status v3.FeatureStatus) (v3.FeatureStatus, error)

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

type GlobalRoleBindingCache added in v0.4.0

type GlobalRoleBindingCache interface {
	generic.NonNamespacedCacheInterface[*v3.GlobalRoleBinding]
}

GlobalRoleBindingCache interface for retrieving GlobalRoleBinding resources in memory.

type GlobalRoleBindingClient added in v0.4.0

type GlobalRoleBindingClient interface {
	generic.NonNamespacedClientInterface[*v3.GlobalRoleBinding, *v3.GlobalRoleBindingList]
}

GlobalRoleBindingClient interface for managing GlobalRoleBinding resources in Kubernetes.

type GlobalRoleBindingController added in v0.4.0

type GlobalRoleBindingController interface {
	generic.NonNamespacedControllerInterface[*v3.GlobalRoleBinding, *v3.GlobalRoleBindingList]
}

GlobalRoleBindingController interface for managing GlobalRoleBinding resources.

type GlobalRoleCache

type GlobalRoleCache interface {
	generic.NonNamespacedCacheInterface[*v3.GlobalRole]
}

GlobalRoleCache interface for retrieving GlobalRole resources in memory.

type GlobalRoleClient

type GlobalRoleClient interface {
	generic.NonNamespacedClientInterface[*v3.GlobalRole, *v3.GlobalRoleList]
}

GlobalRoleClient interface for managing GlobalRole resources in Kubernetes.

type GlobalRoleController

type GlobalRoleController interface {
	generic.NonNamespacedControllerInterface[*v3.GlobalRole, *v3.GlobalRoleList]
}

GlobalRoleController interface for managing GlobalRole resources.

type GlobalRoleGeneratingHandler added in v0.5.0

type GlobalRoleGeneratingHandler func(obj *v3.GlobalRole, status v3.GlobalRoleStatus) ([]runtime.Object, v3.GlobalRoleStatus, error)

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

type GlobalRoleStatusHandler added in v0.5.0

type GlobalRoleStatusHandler func(obj *v3.GlobalRole, status v3.GlobalRoleStatus) (v3.GlobalRoleStatus, error)

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

type Interface

type Interface interface {
	Cluster() ClusterController
	ClusterProxyConfig() ClusterProxyConfigController
	ClusterRoleTemplateBinding() ClusterRoleTemplateBindingController
	Feature() FeatureController
	GlobalRole() GlobalRoleController
	GlobalRoleBinding() GlobalRoleBindingController
	Node() NodeController
	PodSecurityAdmissionConfigurationTemplate() PodSecurityAdmissionConfigurationTemplateController
	Project() ProjectController
	ProjectRoleTemplateBinding() ProjectRoleTemplateBindingController
	RoleTemplate() RoleTemplateController
}

func New

func New(controllerFactory controller.SharedControllerFactory) Interface

type NodeCache added in v0.3.6

type NodeCache interface {
	generic.CacheInterface[*v3.Node]
}

NodeCache interface for retrieving Node resources in memory.

type NodeClient added in v0.3.6

type NodeClient interface {
	generic.ClientInterface[*v3.Node, *v3.NodeList]
}

NodeClient interface for managing Node resources in Kubernetes.

type NodeController added in v0.3.6

type NodeController interface {
	generic.ControllerInterface[*v3.Node, *v3.NodeList]
}

NodeController interface for managing Node resources.

type NodeGeneratingHandler added in v0.3.6

type NodeGeneratingHandler func(obj *v3.Node, status v3.NodeStatus) ([]runtime.Object, v3.NodeStatus, error)

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

type NodeStatusHandler added in v0.3.6

type NodeStatusHandler func(obj *v3.Node, status v3.NodeStatus) (v3.NodeStatus, error)

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

type PodSecurityAdmissionConfigurationTemplateCache added in v0.3.2

type PodSecurityAdmissionConfigurationTemplateCache interface {
	generic.NonNamespacedCacheInterface[*v3.PodSecurityAdmissionConfigurationTemplate]
}

PodSecurityAdmissionConfigurationTemplateCache interface for retrieving PodSecurityAdmissionConfigurationTemplate resources in memory.

type PodSecurityAdmissionConfigurationTemplateClient added in v0.3.2

PodSecurityAdmissionConfigurationTemplateClient interface for managing PodSecurityAdmissionConfigurationTemplate resources in Kubernetes.

type PodSecurityAdmissionConfigurationTemplateController added in v0.3.2

PodSecurityAdmissionConfigurationTemplateController interface for managing PodSecurityAdmissionConfigurationTemplate resources.

type ProjectCache added in v0.4.0

type ProjectCache interface {
	generic.CacheInterface[*v3.Project]
}

ProjectCache interface for retrieving Project resources in memory.

type ProjectClient added in v0.4.0

type ProjectClient interface {
	generic.ClientInterface[*v3.Project, *v3.ProjectList]
}

ProjectClient interface for managing Project resources in Kubernetes.

type ProjectController added in v0.4.0

type ProjectController interface {
	generic.ControllerInterface[*v3.Project, *v3.ProjectList]
}

ProjectController interface for managing Project resources.

type ProjectGeneratingHandler added in v0.4.0

type ProjectGeneratingHandler func(obj *v3.Project, status v3.ProjectStatus) ([]runtime.Object, v3.ProjectStatus, error)

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

type ProjectRoleTemplateBindingCache added in v0.1.6

type ProjectRoleTemplateBindingCache interface {
	generic.CacheInterface[*v3.ProjectRoleTemplateBinding]
}

ProjectRoleTemplateBindingCache interface for retrieving ProjectRoleTemplateBinding resources in memory.

type ProjectRoleTemplateBindingClient added in v0.1.6

type ProjectRoleTemplateBindingClient interface {
	generic.ClientInterface[*v3.ProjectRoleTemplateBinding, *v3.ProjectRoleTemplateBindingList]
}

ProjectRoleTemplateBindingClient interface for managing ProjectRoleTemplateBinding resources in Kubernetes.

type ProjectRoleTemplateBindingController added in v0.1.6

type ProjectRoleTemplateBindingController interface {
	generic.ControllerInterface[*v3.ProjectRoleTemplateBinding, *v3.ProjectRoleTemplateBindingList]
}

ProjectRoleTemplateBindingController interface for managing ProjectRoleTemplateBinding resources.

type ProjectStatusHandler added in v0.4.0

type ProjectStatusHandler func(obj *v3.Project, status v3.ProjectStatus) (v3.ProjectStatus, error)

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

type RoleTemplateCache

type RoleTemplateCache interface {
	generic.NonNamespacedCacheInterface[*v3.RoleTemplate]
}

RoleTemplateCache interface for retrieving RoleTemplate resources in memory.

type RoleTemplateClient

type RoleTemplateClient interface {
	generic.NonNamespacedClientInterface[*v3.RoleTemplate, *v3.RoleTemplateList]
}

RoleTemplateClient interface for managing RoleTemplate resources in Kubernetes.

type RoleTemplateController

type RoleTemplateController interface {
	generic.NonNamespacedControllerInterface[*v3.RoleTemplate, *v3.RoleTemplateList]
}

RoleTemplateController interface for managing RoleTemplate resources.

Jump to

Keyboard shortcuts

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