sqlite

package
v0.2.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2026 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

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 (r *ArtifactRepository) CreateAdopted(
	ctx context.Context,
	value artifact.Artifact,
	expectedCollectionRevision uint64,
	expectedCatalogRevision uint64,
) error

func (*ArtifactRepository) CreatePinned added in v0.2.13

func (r *ArtifactRepository) CreatePinned(
	ctx context.Context,
	value artifact.Artifact,
	expectedCollectionRevision uint64,
	expectedCatalogRevision uint64,
) error

func (*ArtifactRepository) Get added in v0.2.13

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

func (*ArtifactRepository) Update added in v0.2.13

func (r *ArtifactRepository) Update(
	ctx context.Context,
	value artifact.Artifact,
	expectedRevision uint64,
) error

type CatalogRepository

type CatalogRepository struct {
	// contains filtered or unexported fields
}

func (*CatalogRepository) GetCurrent

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 (*CollectionRepository) GetAttachment added in v0.2.13

func (*CollectionRepository) GetRetired added in v0.2.13

func (*CollectionRepository) ListAttachments added in v0.2.13

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 Publisher

type Publisher struct {
	// contains filtered or unexported fields
}

func (*Publisher) Publish

func (p *Publisher) Publish(
	ctx context.Context,
	publication refresh.Publication,
) (catalog.Snapshot, error)

type RootRepository

type RootRepository struct {
	// contains filtered or unexported fields
}

func (*RootRepository) Create

func (r *RootRepository) Create(
	ctx context.Context,
	value root.Root,
) error

func (*RootRepository) Get

func (r *RootRepository) Get(
	ctx context.Context,
	id basespec.RootID,
) (root.Root, error)

func (*RootRepository) List

func (r *RootRepository) List(ctx context.Context) ([]root.Root, error)

func (*RootRepository) Purge added in v0.2.13

func (r *RootRepository) Purge(
	ctx context.Context,
	id basespec.RootID,
	expectedRevision uint64,
) error

func (*RootRepository) Retire added in v0.2.12

func (r *RootRepository) Retire(
	ctx context.Context,
	value root.Root,
	expectedRevision uint64,
) error

func (*RootRepository) Update

func (r *RootRepository) Update(
	ctx context.Context,
	value root.Root,
	expectedRevision uint64,
) error

type SourceRepository

type SourceRepository struct {
	// contains filtered or unexported fields
}

func (*SourceRepository) Create

func (r *SourceRepository) Create(
	ctx context.Context,
	value source.Source,
) error

func (*SourceRepository) Discard added in v0.2.13

func (r *SourceRepository) Discard(
	ctx context.Context,
	rootID basespec.RootID,
	id basespec.SourceID,
	expectedRevision uint64,
) error

func (*SourceRepository) Get

func (*SourceRepository) List

func (r *SourceRepository) List(
	ctx context.Context,
	rootID basespec.RootID,
) ([]source.Source, error)

func (*SourceRepository) Purge added in v0.2.13

func (r *SourceRepository) Purge(
	ctx context.Context,
	rootID basespec.RootID,
	id basespec.SourceID,
	expectedRevision uint64,
) error

func (*SourceRepository) Retire added in v0.2.13

func (r *SourceRepository) Retire(
	ctx context.Context,
	value source.Source,
	expectedRevision uint64,
) error

func (*SourceRepository) Update

func (r *SourceRepository) Update(
	ctx context.Context,
	value source.Source,
	expectedRevision uint64,
) error

type Store

type Store struct {
	// contains filtered or unexported fields
}

func Open

func Open(
	ctx context.Context,
	path string,
) (*Store, error)

func (*Store) Artifacts added in v0.2.13

func (s *Store) Artifacts() *ArtifactRepository

func (*Store) Catalogs

func (s *Store) Catalogs() *CatalogRepository

func (*Store) Close

func (s *Store) Close() error

func (*Store) Collections added in v0.2.13

func (s *Store) Collections() *CollectionRepository

func (*Store) Publisher

func (s *Store) Publisher() *Publisher

func (*Store) Roots

func (s *Store) Roots() *RootRepository

func (*Store) Sources

func (s *Store) Sources() *SourceRepository

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL