v1alpha1

package
v0.0.0-...-464e5c2 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterBundleGeneratingHandler

func RegisterBundleGeneratingHandler(ctx context.Context, controller BundleController, apply apply.Apply,
	condition condition.Cond, name string, handler BundleGeneratingHandler, opts *generic.GeneratingHandlerOptions)

RegisterBundleGeneratingHandler configures a BundleController to execute a BundleGeneratingHandler 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 RegisterBundleStatusHandler

func RegisterBundleStatusHandler(ctx context.Context, controller BundleController, condition condition.Cond, name string, handler BundleStatusHandler)

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

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 RegisterClusterGroupGeneratingHandler

func RegisterClusterGroupGeneratingHandler(ctx context.Context, controller ClusterGroupController, apply apply.Apply,
	condition condition.Cond, name string, handler ClusterGroupGeneratingHandler, opts *generic.GeneratingHandlerOptions)

RegisterClusterGroupGeneratingHandler configures a ClusterGroupController to execute a ClusterGroupGeneratingHandler 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 RegisterClusterGroupStatusHandler

func RegisterClusterGroupStatusHandler(ctx context.Context, controller ClusterGroupController, condition condition.Cond, name string, handler ClusterGroupStatusHandler)

RegisterClusterGroupStatusHandler configures a ClusterGroupController to execute a ClusterGroupStatusHandler for every events observed. 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

Types

type BundleCache

type BundleCache interface {
	generic.CacheInterface[*v1alpha1.Bundle]
}

BundleCache interface for retrieving Bundle resources in memory.

type BundleClient

type BundleClient interface {
	generic.ClientInterface[*v1alpha1.Bundle, *v1alpha1.BundleList]
}

BundleClient interface for managing Bundle resources in Kubernetes.

type BundleController

type BundleController interface {
	generic.ControllerInterface[*v1alpha1.Bundle, *v1alpha1.BundleList]
}

BundleController interface for managing Bundle resources.

type BundleGeneratingHandler

type BundleGeneratingHandler func(obj *v1alpha1.Bundle, status v1alpha1.BundleStatus) ([]runtime.Object, v1alpha1.BundleStatus, error)

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

type BundleStatusHandler

type BundleStatusHandler func(obj *v1alpha1.Bundle, status v1alpha1.BundleStatus) (v1alpha1.BundleStatus, error)

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

type ClusterCache

type ClusterCache interface {
	generic.CacheInterface[*v1alpha1.Cluster]
}

ClusterCache interface for retrieving Cluster resources in memory.

type ClusterClient

type ClusterClient interface {
	generic.ClientInterface[*v1alpha1.Cluster, *v1alpha1.ClusterList]
}

ClusterClient interface for managing Cluster resources in Kubernetes.

type ClusterController

type ClusterController interface {
	generic.ControllerInterface[*v1alpha1.Cluster, *v1alpha1.ClusterList]
}

ClusterController interface for managing Cluster resources.

type ClusterGeneratingHandler

type ClusterGeneratingHandler func(obj *v1alpha1.Cluster, status v1alpha1.ClusterStatus) ([]runtime.Object, v1alpha1.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 ClusterGroupCache

type ClusterGroupCache interface {
	generic.CacheInterface[*v1alpha1.ClusterGroup]
}

ClusterGroupCache interface for retrieving ClusterGroup resources in memory.

type ClusterGroupClient

type ClusterGroupClient interface {
	generic.ClientInterface[*v1alpha1.ClusterGroup, *v1alpha1.ClusterGroupList]
}

ClusterGroupClient interface for managing ClusterGroup resources in Kubernetes.

type ClusterGroupController

type ClusterGroupController interface {
	generic.ControllerInterface[*v1alpha1.ClusterGroup, *v1alpha1.ClusterGroupList]
}

ClusterGroupController interface for managing ClusterGroup resources.

type ClusterGroupGeneratingHandler

type ClusterGroupGeneratingHandler func(obj *v1alpha1.ClusterGroup, status v1alpha1.ClusterGroupStatus) ([]runtime.Object, v1alpha1.ClusterGroupStatus, error)

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

type ClusterGroupStatusHandler

type ClusterGroupStatusHandler func(obj *v1alpha1.ClusterGroup, status v1alpha1.ClusterGroupStatus) (v1alpha1.ClusterGroupStatus, error)

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

type ClusterStatusHandler

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

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

type Interface

type Interface interface {
	Bundle() BundleController
	Cluster() ClusterController
	ClusterGroup() ClusterGroupController
}

func New

func New(controllerFactory controller.SharedControllerFactory) Interface

Jump to

Keyboard shortcuts

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