batch

package
v0.0.0-...-58c3220 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter struct {
	// contains filtered or unexported fields
}

func NewAdapter

func NewAdapter(mgr ctrl.Manager,
	kubeClient kubeClient,
	apiServer apiServer,
	apiServerServiceAPI apiServerServiceAPI) *Adapter

func (Adapter) GetFromRuntime

func (a Adapter) GetFromRuntime(id string) (types.RuntimeEntity, error)

func (Adapter) GetFromStorage

func (a Adapter) GetFromStorage(id string) (types.StorageEntity, error)

func (Adapter) ListRuntime

func (a Adapter) ListRuntime() ([]types.RuntimeEntity, error)

func (Adapter) ListStorage

func (a Adapter) ListStorage() ([]types.StorageEntity, error)

func (Adapter) SubscribeRuntimeUpdates

func (a Adapter) SubscribeRuntimeUpdates(hook types.StatusPollingHookFunc) error

type KubeEntity

type KubeEntity struct {
	// contains filtered or unexported fields
}

func (KubeEntity) Delete

func (k KubeEntity) Delete() error

func (KubeEntity) GetID

func (k KubeEntity) GetID() string

func (KubeEntity) GetSpecHash

func (k KubeEntity) GetSpecHash() (uint64, error)

func (KubeEntity) GetStatusHash

func (k KubeEntity) GetStatusHash() (uint64, error)

func (KubeEntity) IsDeleting

func (k KubeEntity) IsDeleting() bool

BatchInferenceJob in kubernetes operator is deleted immediately

func (KubeEntity) ReportStatus

func (k KubeEntity) ReportStatus() error

type StorageEntity

type StorageEntity struct {
	// contains filtered or unexported fields
}

func (StorageEntity) CreateInRuntime

func (s StorageEntity) CreateInRuntime() error

func (StorageEntity) DeleteInDB

func (s StorageEntity) DeleteInDB() error

func (StorageEntity) DeleteInRuntime

func (s StorageEntity) DeleteInRuntime() error

func (StorageEntity) GetID

func (s StorageEntity) GetID() string

func (StorageEntity) GetSpecHash

func (s StorageEntity) GetSpecHash() (uint64, error)

func (StorageEntity) GetStatusHash

func (s StorageEntity) GetStatusHash() (uint64, error)

func (StorageEntity) HasDeletionMark

func (s StorageEntity) HasDeletionMark() bool

func (StorageEntity) IsFinished

func (s StorageEntity) IsFinished() bool

func (StorageEntity) UpdateInRuntime

func (s StorageEntity) UpdateInRuntime() error

Jump to

Keyboard shortcuts

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