v3

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2025 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

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

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

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

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

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

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

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

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

func RegisterUserGeneratingHandler added in v0.6.1

func RegisterUserGeneratingHandler(ctx context.Context, controller UserController, apply apply.Apply,
	condition condition.Cond, name string, handler UserGeneratingHandler, opts *generic.GeneratingHandlerOptions)

RegisterUserGeneratingHandler configures a UserController to execute a UserGeneratingHandler 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 RegisterUserStatusHandler added in v0.6.1

func RegisterUserStatusHandler(ctx context.Context, controller UserController, condition condition.Cond, name string, handler UserStatusHandler)

RegisterUserStatusHandler configures a UserController to execute a UserStatusHandler 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

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

ClusterProxyConfigCache interface for retrieving ClusterProxyConfig resources in memory.

type ClusterProxyConfigClient

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

ClusterProxyConfigClient interface for managing ClusterProxyConfig resources in Kubernetes.

type ClusterProxyConfigController

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

ClusterProxyConfigController interface for managing ClusterProxyConfig resources.

type ClusterRoleTemplateBindingCache

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

ClusterRoleTemplateBindingCache interface for retrieving ClusterRoleTemplateBinding resources in memory.

type ClusterRoleTemplateBindingClient

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

ClusterRoleTemplateBindingClient interface for managing ClusterRoleTemplateBinding resources in Kubernetes.

type ClusterRoleTemplateBindingController

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

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

FeatureCache interface for retrieving Feature resources in memory.

type FeatureClient

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

FeatureClient interface for managing Feature resources in Kubernetes.

type FeatureController

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

FeatureController interface for managing Feature resources.

type FeatureGeneratingHandler

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

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

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

GlobalRoleBindingCache interface for retrieving GlobalRoleBinding resources in memory.

type GlobalRoleBindingClient

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

GlobalRoleBindingClient interface for managing GlobalRoleBinding resources in Kubernetes.

type GlobalRoleBindingController

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

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

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
	Setting() SettingController
	User() UserController
	UserAttribute() UserAttributeController
}

func New

func New(controllerFactory controller.SharedControllerFactory) Interface

type NodeCache

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

NodeCache interface for retrieving Node resources in memory.

type NodeClient

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

NodeClient interface for managing Node resources in Kubernetes.

type NodeController

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

NodeController interface for managing Node resources.

type NodeGeneratingHandler

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

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

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

PodSecurityAdmissionConfigurationTemplateCache interface for retrieving PodSecurityAdmissionConfigurationTemplate resources in memory.

type PodSecurityAdmissionConfigurationTemplateClient

PodSecurityAdmissionConfigurationTemplateClient interface for managing PodSecurityAdmissionConfigurationTemplate resources in Kubernetes.

type PodSecurityAdmissionConfigurationTemplateController

PodSecurityAdmissionConfigurationTemplateController interface for managing PodSecurityAdmissionConfigurationTemplate resources.

type ProjectCache

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

ProjectCache interface for retrieving Project resources in memory.

type ProjectClient

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

ProjectClient interface for managing Project resources in Kubernetes.

type ProjectController

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

ProjectController interface for managing Project resources.

type ProjectGeneratingHandler

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

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

ProjectRoleTemplateBindingCache interface for retrieving ProjectRoleTemplateBinding resources in memory.

type ProjectRoleTemplateBindingClient

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

ProjectRoleTemplateBindingClient interface for managing ProjectRoleTemplateBinding resources in Kubernetes.

type ProjectRoleTemplateBindingController

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

ProjectRoleTemplateBindingController interface for managing ProjectRoleTemplateBinding resources.

type ProjectStatusHandler

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.

type SettingCache added in v0.6.1

type SettingCache interface {
	generic.NonNamespacedCacheInterface[*v3.Setting]
}

SettingCache interface for retrieving Setting resources in memory.

type SettingClient added in v0.6.1

type SettingClient interface {
	generic.NonNamespacedClientInterface[*v3.Setting, *v3.SettingList]
}

SettingClient interface for managing Setting resources in Kubernetes.

type SettingController added in v0.6.1

type SettingController interface {
	generic.NonNamespacedControllerInterface[*v3.Setting, *v3.SettingList]
}

SettingController interface for managing Setting resources.

type UserAttributeCache added in v0.4.17

type UserAttributeCache interface {
	generic.NonNamespacedCacheInterface[*v3.UserAttribute]
}

UserAttributeCache interface for retrieving UserAttribute resources in memory.

type UserAttributeClient added in v0.4.17

type UserAttributeClient interface {
	generic.NonNamespacedClientInterface[*v3.UserAttribute, *v3.UserAttributeList]
}

UserAttributeClient interface for managing UserAttribute resources in Kubernetes.

type UserAttributeController added in v0.4.17

type UserAttributeController interface {
	generic.NonNamespacedControllerInterface[*v3.UserAttribute, *v3.UserAttributeList]
}

UserAttributeController interface for managing UserAttribute resources.

type UserCache added in v0.6.1

type UserCache interface {
	generic.NonNamespacedCacheInterface[*v3.User]
}

UserCache interface for retrieving User resources in memory.

type UserClient added in v0.6.1

type UserClient interface {
	generic.NonNamespacedClientInterface[*v3.User, *v3.UserList]
}

UserClient interface for managing User resources in Kubernetes.

type UserController added in v0.6.1

type UserController interface {
	generic.NonNamespacedControllerInterface[*v3.User, *v3.UserList]
}

UserController interface for managing User resources.

type UserGeneratingHandler added in v0.6.1

type UserGeneratingHandler func(obj *v3.User, status v3.UserStatus) ([]runtime.Object, v3.UserStatus, error)

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

type UserStatusHandler added in v0.6.1

type UserStatusHandler func(obj *v3.User, status v3.UserStatus) (v3.UserStatus, error)

UserStatusHandler is executed for every added or modified User. 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