mocks

package
v1.9.15 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtifactRepo

type ArtifactRepo struct {
	mock.Mock
}

ArtifactRepo is an autogenerated mock type for the ArtifactRepo type

func (*ArtifactRepo) Create

func (_m *ArtifactRepo) Create(ctx context.Context, in models.Artifact) error

Create provides a mock function with given fields: ctx, in

func (*ArtifactRepo) Get

Get provides a mock function with given fields: ctx, in

func (*ArtifactRepo) List

List provides a mock function with given fields: ctx, datasetKey, in

func (*ArtifactRepo) OnCreate

func (*ArtifactRepo) OnCreateMatch

func (_m *ArtifactRepo) OnCreateMatch(matchers ...interface{}) *ArtifactRepo_Create

func (*ArtifactRepo) OnGet

func (*ArtifactRepo) OnGetMatch

func (_m *ArtifactRepo) OnGetMatch(matchers ...interface{}) *ArtifactRepo_Get

func (*ArtifactRepo) OnList

func (*ArtifactRepo) OnListMatch

func (_m *ArtifactRepo) OnListMatch(matchers ...interface{}) *ArtifactRepo_List

func (*ArtifactRepo) OnUpdate

func (_m *ArtifactRepo) OnUpdate(ctx context.Context, artifact models.Artifact) *ArtifactRepo_Update

func (*ArtifactRepo) OnUpdateMatch

func (_m *ArtifactRepo) OnUpdateMatch(matchers ...interface{}) *ArtifactRepo_Update

func (*ArtifactRepo) Update

func (_m *ArtifactRepo) Update(ctx context.Context, artifact models.Artifact) error

Update provides a mock function with given fields: ctx, artifact

type ArtifactRepo_Create

type ArtifactRepo_Create struct {
	*mock.Call
}

func (ArtifactRepo_Create) Return

type ArtifactRepo_Get

type ArtifactRepo_Get struct {
	*mock.Call
}

func (ArtifactRepo_Get) Return

func (_m ArtifactRepo_Get) Return(_a0 models.Artifact, _a1 error) *ArtifactRepo_Get

type ArtifactRepo_List

type ArtifactRepo_List struct {
	*mock.Call
}

func (ArtifactRepo_List) Return

func (_m ArtifactRepo_List) Return(_a0 []models.Artifact, _a1 error) *ArtifactRepo_List

type ArtifactRepo_Update

type ArtifactRepo_Update struct {
	*mock.Call
}

func (ArtifactRepo_Update) Return

type DataCatalogRepo

type DataCatalogRepo struct {
	MockDatasetRepo     *DatasetRepo
	MockArtifactRepo    *ArtifactRepo
	MockTagRepo         *TagRepo
	MockReservationRepo *ReservationRepo
}

func (*DataCatalogRepo) ArtifactRepo

func (m *DataCatalogRepo) ArtifactRepo() interfaces.ArtifactRepo

func (*DataCatalogRepo) DatasetRepo

func (m *DataCatalogRepo) DatasetRepo() interfaces.DatasetRepo

func (*DataCatalogRepo) ReservationRepo

func (m *DataCatalogRepo) ReservationRepo() interfaces.ReservationRepo

func (*DataCatalogRepo) TagRepo

func (m *DataCatalogRepo) TagRepo() interfaces.TagRepo

type DatasetRepo

type DatasetRepo struct {
	mock.Mock
}

DatasetRepo is an autogenerated mock type for the DatasetRepo type

func (*DatasetRepo) Create

func (_m *DatasetRepo) Create(ctx context.Context, in models.Dataset) error

Create provides a mock function with given fields: ctx, in

func (*DatasetRepo) Get

Get provides a mock function with given fields: ctx, in

func (*DatasetRepo) List

List provides a mock function with given fields: ctx, in

func (*DatasetRepo) OnCreate

func (*DatasetRepo) OnCreateMatch

func (_m *DatasetRepo) OnCreateMatch(matchers ...interface{}) *DatasetRepo_Create

func (*DatasetRepo) OnGet

func (*DatasetRepo) OnGetMatch

func (_m *DatasetRepo) OnGetMatch(matchers ...interface{}) *DatasetRepo_Get

func (*DatasetRepo) OnList

func (*DatasetRepo) OnListMatch

func (_m *DatasetRepo) OnListMatch(matchers ...interface{}) *DatasetRepo_List

type DatasetRepo_Create

type DatasetRepo_Create struct {
	*mock.Call
}

func (DatasetRepo_Create) Return

type DatasetRepo_Get

type DatasetRepo_Get struct {
	*mock.Call
}

func (DatasetRepo_Get) Return

func (_m DatasetRepo_Get) Return(_a0 models.Dataset, _a1 error) *DatasetRepo_Get

type DatasetRepo_List

type DatasetRepo_List struct {
	*mock.Call
}

func (DatasetRepo_List) Return

func (_m DatasetRepo_List) Return(_a0 []models.Dataset, _a1 error) *DatasetRepo_List

type PartitionRepo

