Documentation
¶
Index ¶
- type CatalogRepository
- type Publisher
- type RecordRepository
- func (r *RecordRepository) Delete(ctx context.Context, id artifactstore.RecordID, expectedRevision uint64) error
- func (r *RecordRepository) Get(ctx context.Context, id artifactstore.RecordID) (record.Record, error)
- func (r *RecordRepository) ListByRoot(ctx context.Context, rootID artifactstore.RootID) ([]record.Record, error)
- func (r *RecordRepository) Update(ctx context.Context, value record.Record, expectedRevision uint64) error
- type RootRepository
- func (r *RootRepository) Attach(ctx context.Context, value root.Attachment, expectedRootRevision uint64) (root.Root, error)
- func (r *RootRepository) Create(ctx context.Context, value root.Root, attachments []root.Attachment) error
- func (r *RootRepository) Detach(ctx context.Context, rootID artifactstore.RootID, ...) (root.Root, error)
- func (r *RootRepository) Get(ctx context.Context, id artifactstore.RootID, includeDeleted bool) (root.Root, error)
- func (r *RootRepository) GetAttachment(ctx context.Context, rootID artifactstore.RootID, ...) (root.Attachment, error)
- func (r *RootRepository) List(ctx context.Context, includeDeleted bool) ([]root.Root, error)
- func (r *RootRepository) ListAttachments(ctx context.Context, rootID artifactstore.RootID) ([]root.Attachment, error)
- func (r *RootRepository) Update(ctx context.Context, value root.Root, expectedRevision uint64) error
- func (r *RootRepository) UpdateAttachment(ctx context.Context, value root.Attachment, expectedRootRevision uint64, ...) (root.Root, error)
- type SourceRepository
- func (r *SourceRepository) Create(ctx context.Context, value source.Source) error
- func (r *SourceRepository) Delete(ctx context.Context, id artifactstore.SourceID, expectedRevision uint64) error
- func (r *SourceRepository) Get(ctx context.Context, id artifactstore.SourceID) (source.Source, error)
- func (r *SourceRepository) List(ctx context.Context) ([]source.Source, 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 CatalogRepository ¶
type CatalogRepository struct {
// contains filtered or unexported fields
}
func (*CatalogRepository) GetCurrent ¶
func (r *CatalogRepository) GetCurrent( ctx context.Context, rootID artifactstore.RootID, ) (catalog.Snapshot, error)
type RecordRepository ¶
type RecordRepository struct {
// contains filtered or unexported fields
}
func (*RecordRepository) Delete ¶
func (r *RecordRepository) Delete( ctx context.Context, id artifactstore.RecordID, expectedRevision uint64, ) error
func (*RecordRepository) Get ¶
func (r *RecordRepository) Get( ctx context.Context, id artifactstore.RecordID, ) (record.Record, error)
func (*RecordRepository) ListByRoot ¶
func (r *RecordRepository) ListByRoot( ctx context.Context, rootID artifactstore.RootID, ) ([]record.Record, error)
type RootRepository ¶
type RootRepository struct {
// contains filtered or unexported fields
}
func (*RootRepository) Attach ¶
func (r *RootRepository) Attach( ctx context.Context, value root.Attachment, expectedRootRevision uint64, ) (root.Root, error)
func (*RootRepository) Create ¶
func (r *RootRepository) Create( ctx context.Context, value root.Root, attachments []root.Attachment, ) error
func (*RootRepository) Detach ¶
func (r *RootRepository) Detach( ctx context.Context, rootID artifactstore.RootID, sourceID artifactstore.SourceID, expectedRootRevision uint64, expectedAttachmentRevision uint64, modifiedAt time.Time, ) (root.Root, error)
func (*RootRepository) Get ¶
func (r *RootRepository) Get( ctx context.Context, id artifactstore.RootID, includeDeleted bool, ) (root.Root, error)
func (*RootRepository) GetAttachment ¶
func (r *RootRepository) GetAttachment( ctx context.Context, rootID artifactstore.RootID, sourceID artifactstore.SourceID, ) (root.Attachment, error)
func (*RootRepository) ListAttachments ¶
func (r *RootRepository) ListAttachments( ctx context.Context, rootID artifactstore.RootID, ) ([]root.Attachment, error)
func (*RootRepository) UpdateAttachment ¶
func (r *RootRepository) UpdateAttachment( ctx context.Context, value root.Attachment, expectedRootRevision uint64, expectedAttachmentRevision uint64, ) (root.Root, error)
type SourceRepository ¶
type SourceRepository struct {
// contains filtered or unexported fields
}
func (*SourceRepository) Delete ¶
func (r *SourceRepository) Delete( ctx context.Context, id artifactstore.SourceID, expectedRevision uint64, ) error
func (*SourceRepository) Get ¶
func (r *SourceRepository) Get( ctx context.Context, id artifactstore.SourceID, ) (source.Source, error)
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) Catalogs ¶
func (s *Store) Catalogs() *CatalogRepository
func (*Store) Records ¶
func (s *Store) Records() *RecordRepository
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.