Documentation
¶
Index ¶
- type ArtifactRepository
- func (r *ArtifactRepository) CreateAdopted(ctx context.Context, value artifact.Artifact, ...) error
- func (r *ArtifactRepository) CreatePinned(ctx context.Context, value artifact.Artifact, ...) error
- func (r *ArtifactRepository) Get(ctx context.Context, ref artifact.ArtifactRef) (artifact.Artifact, error)
- func (r *ArtifactRepository) ListByCollection(ctx context.Context, ref collection.CollectionRef) ([]artifact.Artifact, error)
- func (r *ArtifactRepository) ListSuppressions(ctx context.Context, ref collection.CollectionRef) ([]artifact.Suppression, error)
- func (r *ArtifactRepository) Purge(ctx context.Context, ref artifact.ArtifactRef, expectedRevision uint64) error
- func (r *ArtifactRepository) PurgeAndSuppress(ctx context.Context, ref artifact.ArtifactRef, expectedRevision uint64, ...) error
- func (r *ArtifactRepository) Suppress(ctx context.Context, value artifact.Suppression, ...) error
- func (r *ArtifactRepository) Unadopt(ctx context.Context, ref artifact.ArtifactRef, expectedRevision uint64, ...) error
- func (r *ArtifactRepository) Unsuppress(ctx context.Context, ref collection.CollectionRef, ...) error
- func (r *ArtifactRepository) Update(ctx context.Context, value artifact.Artifact, expectedRevision uint64) error
- type CatalogRepository
- type CollectionRepository
- func (r *CollectionRepository) Attach(ctx context.Context, value collection.Attachment, ...) (collection.Collection, error)
- func (r *CollectionRepository) Create(ctx context.Context, value collection.Collection, ...) error
- func (r *CollectionRepository) Detach(ctx context.Context, ref collection.CollectionRef, sourceID basespec.SourceID, ...) (collection.Collection, error)
- func (r *CollectionRepository) Get(ctx context.Context, ref collection.CollectionRef) (collection.Collection, error)
- func (r *CollectionRepository) GetAttachment(ctx context.Context, ref collection.CollectionRef, sourceID basespec.SourceID) (collection.Attachment, error)
- func (r *CollectionRepository) GetRetired(ctx context.Context, ref collection.CollectionRef) (collection.Collection, error)
- func (r *CollectionRepository) ListAttachments(ctx context.Context, ref collection.CollectionRef) ([]collection.Attachment, error)
- func (r *CollectionRepository) ListByRoot(ctx context.Context, rootID basespec.RootID) ([]collection.Collection, error)
- func (r *CollectionRepository) Purge(ctx context.Context, ref collection.CollectionRef, expectedRevision uint64) error
- func (r *CollectionRepository) ReplaceAttachment(ctx context.Context, ref collection.CollectionRef, ...) (collection.Collection, error)
- func (r *CollectionRepository) Retire(ctx context.Context, value collection.Collection, expectedRevision uint64) error
- func (r *CollectionRepository) Update(ctx context.Context, value collection.Collection, expectedRevision uint64) error
- func (r *CollectionRepository) UpdateAttachment(ctx context.Context, value collection.Attachment, ...) (collection.Collection, error)
- type Publisher
- type RootRepository
- func (r *RootRepository) Create(ctx context.Context, value root.Root) error
- func (r *RootRepository) Get(ctx context.Context, id basespec.RootID) (root.Root, error)
- func (r *RootRepository) List(ctx context.Context) ([]root.Root, error)
- func (r *RootRepository) Purge(ctx context.Context, id basespec.RootID, expectedRevision uint64) error
- func (r *RootRepository) Retire(ctx context.Context, value root.Root, expectedRevision uint64) error
- func (r *RootRepository) Update(ctx context.Context, value root.Root, expectedRevision uint64) error
- type SourceRepository
- func (r *SourceRepository) Create(ctx context.Context, value source.Source) error
- func (r *SourceRepository) Discard(ctx context.Context, rootID basespec.RootID, id basespec.SourceID, ...) error
- func (r *SourceRepository) Get(ctx context.Context, rootID basespec.RootID, id basespec.SourceID) (source.Source, error)
- func (r *SourceRepository) List(ctx context.Context, rootID basespec.RootID) ([]source.Source, error)
- func (r *SourceRepository) Purge(ctx context.Context, rootID basespec.RootID, id basespec.SourceID, ...) error
- func (r *SourceRepository) Retire(ctx context.Context, value source.Source, expectedRevision uint64) error
- func (r *SourceRepository) Update(ctx context.Context, value source.Source, expectedRevision uint64) error
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArtifactRepository ¶ added in v0.2.13
type ArtifactRepository struct {
// contains filtered or unexported fields
}
func (*ArtifactRepository) CreateAdopted ¶ added in v0.2.13
func (*ArtifactRepository) CreatePinned ¶ added in v0.2.13
func (*ArtifactRepository) Get ¶ added in v0.2.13
func (r *ArtifactRepository) Get( ctx context.Context, ref artifact.ArtifactRef, ) (artifact.Artifact, error)
func (*ArtifactRepository) ListByCollection ¶ added in v0.2.13
func (r *ArtifactRepository) ListByCollection( ctx context.Context, ref collection.CollectionRef, ) ([]artifact.Artifact, error)
func (*ArtifactRepository) ListSuppressions ¶ added in v0.2.13
func (r *ArtifactRepository) ListSuppressions( ctx context.Context, ref collection.CollectionRef, ) ([]artifact.Suppression, error)
func (*ArtifactRepository) Purge ¶ added in v0.2.13
func (r *ArtifactRepository) Purge( ctx context.Context, ref artifact.ArtifactRef, expectedRevision uint64, ) error
func (*ArtifactRepository) PurgeAndSuppress ¶ added in v0.2.14
func (r *ArtifactRepository) PurgeAndSuppress( ctx context.Context, ref artifact.ArtifactRef, expectedRevision uint64, suppression artifact.Suppression, ) error
func (*ArtifactRepository) Suppress ¶ added in v0.2.13
func (r *ArtifactRepository) Suppress( ctx context.Context, value artifact.Suppression, expectedCollectionRevision uint64, ) error
func (*ArtifactRepository) Unadopt ¶ added in v0.2.13
func (r *ArtifactRepository) Unadopt( ctx context.Context, ref artifact.ArtifactRef, expectedRevision uint64, suppression *artifact.Suppression, ) error
func (*ArtifactRepository) Unsuppress ¶ added in v0.2.13
func (r *ArtifactRepository) Unsuppress( ctx context.Context, ref collection.CollectionRef, binding artifact.SourceBinding, expectedRevision uint64, ) error
type CatalogRepository ¶
type CatalogRepository struct {
// contains filtered or unexported fields
}
func (*CatalogRepository) GetCurrent ¶
func (r *CatalogRepository) GetCurrent( ctx context.Context, ref collection.CollectionRef, ) (catalog.Snapshot, error)
type CollectionRepository ¶ added in v0.2.13
type CollectionRepository struct {
// contains filtered or unexported fields
}
func (*CollectionRepository) Attach ¶ added in v0.2.13
func (r *CollectionRepository) Attach( ctx context.Context, value collection.Attachment, expectedCollectionRevision uint64, ) (collection.Collection, error)
func (*CollectionRepository) Create ¶ added in v0.2.13
func (r *CollectionRepository) Create( ctx context.Context, value collection.Collection, attachments []collection.Attachment, ) error
func (*CollectionRepository) Detach ¶ added in v0.2.13
func (r *CollectionRepository) Detach( ctx context.Context, ref collection.CollectionRef, sourceID basespec.SourceID, expectedCollectionRevision uint64, expectedAttachmentRevision uint64, modifiedAt time.Time, ) (collection.Collection, error)
func (*CollectionRepository) Get ¶ added in v0.2.13
func (r *CollectionRepository) Get( ctx context.Context, ref collection.CollectionRef, ) (collection.Collection, error)
func (*CollectionRepository) GetAttachment ¶ added in v0.2.13
func (r *CollectionRepository) GetAttachment( ctx context.Context, ref collection.CollectionRef, sourceID basespec.SourceID, ) (collection.Attachment, error)
func (*CollectionRepository) GetRetired ¶ added in v0.2.13
func (r *CollectionRepository) GetRetired( ctx context.Context, ref collection.CollectionRef, ) (collection.Collection, error)
func (*CollectionRepository) ListAttachments ¶ added in v0.2.13
func (r *CollectionRepository) ListAttachments( ctx context.Context, ref collection.CollectionRef, ) ([]collection.Attachment, error)
func (*CollectionRepository) ListByRoot ¶ added in v0.2.13
func (r *CollectionRepository) ListByRoot( ctx context.Context, rootID basespec.RootID, ) ([]collection.Collection, error)
func (*CollectionRepository) Purge ¶ added in v0.2.13
func (r *CollectionRepository) Purge( ctx context.Context, ref collection.CollectionRef, expectedRevision uint64, ) error
func (*CollectionRepository) ReplaceAttachment ¶ added in v0.2.13
func (r *CollectionRepository) ReplaceAttachment( ctx context.Context, ref collection.CollectionRef, previousSourceID basespec.SourceID, expectedPreviousRevision uint64, replacement collection.Attachment, expectedCollectionRevision uint64, ) (collection.Collection, error)
func (*CollectionRepository) Retire ¶ added in v0.2.13
func (r *CollectionRepository) Retire( ctx context.Context, value collection.Collection, expectedRevision uint64, ) error
func (*CollectionRepository) Update ¶ added in v0.2.13
func (r *CollectionRepository) Update( ctx context.Context, value collection.Collection, expectedRevision uint64, ) error
func (*CollectionRepository) UpdateAttachment ¶ added in v0.2.13
func (r *CollectionRepository) UpdateAttachment( ctx context.Context, value collection.Attachment, expectedCollectionRevision uint64, expectedAttachmentRevision uint64, ) (collection.Collection, error)
type RootRepository ¶
type RootRepository struct {
// contains filtered or unexported fields
}
type SourceRepository ¶
type SourceRepository struct {
// contains filtered or unexported fields
}
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) Artifacts ¶ added in v0.2.13
func (s *Store) Artifacts() *ArtifactRepository
func (*Store) Catalogs ¶
func (s *Store) Catalogs() *CatalogRepository
func (*Store) Collections ¶ added in v0.2.13
func (s *Store) Collections() *CollectionRepository
func (*Store) Roots ¶
func (s *Store) Roots() *RootRepository
func (*Store) Sources ¶
func (s *Store) Sources() *SourceRepository
Click to show internal directories.
Click to hide internal directories.