mocks

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the Repository type

func (*Repository) BeginTransaction

func (_m *Repository) BeginTransaction(ctx context.Context) (*sql.Tx, error)

BeginTransaction provides a mock function with given fields: ctx

func (*Repository) DeleteModelTraining

func (_m *Repository) DeleteModelTraining(ctx context.Context, tx *sql.Tx, id string) error

DeleteModelTraining provides a mock function with given fields: ctx, tx, id

func (*Repository) GetModelTraining

func (_m *Repository) GetModelTraining(ctx context.Context, tx *sql.Tx, id string) (*apistraining.ModelTraining, error)

GetModelTraining provides a mock function with given fields: ctx, tx, id

func (*Repository) GetModelTrainingList

func (_m *Repository) GetModelTrainingList(ctx context.Context, tx *sql.Tx, options ...filter.ListOption) ([]apistraining.ModelTraining, error)

GetModelTrainingList provides a mock function with given fields: ctx, tx, options

func (*Repository) SaveModelTraining

func (_m *Repository) SaveModelTraining(ctx context.Context, tx *sql.Tx, mt *apistraining.ModelTraining) error

CreateModelTraining provides a mock function with given fields: ctx, tx, mt

func (*Repository) SetDeletionMark

func (_m *Repository) SetDeletionMark(ctx context.Context, tx *sql.Tx, id string, value bool) error

SetDeletionMark provides a mock function with given fields: ctx, tx, id, value

func (*Repository) UpdateModelTraining

func (_m *Repository) UpdateModelTraining(ctx context.Context, tx *sql.Tx, mt *apistraining.ModelTraining) error

UpdateModelTraining provides a mock function with given fields: ctx, tx, mt

func (*Repository) UpdateModelTrainingStatus

func (_m *Repository) UpdateModelTrainingStatus(ctx context.Context, tx *sql.Tx, id string, s v1alpha1.ModelTrainingStatus) error

UpdateModelTrainingStatus provides a mock function with given fields: ctx, tx, id, s

type ToolchainRepository

type ToolchainRepository struct {
	mock.Mock
}

ToolchainRepository is an autogenerated mock type for the ToolchainRepository type

func (*ToolchainRepository) DeleteToolchainIntegration

func (_m *ToolchainRepository) DeleteToolchainIntegration(name string) error

DeleteToolchainIntegration provides a mock function with given fields: name

func (*ToolchainRepository) GetToolchainIntegration

func (_m *ToolchainRepository) GetToolchainIntegration(name string) (*training.ToolchainIntegration, error)

GetToolchainIntegration provides a mock function with given fields: name

func (*ToolchainRepository) GetToolchainIntegrationList

func (_m *ToolchainRepository) GetToolchainIntegrationList(options ...filter.ListOption) ([]training.ToolchainIntegration, error)

GetToolchainIntegrationList provides a mock function with given fields: options

func (*ToolchainRepository) SaveToolchainIntegration

func (_m *ToolchainRepository) SaveToolchainIntegration(md *training.ToolchainIntegration) error

CreateToolchainIntegration provides a mock function with given fields: md

func (*ToolchainRepository) UpdateToolchainIntegration

func (_m *ToolchainRepository) UpdateToolchainIntegration(md *training.ToolchainIntegration) error

UpdateToolchainIntegration provides a mock function with given fields: md

Jump to

Keyboard shortcuts

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