mocks

package
v1.0.54 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 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 added in v0.1.2

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

func (*ArtifactRepo) OnCreate added in v1.0.5

func (*ArtifactRepo) OnCreateMatch added in v1.0.5

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

func (*ArtifactRepo) OnGet added in v1.0.5

func (*ArtifactRepo) OnGetMatch added in v1.0.5

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

func (*ArtifactRepo) OnList added in v1.0.5

func (*ArtifactRepo) OnListMatch added in v1.0.5

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

func (*ArtifactRepo) OnUpdate added in v1.0.5

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

func (*ArtifactRepo) OnUpdateMatch added in v1.0.5

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

func (*ArtifactRepo) Update added in v1.0.5

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

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

type ArtifactRepo_Create added in v1.0.5

type ArtifactRepo_Create struct {
	*mock.Call
}

func (ArtifactRepo_Create) Return added in v1.0.5

type ArtifactRepo_Get added in v1.0.5

type ArtifactRepo_Get struct {
	*mock.Call
}

func (ArtifactRepo_Get) Return added in v1.0.5

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

type ArtifactRepo_List added in v1.0.5

type ArtifactRepo_List struct {
	*mock.Call
}

func (ArtifactRepo_List) Return added in v1.0.5

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

type ArtifactRepo_Update added in v1.0.5

type ArtifactRepo_Update struct {
	*mock.Call
}

func (ArtifactRepo_Update) Return added in v1.0.5

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 added in v0.3.17

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 added in v0.1.2

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

func (*DatasetRepo) OnCreate added in v1.0.5

func (*DatasetRepo) OnCreateMatch added in v1.0.5

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

func (*DatasetRepo) OnGet added in v1.0.5

func (*DatasetRepo) OnGetMatch added in v1.0.5

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

func (*DatasetRepo) OnList added in v1.0.5

func (*DatasetRepo) OnListMatch added in v1.0.5

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

type DatasetRepo_Create added in v1.0.5

type DatasetRepo_Create struct {
	*mock.Call
}

func (DatasetRepo_Create) Return added in v1.0.5

type DatasetRepo_Get added in v1.0.5

type DatasetRepo_Get struct {
	*mock.Call
}

func (DatasetRepo_Get) Return added in v1.0.5

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

type DatasetRepo_List added in v1.0.5

type DatasetRepo_List struct {
	*mock.Call
}

func (DatasetRepo_List) Return added in v1.0.5

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

type PartitionRepo added in v0.1.2

type PartitionRepo struct {
	mock.Mock
}

PartitionRepo is an autogenerated mock type for the PartitionRepo type

func (*PartitionRepo) Create added in v0.1.2

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

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

func (*PartitionRepo) OnCreate added in v1.0.5

func (*PartitionRepo) OnCreateMatch added in v1.0.5

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

type PartitionRepo_Create added in v1.0.5

type PartitionRepo_Create struct {
	*mock.Call
}

func (PartitionRepo_Create) Return added in v1.0.5

type ReservationRepo added in v0.3.17

type ReservationRepo struct {
	mock.Mock
}

ReservationRepo is an autogenerated mock type for the ReservationRepo type

func (*ReservationRepo) Create added in v0.3.17

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 added in v0.3.17

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 added in v0.3.17

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 added in v0.3.17

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

func (*ReservationRepo) OnCreateMatch added in v0.3.17

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

func (*ReservationRepo) OnDelete added in v0.3.17

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

func (*ReservationRepo) OnDeleteMatch added in v0.3.17

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

func (*ReservationRepo) OnGet added in v0.3.17

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

func (*ReservationRepo) OnGetMatch added in v0.3.17

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

func (*ReservationRepo) OnUpdate added in v0.3.17

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

func (*ReservationRepo) OnUpdateMatch added in v0.3.17

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

func (*ReservationRepo) Update added in v0.3.17

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 added in v0.3.17

type ReservationRepo_Create struct {
	*mock.Call
}

func (ReservationRepo_Create) Return added in v0.3.17

type ReservationRepo_Delete added in v0.3.17

type ReservationRepo_Delete struct {
	*mock.Call
}

func (ReservationRepo_Delete) Return added in v0.3.17

type ReservationRepo_Get added in v0.3.17

type ReservationRepo_Get struct {
	*mock.Call
}

func (ReservationRepo_Get) Return added in v0.3.17

type ReservationRepo_Update added in v0.3.17

type ReservationRepo_Update struct {
	*mock.Call
}

func (ReservationRepo_Update) Return added in v0.3.17

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 added in v1.0.5

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

func (*TagRepo) OnCreateMatch added in v1.0.5

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

func (*TagRepo) OnGet added in v1.0.5

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

func (*TagRepo) OnGetMatch added in v1.0.5

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

type TagRepo_Create added in v1.0.5

type TagRepo_Create struct {
	*mock.Call
}

func (TagRepo_Create) Return added in v1.0.5

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

type TagRepo_Get added in v1.0.5

type TagRepo_Get struct {
	*mock.Call
}

func (TagRepo_Get) Return added in v1.0.5

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