v1

package
v0.0.0-...-1338e51 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterDaemonSetGeneratingHandler

func RegisterDaemonSetGeneratingHandler(ctx context.Context, controller DaemonSetController, apply apply.Apply,
	condition condition.Cond, name string, handler DaemonSetGeneratingHandler, opts *generic.GeneratingHandlerOptions)

RegisterDaemonSetGeneratingHandler configures a DaemonSetController to execute a DaemonSetGeneratingHandler 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 RegisterDaemonSetStatusHandler

func RegisterDaemonSetStatusHandler(ctx context.Context, controller DaemonSetController, condition condition.Cond, name string, handler DaemonSetStatusHandler)

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

func RegisterDeploymentGeneratingHandler

func RegisterDeploymentGeneratingHandler(ctx context.Context, controller DeploymentController, apply apply.Apply,
	condition condition.Cond, name string, handler DeploymentGeneratingHandler, opts *generic.GeneratingHandlerOptions)

RegisterDeploymentGeneratingHandler configures a DeploymentController to execute a DeploymentGeneratingHandler 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 RegisterDeploymentStatusHandler

func RegisterDeploymentStatusHandler(ctx context.Context, controller DeploymentController, condition condition.Cond, name string, handler DeploymentStatusHandler)

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

func RegisterReplicaSetGeneratingHandler

func RegisterReplicaSetGeneratingHandler(ctx context.Context, controller ReplicaSetController, apply apply.Apply,
	condition condition.Cond, name string, handler ReplicaSetGeneratingHandler, opts *generic.GeneratingHandlerOptions)

RegisterReplicaSetGeneratingHandler configures a ReplicaSetController to execute a ReplicaSetGeneratingHandler 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 RegisterReplicaSetStatusHandler

func RegisterReplicaSetStatusHandler(ctx context.Context, controller ReplicaSetController, condition condition.Cond, name string, handler ReplicaSetStatusHandler)

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

func RegisterStatefulSetGeneratingHandler

func RegisterStatefulSetGeneratingHandler(ctx context.Context, controller StatefulSetController, apply apply.Apply,
	condition condition.Cond, name string, handler StatefulSetGeneratingHandler, opts *generic.GeneratingHandlerOptions)

RegisterStatefulSetGeneratingHandler configures a StatefulSetController to execute a StatefulSetGeneratingHandler 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 RegisterStatefulSetStatusHandler

func RegisterStatefulSetStatusHandler(ctx context.Context, controller StatefulSetController, condition condition.Cond, name string, handler StatefulSetStatusHandler)

RegisterStatefulSetStatusHandler configures a StatefulSetController to execute a StatefulSetStatusHandler 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 ControllerRevisionCache

type ControllerRevisionCache interface {
	generic.CacheInterface[*v1.ControllerRevision]
}

ControllerRevisionCache interface for retrieving ControllerRevision resources in memory.

type ControllerRevisionClient

type ControllerRevisionClient interface {
	generic.ClientInterface[*v1.ControllerRevision, *v1.ControllerRevisionList]
}

ControllerRevisionClient interface for managing ControllerRevision resources in Kubernetes.

type ControllerRevisionController

type ControllerRevisionController interface {
	generic.ControllerInterface[*v1.ControllerRevision, *v1.ControllerRevisionList]
}

ControllerRevisionController interface for managing ControllerRevision resources.

type DaemonSetCache

type DaemonSetCache interface {
	generic.CacheInterface[*v1.DaemonSet]
}

DaemonSetCache interface for retrieving DaemonSet resources in memory.

type DaemonSetClient

type DaemonSetClient interface {
	generic.ClientInterface[*v1.DaemonSet, *v1.DaemonSetList]
}

DaemonSetClient interface for managing DaemonSet resources in Kubernetes.

type DaemonSetController

type DaemonSetController interface {
	generic.ControllerInterface[*v1.DaemonSet, *v1.DaemonSetList]
}

