Documentation
¶
Index ¶
- func RegisterModelServiceGeneratingHandler(ctx context.Context, controller ModelServiceController, apply apply.Apply, ...)
- func RegisterModelServiceStatusHandler(ctx context.Context, controller ModelServiceController, ...)
- func RegisterNotebookGeneratingHandler(ctx context.Context, controller NotebookController, apply apply.Apply, ...)
- func RegisterNotebookStatusHandler(ctx context.Context, controller NotebookController, condition condition.Cond, ...)
- type Interface
- type ModelServiceCache
- type ModelServiceClient
- type ModelServiceController
- type ModelServiceGeneratingHandler
- type ModelServiceStatusHandler
- type NotebookCache
- type NotebookClient
- type NotebookController
- type NotebookGeneratingHandler
- type NotebookStatusHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterModelServiceGeneratingHandler ¶
func RegisterModelServiceGeneratingHandler(ctx context.Context, controller ModelServiceController, apply apply.Apply, condition condition.Cond, name string, handler ModelServiceGeneratingHandler, opts *generic.GeneratingHandlerOptions)
RegisterModelServiceGeneratingHandler configures a ModelServiceController to execute a ModelServiceGeneratingHandler 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 RegisterModelServiceStatusHandler ¶
func RegisterModelServiceStatusHandler(ctx context.Context, controller ModelServiceController, condition condition.Cond, name string, handler ModelServiceStatusHandler)
RegisterModelServiceStatusHandler configures a ModelServiceController to execute a ModelServiceStatusHandler for every events observed. If a non-empty condition is provided, it will be updated in the status conditions for every handler execution
func RegisterNotebookGeneratingHandler ¶
func RegisterNotebookGeneratingHandler(ctx context.Context, controller NotebookController, apply apply.Apply, condition condition.Cond, name string, handler NotebookGeneratingHandler, opts *generic.GeneratingHandlerOptions)
RegisterNotebookGeneratingHandler configures a NotebookController to execute a NotebookGeneratingHandler 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 RegisterNotebookStatusHandler ¶
func RegisterNotebookStatusHandler(ctx context.Context, controller NotebookController, condition condition.Cond, name string, handler NotebookStatusHandler)
RegisterNotebookStatusHandler configures a NotebookController to execute a NotebookStatusHandler 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 Interface ¶
type Interface interface { ModelService() ModelServiceController Notebook() NotebookController }
func New ¶
func New(controllerFactory controller.SharedControllerFactory) Interface
type ModelServiceCache ¶
type ModelServiceCache interface { generic.CacheInterface[*v1.ModelService] }
ModelServiceCache interface for retrieving ModelService resources in memory.
type ModelServiceClient ¶
type ModelServiceClient interface { generic.ClientInterface[*v1.ModelService, *v1.ModelServiceList] }
ModelServiceClient interface for managing ModelService resources in Kubernetes.
type ModelServiceController ¶
type ModelServiceController interface { generic.ControllerInterface[*v1.ModelService, *v1.ModelServiceList] }
ModelServiceController interface for managing ModelService resources.
type ModelServiceGeneratingHandler ¶
type ModelServiceGeneratingHandler func(obj *v1.ModelService, status v1.ModelServiceStatus) ([]runtime.Object, v1.ModelServiceStatus, error)
ModelServiceGeneratingHandler is the top-level handler that is executed for every ModelService event. It extends ModelServiceStatusHandler by a returning a slice of child objects to be passed to apply.Apply
type ModelServiceStatusHandler ¶
type ModelServiceStatusHandler func(obj *v1.ModelService, status v1.ModelServiceStatus) (v1.ModelServiceStatus, error)
ModelServiceStatusHandler is executed for every added or modified ModelService. Should return the new status to be updated
type NotebookCache ¶
type NotebookCache interface { generic.CacheInterface[*v1.Notebook] }
NotebookCache interface for retrieving Notebook resources in memory.
type NotebookClient ¶
type NotebookClient interface { generic.ClientInterface[*v1.Notebook, *v1.NotebookList] }
NotebookClient interface for managing Notebook resources in Kubernetes.
type NotebookController ¶
type NotebookController interface { generic.ControllerInterface[*v1.Notebook, *v1.NotebookList] }
NotebookController interface for managing Notebook resources.
type NotebookGeneratingHandler ¶
type NotebookGeneratingHandler func(obj *v1.Notebook, status v1.NotebookStatus) ([]runtime.Object, v1.NotebookStatus, error)
NotebookGeneratingHandler is the top-level handler that is executed for every Notebook event. It extends NotebookStatusHandler by a returning a slice of child objects to be passed to apply.Apply
type NotebookStatusHandler ¶
type NotebookStatusHandler func(obj *v1.Notebook, status v1.NotebookStatus) (v1.NotebookStatus, error)
NotebookStatusHandler is executed for every added or modified Notebook. Should return the new status to be updated