v1

package
v0.6.1-rc.12 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterClusterRepoGeneratingHandler

func RegisterClusterRepoGeneratingHandler(ctx context.Context, controller ClusterRepoController, apply apply.Apply,
	condition condition.Cond, name string, handler ClusterRepoGeneratingHandler, opts *generic.GeneratingHandlerOptions)

RegisterClusterRepoGeneratingHandler configures a ClusterRepoController to execute a ClusterRepoGeneratingHandler 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 RegisterClusterRepoStatusHandler

func RegisterClusterRepoStatusHandler(ctx context.Context, controller ClusterRepoController, condition condition.Cond, name string, handler ClusterRepoStatusHandler)

RegisterClusterRepoStatusHandler configures a ClusterRepoController to execute a ClusterRepoStatusHandler 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 ClusterRepoCache

type ClusterRepoCache interface {
	generic.NonNamespacedCacheInterface[*v1.ClusterRepo]
}

ClusterRepoCache interface for retrieving ClusterRepo resources in memory.

type ClusterRepoClient

type ClusterRepoClient interface {
	generic.NonNamespacedClientInterface[*v1.ClusterRepo, *v1.ClusterRepoList]
}

ClusterRepoClient interface for managing ClusterRepo resources in Kubernetes.

type ClusterRepoController

type ClusterRepoController interface {
	generic.NonNamespacedControllerInterface[*v1.ClusterRepo, *v1.ClusterRepoList]
}

ClusterRepoController interface for managing ClusterRepo resources.

type ClusterRepoGeneratingHandler

type ClusterRepoGeneratingHandler func(obj *v1.ClusterRepo, status v1.RepoStatus) ([]runtime.Object, v1.RepoStatus, error)

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

type ClusterRepoStatusHandler

type ClusterRepoStatusHandler func(obj *v1.ClusterRepo, status v1.RepoStatus) (v1.RepoStatus, error)

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

type Interface

type Interface interface {
	ClusterRepo() ClusterRepoController
}

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