Documentation
¶
Index ¶
- type Datastore
- func (ds *Datastore) CheckAllBundleContentsAreApproved(ctx context.Context, bundleID string) (bool, error)
- func (ds *Datastore) CheckBundleExists(ctx context.Context, bundleID string) (bool, error)
- func (ds *Datastore) CheckContentItemExistsByDatasetEditionVersion(ctx context.Context, datasetID, editionID string, versionID int) (bool, error)
- func (ds *Datastore) CreateBundleEvent(ctx context.Context, event *models.Event) error
- func (ds *Datastore) CreateContentItem(ctx context.Context, contentItem *models.ContentItem) error
- func (ds *Datastore) GetBundle(ctx context.Context, bundleID string) (*models.Bundle, error)
- func (ds *Datastore) ListBundleEvents(ctx context.Context, offset, limit int, bundleID string, ...) ([]*models.Event, int, error)
- func (ds *Datastore) ListBundles(ctx context.Context, offset, limit int, filters *filters.BundleFilters) ([]*models.Bundle, int, error)
- func (ds *Datastore) UpdateBundleETag(ctx context.Context, bundleID, email string) (*models.Bundle, error)
- type MongoDB
- type Storer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Datastore ¶ added in v1.2.0
type Datastore struct {
Backend Storer
}
func (*Datastore) CheckAllBundleContentsAreApproved ¶ added in v1.2.0
func (*Datastore) CheckBundleExists ¶ added in v1.3.0
func (*Datastore) CheckContentItemExistsByDatasetEditionVersion ¶ added in v1.3.0
func (*Datastore) CreateBundleEvent ¶ added in v1.3.0
func (*Datastore) CreateContentItem ¶ added in v1.3.0
func (*Datastore) ListBundleEvents ¶ added in v1.3.0
func (*Datastore) ListBundles ¶ added in v1.2.0
type MongoDB ¶
type MongoDB interface {
Close(context.Context) error
Checker(context.Context, *healthcheck.CheckState) error
// contains filtered or unexported methods
}
MongoDB represents all the required methods from mongo DB
Click to show internal directories.
Click to hide internal directories.