Documentation ¶
Index ¶
- func RegisterAppGeneratingHandler(ctx context.Context, controller AppController, apply apply.Apply, ...)
- func RegisterAppStatusHandler(ctx context.Context, controller AppController, condition condition.Cond, ...)
- func RegisterClusterRepoGeneratingHandler(ctx context.Context, controller ClusterRepoController, apply apply.Apply, ...)
- func RegisterClusterRepoStatusHandler(ctx context.Context, controller ClusterRepoController, ...)
- func RegisterOperationGeneratingHandler(ctx context.Context, controller OperationController, apply apply.Apply, ...)
- func RegisterOperationStatusHandler(ctx context.Context, controller OperationController, condition condition.Cond, ...)
- type AppCache
- type AppClient
- type AppController
- type AppGeneratingHandler
- type AppStatusHandler
- type ClusterRepoCache
- type ClusterRepoClient
- type ClusterRepoController
- type ClusterRepoGeneratingHandler
- type ClusterRepoStatusHandler
- type Interface
- type OperationCache
- type OperationClient
- type OperationController
- type OperationGeneratingHandler
- type OperationStatusHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAppGeneratingHandler ¶
func RegisterAppGeneratingHandler(ctx context.Context, controller AppController, apply apply.Apply, condition condition.Cond, name string, handler AppGeneratingHandler, opts *generic.GeneratingHandlerOptions)
RegisterAppGeneratingHandler configures a AppController to execute a AppGeneratingHandler 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 RegisterAppStatusHandler ¶
func RegisterAppStatusHandler(ctx context.Context, controller AppController, condition condition.Cond, name string, handler AppStatusHandler)
RegisterAppStatusHandler configures a AppController to execute a AppStatusHandler for every events observed. If a non-empty condition is provided, it will be updated in the status conditions for every handler execution
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
func RegisterOperationGeneratingHandler ¶
func RegisterOperationGeneratingHandler(ctx context.Context, controller OperationController, apply apply.Apply, condition condition.Cond, name string, handler OperationGeneratingHandler, opts *generic.GeneratingHandlerOptions)
RegisterOperationGeneratingHandler configures a OperationController to execute a OperationGeneratingHandler 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 RegisterOperationStatusHandler ¶
func RegisterOperationStatusHandler(ctx context.Context, controller OperationController, condition condition.Cond, name string, handler OperationStatusHandler)
RegisterOperationStatusHandler configures a OperationController to execute a OperationStatusHandler 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 AppCache ¶
type AppCache interface { generic.CacheInterface[*v1.App] }
AppCache interface for retrieving App resources in memory.
type AppController ¶
AppController interface for managing App resources.
type AppGeneratingHandler ¶
type AppGeneratingHandler func(obj *v1.App, status v1.ReleaseStatus) ([]runtime.Object, v1.ReleaseStatus, error)
AppGeneratingHandler is the top-level handler that is executed for every App event. It extends AppStatusHandler by a returning a slice of child objects to be passed to apply.Apply
type AppStatusHandler ¶
type AppStatusHandler func(obj *v1.App, status v1.ReleaseStatus) (v1.ReleaseStatus, error)
AppStatusHandler is executed for every added or modified App. Should return the new status to be updated
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 { App() AppController ClusterRepo() ClusterRepoController Operation() OperationController }
func New ¶
func New(controllerFactory controller.SharedControllerFactory) Interface
type OperationCache ¶
type OperationCache interface { generic.CacheInterface[*v1.Operation] }
OperationCache interface for retrieving Operation resources in memory.
type OperationClient ¶
type OperationClient interface { generic.ClientInterface[*v1.Operation, *v1.OperationList] }
OperationClient interface for managing Operation resources in Kubernetes.
type OperationController ¶
type OperationController interface { generic.ControllerInterface[*v1.Operation, *v1.OperationList] }
OperationController interface for managing Operation resources.
type OperationGeneratingHandler ¶
type OperationGeneratingHandler func(obj *v1.Operation, status v1.OperationStatus) ([]runtime.Object, v1.OperationStatus, error)
OperationGeneratingHandler is the top-level handler that is executed for every Operation event. It extends OperationStatusHandler by a returning a slice of child objects to be passed to apply.Apply
type OperationStatusHandler ¶
type OperationStatusHandler func(obj *v1.Operation, status v1.OperationStatus) (v1.OperationStatus, error)
OperationStatusHandler is executed for every added or modified Operation. Should return the new status to be updated