DaemonSetController interface for managing DaemonSet resources.

type DaemonSetGeneratingHandler

type DaemonSetGeneratingHandler func(obj *v1.DaemonSet, status v1.DaemonSetStatus) ([]runtime.Object, v1.DaemonSetStatus, error)

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

type DaemonSetStatusHandler

type DaemonSetStatusHandler func(obj *v1.DaemonSet, status v1.DaemonSetStatus) (v1.DaemonSetStatus, error)

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

type DeploymentCache

type DeploymentCache interface {
	generic.CacheInterface[*v1.Deployment]
}

DeploymentCache interface for retrieving Deployment resources in memory.

type DeploymentClient

type DeploymentClient interface {
	generic.ClientInterface[*v1.Deployment, *v1.DeploymentList]
}

DeploymentClient interface for managing Deployment resources in Kubernetes.

type DeploymentController

type DeploymentController interface {
	generic.ControllerInterface[*v1.Deployment, *v1.DeploymentList]
}

DeploymentController interface for managing Deployment resources.

type DeploymentGeneratingHandler

type DeploymentGeneratingHandler func(obj *v1.Deployment, status v1.DeploymentStatus) ([]runtime.Object, v1.DeploymentStatus, error)

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

type DeploymentStatusHandler

type DeploymentStatusHandler func(obj *v1.Deployment, status v1.DeploymentStatus) (v1.DeploymentStatus, error)

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

type Interface

type Interface interface {
	ControllerRevision() ControllerRevisionController
	DaemonSet() DaemonSetController
	Deployment() DeploymentController
	ReplicaSet() ReplicaSetController
	StatefulSet() StatefulSetController
}

func New

func New(controllerFactory controller.SharedControllerFactory, ts *session.Session) Interface

type ReplicaSetCache

type ReplicaSetCache interface {
	generic.CacheInterface[*v1.ReplicaSet]
}

ReplicaSetCache interface for retrieving ReplicaSet resources in memory.

type ReplicaSetClient

type ReplicaSetClient interface {
	generic.ClientInterface[*v1.ReplicaSet, *v1.ReplicaSetList]
}

ReplicaSetClient interface for managing ReplicaSet resources in Kubernetes.

type ReplicaSetController

type ReplicaSetController interface {
	generic.ControllerInterface[*v1.ReplicaSet, *v1.ReplicaSetList]
}

ReplicaSetController interface for managing ReplicaSet resources.

type ReplicaSetGeneratingHandler

type ReplicaSetGeneratingHandler func(obj *v1.ReplicaSet, status v1.ReplicaSetStatus) ([]runtime.Object, v1.ReplicaSetStatus, error)

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

type ReplicaSetStatusHandler

type ReplicaSetStatusHandler func(obj *v1.ReplicaSet, status v1.ReplicaSetStatus) (v1.ReplicaSetStatus, error)

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

type StatefulSetCache

type StatefulSetCache interface {
	generic.CacheInterface[*v1.StatefulSet]
}

StatefulSetCache interface for retrieving StatefulSet resources in memory.

type StatefulSetClient

type StatefulSetClient interface {
	generic.ClientInterface[*v1.StatefulSet, *v1.StatefulSetList]
}

StatefulSetClient interface for managing StatefulSet resources in Kubernetes.

type StatefulSetController

type StatefulSetController interface {
	generic.ControllerInterface[*v1.StatefulSet, *v1.StatefulSetList]
}

StatefulSetController interface for managing StatefulSet resources.

type StatefulSetGeneratingHandler

type StatefulSetGeneratingHandler func(obj *v1.StatefulSet, status v1.StatefulSetStatus) ([]runtime.Object, v1.StatefulSetStatus, error)

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

type StatefulSetStatusHandler

type StatefulSetStatusHandler func(obj *v1.StatefulSet, status v1.StatefulSetStatus) (v1.StatefulSetStatus, error)

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