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

Documentation

Index

Constants

View Source
const (
	TagKey = "name"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MTFilter

type MTFilter struct {
	Toolchain    []string `name:"toolchain" postgres:"spec->>'toolchain'"`
	ModelName    []string `name:"model_name" postgres:"spec->'model'->>'name'"`
	ModelVersion []string `name:"model_version" postgres:"spec->'model'->>'version'"`
}

type Repository

type Repository interface {
	GetModelTraining(ctx context.Context, tx *sql.Tx, id string) (*training.ModelTraining, error)
	GetModelTrainingList(
		ctx context.Context, tx *sql.Tx, options ...filter.ListOption) ([]training.ModelTraining, error)
	DeleteModelTraining(ctx context.Context, tx *sql.Tx, id string) error
	SetDeletionMark(ctx context.Context, tx *sql.Tx, id string, value bool) error
	UpdateModelTraining(ctx context.Context, tx *sql.Tx, mt *training.ModelTraining) error
	UpdateModelTrainingStatus(ctx context.Context, tx *sql.Tx, id string, s v1alpha1.ModelTrainingStatus) error
	SaveModelTraining(ctx context.Context, tx *sql.Tx, mt *training.ModelTraining) error
	BeginTransaction(ctx context.Context) (*sql.Tx, error)
}

type ToolchainRepository

type ToolchainRepository interface {
	GetToolchainIntegration(name string) (*training.ToolchainIntegration, error)
	GetToolchainIntegrationList(options ...filter.ListOption) ([]training.ToolchainIntegration, error)
	DeleteToolchainIntegration(name string) error
	UpdateToolchainIntegration(md *training.ToolchainIntegration) error
	SaveToolchainIntegration(md *training.ToolchainIntegration) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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