type PartitionRepo struct {
	mock.Mock
}

PartitionRepo is an autogenerated mock type for the PartitionRepo type

func (*PartitionRepo) Create

func (_m *PartitionRepo) Create(ctx context.Context, in models.Partition) error

Create provides a mock function with given fields: ctx, in

func (*PartitionRepo) OnCreate

func (*PartitionRepo) OnCreateMatch

func (_m *PartitionRepo) OnCreateMatch(matchers ...interface{}) *PartitionRepo_Create

type PartitionRepo_Create

type PartitionRepo_Create struct {
	*mock.Call
}

func (PartitionRepo_Create) Return

type ReservationRepo

type ReservationRepo struct {
	mock.Mock
}

ReservationRepo is an autogenerated mock type for the ReservationRepo type

func (*ReservationRepo) Create

func (_m *ReservationRepo) Create(ctx context.Context, reservation models.Reservation, now time.Time) error

Create provides a mock function with given fields: ctx, reservation, now

func (*ReservationRepo) Delete

func (_m *ReservationRepo) Delete(ctx context.Context, reservation models.ReservationKey, ownerID string) error

Delete provides a mock function with given fields: ctx, reservation, ownerID

func (*ReservationRepo) Get

func (_m *ReservationRepo) Get(ctx context.Context, reservationKey models.ReservationKey) (models.Reservation, error)

Get provides a mock function with given fields: ctx, reservationKey

func (*ReservationRepo) OnCreate

func (_m *ReservationRepo) OnCreate(ctx context.Context, reservation models.Reservation, now time.Time) *ReservationRepo_Create

func (*ReservationRepo) OnCreateMatch

func (_m *ReservationRepo) OnCreateMatch(matchers ...interface{}) *ReservationRepo_Create

func (*ReservationRepo) OnDelete

func (_m *ReservationRepo) OnDelete(ctx context.Context, reservation models.ReservationKey, ownerID string) *ReservationRepo_Delete

func (*ReservationRepo) OnDeleteMatch

func (_m *ReservationRepo) OnDeleteMatch(matchers ...interface{}) *ReservationRepo_Delete

func (*ReservationRepo) OnGet

func (_m *ReservationRepo) OnGet(ctx context.Context, reservationKey models.ReservationKey) *ReservationRepo_Get

func (*ReservationRepo) OnGetMatch

func (_m *ReservationRepo) OnGetMatch(matchers ...interface{}) *ReservationRepo_Get

func (*ReservationRepo) OnUpdate

func (_m *ReservationRepo) OnUpdate(ctx context.Context, reservation models.Reservation, now time.Time) *ReservationRepo_Update

func (*ReservationRepo) OnUpdateMatch

func (_m *ReservationRepo) OnUpdateMatch(matchers ...interface{}) *ReservationRepo_Update

func (*ReservationRepo) Update

func (_m *ReservationRepo) Update(ctx context.Context, reservation models.Reservation, now time.Time) error

Update provides a mock function with given fields: ctx, reservation, now

type ReservationRepo_Create

type ReservationRepo_Create struct {
	*mock.Call
}

func (ReservationRepo_Create) Return

type ReservationRepo_Delete

type ReservationRepo_Delete struct {
	*mock.Call
}

func (ReservationRepo_Delete) Return

type ReservationRepo_Get

type ReservationRepo_Get struct {
	*mock.Call
}

func (ReservationRepo_Get) Return

type ReservationRepo_Update

type ReservationRepo_Update struct {
	*mock.Call
}

func (ReservationRepo_Update) Return

type TagRepo

type TagRepo struct {
	mock.Mock
}

TagRepo is an autogenerated mock type for the TagRepo type

func (*TagRepo) Create

func (_m *TagRepo) Create(ctx context.Context, in models.Tag) error

Create provides a mock function with given fields: ctx, in

func (*TagRepo) Get

func (_m *TagRepo) Get(ctx context.Context, in models.TagKey) (models.Tag, error)

Get provides a mock function with given fields: ctx, in

func (*TagRepo) OnCreate

func (_m *TagRepo) OnCreate(ctx context.Context, in models.Tag) *TagRepo_Create

func (*TagRepo) OnCreateMatch

func (_m *TagRepo) OnCreateMatch(matchers ...interface{}) *TagRepo_Create

func (*TagRepo) OnGet

func (_m *TagRepo) OnGet(ctx context.Context, in models.TagKey) *TagRepo_Get

func (*TagRepo) OnGetMatch

func (_m *TagRepo) OnGetMatch(matchers ...interface{}) *TagRepo_Get

type TagRepo_Create

type TagRepo_Create struct {
	*mock.Call
}

func (TagRepo_Create) Return

func (_m TagRepo_Create) Return(_a0 error) *TagRepo_Create

type TagRepo_Get

type TagRepo_Get struct {
	*mock.Call
}

func (TagRepo_Get) Return

func (_m TagRepo_Get) Return(_a0 models.Tag, _a1 error) *TagRepo_Get

Jump to

Keyboard shortcuts

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