Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArtifactRepo ¶
type ArtifactRepo interface { Create(ctx context.Context, in models.Artifact) error Get(ctx context.Context, in models.ArtifactKey) (models.Artifact, error) List(ctx context.Context, datasetKey models.DatasetKey, in models.ListModelsInput) ([]models.Artifact, error) Update(ctx context.Context, artifact models.Artifact) error }
type DataCatalogRepo ¶
type DataCatalogRepo interface { DatasetRepo() DatasetRepo ArtifactRepo() ArtifactRepo TagRepo() TagRepo ReservationRepo() ReservationRepo }
type DatasetRepo ¶
type PartitionRepo ¶
type ReservationRepo ¶
type ReservationRepo interface { // Create a new reservation if the reservation does not already exist Create(ctx context.Context, reservation models.Reservation, now time.Time) error // Delete a reservation if it exists Delete(ctx context.Context, reservation models.ReservationKey, ownerID string) error // Get reservation Get(ctx context.Context, reservationKey models.ReservationKey) (models.Reservation, error) // Update an existing reservation. If called by the current owner, we update the // expiresAt timestamp. If called by a new owner and the current reservation has // expired, we attempt to take over the reservation. Update(ctx context.Context, reservation models.Reservation, now time.Time) error }
Interface to interact with Reservation Table
Click to show internal directories.
Click to hide internal directories.