Documentation ¶
Index ¶
- func RegisterAppGeneratingHandler(ctx context.Context, controller AppController, apply apply.Apply, ...)
- func RegisterAppStatusHandler(ctx context.Context, controller AppController, condition condition.Cond, ...)
- type AppCache
- type AppClient
- type AppController
- type AppGeneratingHandler
- type AppStatusHandler
- type Interface
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 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 Interface ¶
type Interface interface {
App() AppController
}
func New ¶
func New(controllerFactory controller.SharedControllerFactory) Interface