training

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	GetModelTraining(ctx context.Context, id string) (*training.ModelTraining, error)
	GetModelTrainingList(ctx context.Context, options ...filter.ListOption) ([]training.ModelTraining, error)
	DeleteModelTraining(ctx context.Context, id string) error
	SetDeletionMark(ctx context.Context, id string, value bool) error
	UpdateModelTraining(ctx context.Context, mt *training.ModelTraining) error
	// Try to update status. If spec in storage differs from spec snapshot then update does not happen
	UpdateModelTrainingStatus(
		ctx context.Context, id string, status v1alpha1.ModelTrainingStatus, spec v1alpha1.ModelTrainingSpec) error
	CreateModelTraining(ctx context.Context, mt *training.ModelTraining) error
}

func NewService

func NewService(repo repo.Repository) Service

Jump to

Keyboard shortcuts

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