v1

package
v0.1.0-rc1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterModelFileGeneratingHandler

func RegisterModelFileGeneratingHandler(ctx context.Context, controller ModelFileController, apply apply.Apply,
	condition condition.Cond, name string, handler ModelFileGeneratingHandler, opts *generic.GeneratingHandlerOptions)

RegisterModelFileGeneratingHandler configures a ModelFileController to execute a ModelFileGeneratingHandler 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 RegisterModelFileStatusHandler

func RegisterModelFileStatusHandler(ctx context.Context, controller ModelFileController, condition condition.Cond, name string, handler ModelFileStatusHandler)

RegisterModelFileStatusHandler configures a ModelFileController to execute a ModelFileStatusHandler for every events observed. If a non-empty condition is provided, it will be updated in the status conditions for every handler execution

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 {
	ModelFile() ModelFileController
	ModelService() ModelServiceController
	Notebook() NotebookController
}

func New

func New(controllerFactory controller.SharedControllerFactory) Interface

type ModelFileCache

type ModelFileCache interface {
	generic.NonNamespacedCacheInterface[*v1.ModelFile]
}

ModelFileCache interface for retrieving ModelFile resources in memory.

type ModelFileClient

type ModelFileClient interface {
	generic.NonNamespacedClientInterface[*v1.ModelFile, *v1.ModelFileList]
}

ModelFileClient interface for managing ModelFile resources in Kubernetes.

type ModelFileController

type ModelFileController interface {
	generic.NonNamespacedControllerInterface[*v1.ModelFile, *v1.ModelFileList]
}

ModelFileController interface for managing ModelFile resources.

type ModelFileGeneratingHandler

type ModelFileGeneratingHandler func(obj *v1.ModelFile, status v1.ModelFileStatus) ([]runtime.Object, v1.ModelFileStatus, error)

ModelFileGeneratingHandler is the top-level handler that is executed for every ModelFile event. It extends ModelFileStatusHandler by a returning a slice of child objects to be passed to apply.Apply

type ModelFileStatusHandler

type ModelFileStatusHandler func(obj *v1.ModelFile, status v1.ModelFileStatus) (v1.ModelFileStatus, error)

ModelFileStatusHandler is executed for every added or modified ModelFile. Should return the new status to be updated

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL