Documentation ¶
Index ¶
- Constants
- Variables
- type ToolchainRepo
- func (tr ToolchainRepo) CreateToolchainIntegration(md *training.ToolchainIntegration) error
- func (tr ToolchainRepo) DeleteToolchainIntegration(name string) error
- func (tr ToolchainRepo) GetToolchainIntegration(name string) (*training.ToolchainIntegration, error)
- func (tr ToolchainRepo) GetToolchainIntegrationList(options ...filter.ListOption) ([]training.ToolchainIntegration, error)
- func (tr ToolchainRepo) UpdateToolchainIntegration(md *training.ToolchainIntegration) error
- type TrainingRepo
- func (repo TrainingRepo) BeginTransaction(ctx context.Context) (*sql.Tx, error)
- func (repo TrainingRepo) CreateModelTraining(ctx context.Context, tx *sql.Tx, mt *training.ModelTraining) error
- func (repo TrainingRepo) DeleteModelTraining(ctx context.Context, tx *sql.Tx, id string) error
- func (repo TrainingRepo) GetModelTraining(ctx context.Context, tx *sql.Tx, id string) (*training.ModelTraining, error)
- func (repo TrainingRepo) GetModelTrainingList(ctx context.Context, tx *sql.Tx, options ...filter.ListOption) ([]training.ModelTraining, error)
- func (repo TrainingRepo) SetDeletionMark(ctx context.Context, tx *sql.Tx, id string, value bool) error
- func (repo TrainingRepo) UpdateModelTraining(ctx context.Context, tx *sql.Tx, mt *training.ModelTraining) error
- func (repo TrainingRepo) UpdateModelTrainingStatus(ctx context.Context, tx *sql.Tx, id string, s v1alpha1.ModelTrainingStatus) error
Constants ¶
View Source
const (
ModelTrainingTable = "odahu_operator_training"
)
Variables ¶
View Source
var ( MaxSize = 500 FirstPage = 0 )
Functions ¶
This section is empty.
Types ¶
type ToolchainRepo ¶
func (ToolchainRepo) CreateToolchainIntegration ¶
func (tr ToolchainRepo) CreateToolchainIntegration(md *training.ToolchainIntegration) error
func (ToolchainRepo) DeleteToolchainIntegration ¶
func (tr ToolchainRepo) DeleteToolchainIntegration(name string) error
func (ToolchainRepo) GetToolchainIntegration ¶
func (tr ToolchainRepo) GetToolchainIntegration(name string) (*training.ToolchainIntegration, error)
func (ToolchainRepo) GetToolchainIntegrationList ¶
func (tr ToolchainRepo) GetToolchainIntegrationList(options ...filter.ListOption) ( []training.ToolchainIntegration, error, )
func (ToolchainRepo) UpdateToolchainIntegration ¶
func (tr ToolchainRepo) UpdateToolchainIntegration(md *training.ToolchainIntegration) error
type TrainingRepo ¶
func (TrainingRepo) BeginTransaction ¶
func (TrainingRepo) CreateModelTraining ¶
func (repo TrainingRepo) CreateModelTraining(ctx context.Context, tx *sql.Tx, mt *training.ModelTraining) error
func (TrainingRepo) DeleteModelTraining ¶
func (TrainingRepo) GetModelTraining ¶
func (repo TrainingRepo) GetModelTraining(ctx context.Context, tx *sql.Tx, id string) (*training.ModelTraining, error)
func (TrainingRepo) GetModelTrainingList ¶
func (repo TrainingRepo) GetModelTrainingList( ctx context.Context, tx *sql.Tx, options ...filter.ListOption) ([]training.ModelTraining, error)
func (TrainingRepo) SetDeletionMark ¶
func (TrainingRepo) UpdateModelTraining ¶
func (repo TrainingRepo) UpdateModelTraining(ctx context.Context, tx *sql.Tx, mt *training.ModelTraining) error
func (TrainingRepo) UpdateModelTrainingStatus ¶
func (repo TrainingRepo) UpdateModelTrainingStatus( ctx context.Context, tx *sql.Tx, id string, s v1alpha1.ModelTrainingStatus) error
Click to show internal directories.
Click to hide internal directories.