Documentation ¶
Index ¶
- type ArtifactRepo
- func (_m *ArtifactRepo) Create(ctx context.Context, in models.Artifact) error
- func (_m *ArtifactRepo) Get(ctx context.Context, in models.ArtifactKey) (models.Artifact, error)
- func (_m *ArtifactRepo) List(ctx context.Context, datasetKey models.DatasetKey, in models.ListModelsInput) ([]models.Artifact, error)
- func (_m *ArtifactRepo) OnCreate(ctx context.Context, in models.Artifact) *ArtifactRepo_Create
- func (_m *ArtifactRepo) OnCreateMatch(matchers ...interface{}) *ArtifactRepo_Create
- func (_m *ArtifactRepo) OnGet(ctx context.Context, in models.ArtifactKey) *ArtifactRepo_Get
- func (_m *ArtifactRepo) OnGetMatch(matchers ...interface{}) *ArtifactRepo_Get
- func (_m *ArtifactRepo) OnList(ctx context.Context, datasetKey models.DatasetKey, in models.ListModelsInput) *ArtifactRepo_List
- func (_m *ArtifactRepo) OnListMatch(matchers ...interface{}) *ArtifactRepo_List
- func (_m *ArtifactRepo) OnUpdate(ctx context.Context, artifact models.Artifact) *ArtifactRepo_Update
- func (_m *ArtifactRepo) OnUpdateMatch(matchers ...interface{}) *ArtifactRepo_Update
- func (_m *ArtifactRepo) Update(ctx context.Context, artifact models.Artifact) error
- type ArtifactRepo_Create
- type ArtifactRepo_Get
- type ArtifactRepo_List
- type ArtifactRepo_Update
- type DataCatalogRepo
- type DatasetRepo
- func (_m *DatasetRepo) Create(ctx context.Context, in models.Dataset) error
- func (_m *DatasetRepo) Get(ctx context.Context, in models.DatasetKey) (models.Dataset, error)
- func (_m *DatasetRepo) List(ctx context.Context, in models.ListModelsInput) ([]models.Dataset, error)
- func (_m *DatasetRepo) OnCreate(ctx context.Context, in models.Dataset) *DatasetRepo_Create
- func (_m *DatasetRepo) OnCreateMatch(matchers ...interface{}) *DatasetRepo_Create
- func (_m *DatasetRepo) OnGet(ctx context.Context, in models.DatasetKey) *DatasetRepo_Get
- func (_m *DatasetRepo) OnGetMatch(matchers ...interface{}) *DatasetRepo_Get
- func (_m *DatasetRepo) OnList(ctx context.Context, in models.ListModelsInput) *DatasetRepo_List
- func (_m *DatasetRepo) OnListMatch(matchers ...interface{}) *DatasetRepo_List
- type DatasetRepo_Create
- type DatasetRepo_Get
- type DatasetRepo_List
- type PartitionRepo
- type PartitionRepo_Create
- type ReservationRepo
- func (_m *ReservationRepo) Create(ctx context.Context, reservation models.Reservation, now time.Time) error
- func (_m *ReservationRepo) Delete(ctx context.Context, reservation models.ReservationKey, ownerID string) error
- func (_m *ReservationRepo) Get(ctx context.Context, reservationKey models.ReservationKey) (models.Reservation, error)
- func (_m *ReservationRepo) OnCreate(ctx context.Context, reservation models.Reservation, now time.Time) *ReservationRepo_Create
- func (_m *ReservationRepo) OnCreateMatch(matchers ...interface{}) *ReservationRepo_Create
- func (_m *ReservationRepo) OnDelete(ctx context.Context, reservation models.ReservationKey, ownerID string) *ReservationRepo_Delete
- func (_m *ReservationRepo) OnDeleteMatch(matchers ...interface{}) *ReservationRepo_Delete
- func (_m *ReservationRepo) OnGet(ctx context.Context, reservationKey models.ReservationKey) *ReservationRepo_Get
- func (_m *ReservationRepo) OnGetMatch(matchers ...interface{}) *ReservationRepo_Get
- func (_m *ReservationRepo) OnUpdate(ctx context.Context, reservation models.Reservation, now time.Time) *ReservationRepo_Update
- func (_m *ReservationRepo) OnUpdateMatch(matchers ...interface{}) *ReservationRepo_Update
- func (_m *ReservationRepo) Update(ctx context.Context, reservation models.Reservation, now time.Time) error
- type ReservationRepo_Create
- type ReservationRepo_Delete
- type ReservationRepo_Get
- type ReservationRepo_Update
- type TagRepo
- func (_m *TagRepo) Create(ctx context.Context, in models.Tag) error
- func (_m *TagRepo) Get(ctx context.Context, in models.TagKey) (models.Tag, error)
- func (_m *TagRepo) OnCreate(ctx context.Context, in models.Tag) *TagRepo_Create
- func (_m *TagRepo) OnCreateMatch(matchers ...interface{}) *TagRepo_Create
- func (_m *TagRepo) OnGet(ctx context.Context, in models.TagKey) *TagRepo_Get
- func (_m *TagRepo) OnGetMatch(matchers ...interface{}) *TagRepo_Get
- type TagRepo_Create
- type TagRepo_Get
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArtifactRepo ¶
ArtifactRepo is an autogenerated mock type for the ArtifactRepo type
func (*ArtifactRepo) Get ¶
func (_m *ArtifactRepo) Get(ctx context.Context, in models.ArtifactKey) (models.Artifact, error)
Get provides a mock function with given fields: ctx, in
func (*ArtifactRepo) List ¶
func (_m *ArtifactRepo) List(ctx context.Context, datasetKey models.DatasetKey, in models.ListModelsInput) ([]models.Artifact, error)
List provides a mock function with given fields: ctx, datasetKey, in
func (*ArtifactRepo) OnCreate ¶
func (_m *ArtifactRepo) OnCreate(ctx context.Context, in models.Artifact) *ArtifactRepo_Create
func (*ArtifactRepo) OnCreateMatch ¶
func (_m *ArtifactRepo) OnCreateMatch(matchers ...interface{}) *ArtifactRepo_Create
func (*ArtifactRepo) OnGet ¶
func (_m *ArtifactRepo) OnGet(ctx context.Context, in models.ArtifactKey) *ArtifactRepo_Get
func (*ArtifactRepo) OnGetMatch ¶
func (_m *ArtifactRepo) OnGetMatch(matchers ...interface{}) *ArtifactRepo_Get
func (*ArtifactRepo) OnList ¶
func (_m *ArtifactRepo) OnList(ctx context.Context, datasetKey models.DatasetKey, in models.ListModelsInput) *ArtifactRepo_List
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
type ArtifactRepo_Create ¶
func (ArtifactRepo_Create) Return ¶
func (_m ArtifactRepo_Create) Return(_a0 error) *ArtifactRepo_Create
type ArtifactRepo_Get ¶
func (ArtifactRepo_Get) Return ¶
func (_m ArtifactRepo_Get) Return(_a0 models.Artifact, _a1 error) *ArtifactRepo_Get
type ArtifactRepo_List ¶
func (ArtifactRepo_List) Return ¶
func (_m ArtifactRepo_List) Return(_a0 []models.Artifact, _a1 error) *ArtifactRepo_List
type ArtifactRepo_Update ¶
func (ArtifactRepo_Update) Return ¶
func (_m ArtifactRepo_Update) Return(_a0 error) *ArtifactRepo_Update
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 ¶
DatasetRepo is an autogenerated mock type for the DatasetRepo type
func (*DatasetRepo) Get ¶
func (_m *DatasetRepo) Get(ctx context.Context, in models.DatasetKey) (models.Dataset, error)
Get provides a mock function with given fields: ctx, in
func (*DatasetRepo) List ¶
func (_m *DatasetRepo) List(ctx context.Context, in models.ListModelsInput) ([]models.Dataset, error)
List provides a mock function with given fields: ctx, in
func (*DatasetRepo) OnCreate ¶
func (_m *DatasetRepo) OnCreate(ctx context.Context, in models.Dataset) *DatasetRepo_Create
func (*DatasetRepo) OnCreateMatch ¶
func (_m *DatasetRepo) OnCreateMatch(matchers ...interface{}) *DatasetRepo_Create
func (*DatasetRepo) OnGet ¶
func (_m *DatasetRepo) OnGet(ctx context.Context, in models.DatasetKey) *DatasetRepo_Get
func (*DatasetRepo) OnGetMatch ¶
func (_m *DatasetRepo) OnGetMatch(matchers ...interface{}) *DatasetRepo_Get
func (*DatasetRepo) OnList ¶
func (_m *DatasetRepo) OnList(ctx context.Context, in models.ListModelsInput) *DatasetRepo_List
func (*DatasetRepo) OnListMatch ¶
func (_m *DatasetRepo) OnListMatch(matchers ...interface{}) *DatasetRepo_List
type DatasetRepo_Create ¶
func (DatasetRepo_Create) Return ¶
func (_m DatasetRepo_Create) Return(_a0 error) *DatasetRepo_Create
type DatasetRepo_Get ¶
func (DatasetRepo_Get) Return ¶
func (_m DatasetRepo_Get) Return(_a0 models.Dataset, _a1 error) *DatasetRepo_Get
type DatasetRepo_List ¶
func (DatasetRepo_List) Return ¶
func (_m DatasetRepo_List) Return(_a0 []models.Dataset, _a1 error) *DatasetRepo_List
type PartitionRepo ¶
PartitionRepo is an autogenerated mock type for the PartitionRepo type
func (*PartitionRepo) OnCreate ¶
func (_m *PartitionRepo) OnCreate(ctx context.Context, in models.Partition) *PartitionRepo_Create
func (*PartitionRepo) OnCreateMatch ¶
func (_m *PartitionRepo) OnCreateMatch(matchers ...interface{}) *PartitionRepo_Create
type PartitionRepo_Create ¶
func (PartitionRepo_Create) Return ¶
func (_m PartitionRepo_Create) Return(_a0 error) *PartitionRepo_Create
type ReservationRepo ¶
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 ¶
func (ReservationRepo_Create) Return ¶
func (_m ReservationRepo_Create) Return(_a0 error) *ReservationRepo_Create
type ReservationRepo_Delete ¶
func (ReservationRepo_Delete) Return ¶
func (_m ReservationRepo_Delete) Return(_a0 error) *ReservationRepo_Delete
type ReservationRepo_Get ¶
func (ReservationRepo_Get) Return ¶
func (_m ReservationRepo_Get) Return(_a0 models.Reservation, _a1 error) *ReservationRepo_Get
type ReservationRepo_Update ¶
func (ReservationRepo_Update) Return ¶
func (_m ReservationRepo_Update) Return(_a0 error) *ReservationRepo_Update
type TagRepo ¶
TagRepo is an autogenerated mock type for the TagRepo type
func (*TagRepo) OnCreateMatch ¶
func (_m *TagRepo) OnCreateMatch(matchers ...interface{}) *TagRepo_Create
func (*TagRepo) OnGetMatch ¶
func (_m *TagRepo) OnGetMatch(matchers ...interface{}) *TagRepo_Get
type TagRepo_Create ¶
func (TagRepo_Create) Return ¶
func (_m TagRepo_Create) Return(_a0 error) *TagRepo_Create
type TagRepo_Get ¶
func (TagRepo_Get) Return ¶
func (_m TagRepo_Get) Return(_a0 models.Tag, _a1 error) *TagRepo_Get