Documentation ¶
Index ¶
- func RegisterGPUDeviceGeneratingHandler(ctx context.Context, controller GPUDeviceController, apply apply.Apply, ...)
- func RegisterGPUDeviceStatusHandler(ctx context.Context, controller GPUDeviceController, condition condition.Cond, ...)
- type GPUDeviceCache
- type GPUDeviceClient
- type GPUDeviceController
- type GPUDeviceGeneratingHandler
- type GPUDeviceStatusHandler
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterGPUDeviceGeneratingHandler ¶
func RegisterGPUDeviceGeneratingHandler(ctx context.Context, controller GPUDeviceController, apply apply.Apply, condition condition.Cond, name string, handler GPUDeviceGeneratingHandler, opts *generic.GeneratingHandlerOptions)
RegisterGPUDeviceGeneratingHandler configures a GPUDeviceController to execute a GPUDeviceGeneratingHandler 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 RegisterGPUDeviceStatusHandler ¶
func RegisterGPUDeviceStatusHandler(ctx context.Context, controller GPUDeviceController, condition condition.Cond, name string, handler GPUDeviceStatusHandler)
RegisterGPUDeviceStatusHandler configures a GPUDeviceController to execute a GPUDeviceStatusHandler 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 GPUDeviceCache ¶
type GPUDeviceCache interface { generic.NonNamespacedCacheInterface[*v1.GPUDevice] }
GPUDeviceCache interface for retrieving GPUDevice resources in memory.
type GPUDeviceClient ¶
type GPUDeviceClient interface { generic.NonNamespacedClientInterface[*v1.GPUDevice, *v1.GPUDeviceList] }
GPUDeviceClient interface for managing GPUDevice resources in Kubernetes.
type GPUDeviceController ¶
type GPUDeviceController interface { generic.NonNamespacedControllerInterface[*v1.GPUDevice, *v1.GPUDeviceList] }
GPUDeviceController interface for managing GPUDevice resources.
type GPUDeviceGeneratingHandler ¶
type GPUDeviceGeneratingHandler func(obj *v1.GPUDevice, status v1.GPUDeviceStatus) ([]runtime.Object, v1.GPUDeviceStatus, error)
GPUDeviceGeneratingHandler is the top-level handler that is executed for every GPUDevice event. It extends GPUDeviceStatusHandler by a returning a slice of child objects to be passed to apply.Apply
type GPUDeviceStatusHandler ¶
type GPUDeviceStatusHandler func(obj *v1.GPUDevice, status v1.GPUDeviceStatus) (v1.GPUDeviceStatus, error)
GPUDeviceStatusHandler is executed for every added or modified GPUDevice. Should return the new status to be updated
type Interface ¶
type Interface interface {
GPUDevice() GPUDeviceController
}
func New ¶
func New(controllerFactory controller.SharedControllerFactory) Interface