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)
- type DataCatalogRepo
- type DatasetRepo
- type PartitionRepo
- 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
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 ¶ added in v0.1.2
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
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 ¶
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 ¶ added in v0.1.2
func (_m *DatasetRepo) List(ctx context.Context, in models.ListModelsInput) ([]models.Dataset, error)
List provides a mock function with given fields: ctx, in
type PartitionRepo ¶ added in v0.1.2
PartitionRepo is an autogenerated mock type for the PartitionRepo type
type ReservationRepo ¶ added in v0.3.17
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
func (ReservationRepo_Create) Return ¶ added in v0.3.17
func (_m ReservationRepo_Create) Return(_a0 error) *ReservationRepo_Create
type ReservationRepo_Delete ¶ added in v0.3.17
func (ReservationRepo_Delete) Return ¶ added in v0.3.17
func (_m ReservationRepo_Delete) Return(_a0 error) *ReservationRepo_Delete
type ReservationRepo_Get ¶ added in v0.3.17
func (ReservationRepo_Get) Return ¶ added in v0.3.17
func (_m ReservationRepo_Get) Return(_a0 models.Reservation, _a1 error) *ReservationRepo_Get
type ReservationRepo_Update ¶ added in v0.3.17
func (ReservationRepo_Update) Return ¶ added in v0.3.17
func (_m ReservationRepo_Update) Return(_a0 error) *ReservationRepo_Update