v1

package
v1.4.0-dev-20240819 Latest Latest
Warning

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

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

Documentation

Index

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

Types

type AppCache

type AppCache interface {
	generic.CacheInterface[*v1.App]
}

AppCache interface for retrieving App resources in memory.

type AppClient

type AppClient interface {
	generic.ClientInterface[*v1.App, *v1.AppList]
}

AppClient interface for managing App resources in Kubernetes.

type AppController

type AppController interface {
	generic.ControllerInterface[*v1.App, *v1.AppList]
}

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 Interface

type Interface interface {
	App() AppController
}

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