local

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store is a storage backed by the local file system.

func NewStore

func NewStore(root string) (*Store, error)

NewStore returns a new Store.

func (*Store) Abort

func (s *Store) Abort(ctx context.Context, ref string) error

Abort implements content.Store.

func (*Store) BlobPath

func (s *Store) BlobPath(dgst digest.Digest) (string, error)

BlobPath returns the path where the blob of the digest is located at.

The blob path may not exist, and it is up to the caller to validate the file has the expected content.

func (*Store) Delete

func (s *Store) Delete(ctx context.Context, dgst digest.Digest) error

Delete implements content.Store.

func (*Store) Info

func (s *Store) Info(ctx context.Context, dgst digest.Digest) (content.Info, error)

Info implements content.Store.

func (*Store) ListStatuses

func (s *Store) ListStatuses(ctx context.Context, filters ...string) ([]content.Status, error)

ListStatuses implements content.Store.

func (*Store) ReaderAt

func (s *Store) ReaderAt(ctx context.Context, desc ocispec.Descriptor) (content.ReaderAt, error)

ReaderAt implements content.Store.

func (*Store) Status

func (s *Store) Status(ctx context.Context, ref string) (content.Status, error)

Status implements content.Store.

func (*Store) Update

func (s *Store) Update(ctx context.Context, info content.Info, fieldpaths ...string) (content.Info, error)

Update implements content.Store.

func (*Store) Walk

func (s *Store) Walk(ctx context.Context, fn content.WalkFunc, filters ...string) error

Walk implements content.Store.

func (*Store) Writer

func (s *Store) Writer(ctx context.Context, opts ...content.WriterOpt) (content.Writer, error)

Writer implements content.Store.

Jump to

Keyboard shortcuts

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