Documentation
¶
Index ¶
- func RegisterETCDSnapshotFileGeneratingHandler(ctx context.Context, controller ETCDSnapshotFileController, apply apply.Apply, ...)
- func RegisterETCDSnapshotFileStatusHandler(ctx context.Context, controller ETCDSnapshotFileController, ...)
- type AddonCache
- type AddonClient
- type AddonController
- type ETCDSnapshotFileCache
- type ETCDSnapshotFileClient
- type ETCDSnapshotFileController
- type ETCDSnapshotFileGeneratingHandler
- type ETCDSnapshotFileStatusHandler
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterETCDSnapshotFileGeneratingHandler ¶
func RegisterETCDSnapshotFileGeneratingHandler(ctx context.Context, controller ETCDSnapshotFileController, apply apply.Apply, condition condition.Cond, name string, handler ETCDSnapshotFileGeneratingHandler, opts *generic.GeneratingHandlerOptions)
RegisterETCDSnapshotFileGeneratingHandler configures a ETCDSnapshotFileController to execute a ETCDSnapshotFileGeneratingHandler 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 RegisterETCDSnapshotFileStatusHandler ¶
func RegisterETCDSnapshotFileStatusHandler(ctx context.Context, controller ETCDSnapshotFileController, condition condition.Cond, name string, handler ETCDSnapshotFileStatusHandler)
RegisterETCDSnapshotFileStatusHandler configures a ETCDSnapshotFileController to execute a ETCDSnapshotFileStatusHandler 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 AddonCache ¶
type AddonCache interface { generic.CacheInterface[*v1.Addon] }
AddonCache interface for retrieving Addon resources in memory.
type AddonClient ¶
AddonClient interface for managing Addon resources in Kubernetes.
type AddonController ¶
AddonController interface for managing Addon resources.
type ETCDSnapshotFileCache ¶
type ETCDSnapshotFileCache interface { generic.NonNamespacedCacheInterface[*v1.ETCDSnapshotFile] }
ETCDSnapshotFileCache interface for retrieving ETCDSnapshotFile resources in memory.
type ETCDSnapshotFileClient ¶
type ETCDSnapshotFileClient interface { generic.NonNamespacedClientInterface[*v1.ETCDSnapshotFile, *v1.ETCDSnapshotFileList] }
ETCDSnapshotFileClient interface for managing ETCDSnapshotFile resources in Kubernetes.
type ETCDSnapshotFileController ¶
type ETCDSnapshotFileController interface { generic.NonNamespacedControllerInterface[*v1.ETCDSnapshotFile, *v1.ETCDSnapshotFileList] }
ETCDSnapshotFileController interface for managing ETCDSnapshotFile resources.
type ETCDSnapshotFileGeneratingHandler ¶
type ETCDSnapshotFileGeneratingHandler func(obj *v1.ETCDSnapshotFile, status v1.ETCDSnapshotStatus) ([]runtime.Object, v1.ETCDSnapshotStatus, error)
ETCDSnapshotFileGeneratingHandler is the top-level handler that is executed for every ETCDSnapshotFile event. It extends ETCDSnapshotFileStatusHandler by a returning a slice of child objects to be passed to apply.Apply
type ETCDSnapshotFileStatusHandler ¶
type ETCDSnapshotFileStatusHandler func(obj *v1.ETCDSnapshotFile, status v1.ETCDSnapshotStatus) (v1.ETCDSnapshotStatus, error)
ETCDSnapshotFileStatusHandler is executed for every added or modified ETCDSnapshotFile. Should return the new status to be updated
type Interface ¶
type Interface interface { Addon() AddonController ETCDSnapshotFile() ETCDSnapshotFileController }
func New ¶
func New(controllerFactory controller.SharedControllerFactory) Interface