store

package
v2.1.100 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemoryStore

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

MemoryStore implements a simple in-memory content store for labels and descriptors (and associated content for manifests and configs)

func NewMemoryStore

func NewMemoryStore() *MemoryStore

NewMemoryStore creates a memory store that implements the proper content interfaces to support simple push/inspect operations on containerd's content in a memory-only context

func (*MemoryStore) Abort

func (m *MemoryStore) Abort(ctx context.Context, ref string) error

Abort is not implemented or needed in this context

func (*MemoryStore) Delete

func (m *MemoryStore) Delete(ctx context.Context, d digest.Digest) error

Delete is unimplemented as we don't use it in the flow of manifest-tool

func (*MemoryStore) Get

Get returns the content for a specific descriptor

func (*MemoryStore) GetByName

func (m *MemoryStore) GetByName(name string) (desc ocispec.Descriptor, content []byte, found bool)

GetByName retrieves a descriptor based on the associated name

func (*MemoryStore) Info

func (m *MemoryStore) Info(ctx context.Context, d digest.Digest) (ccontent.Info, error)

Info returns the info for a specific digest

func (*MemoryStore) ListStatuses

func (m *MemoryStore) ListStatuses(ctx context.Context, filters ...string) ([]ccontent.Status, error)

ListStatuses is not implemented or needed in this context

func (*MemoryStore) ReaderAt

func (m *MemoryStore) ReaderAt(ctx context.Context, desc ocispec.Descriptor) (ccontent.ReaderAt, error)

ReaderAt returns a reader for a descriptor

func (*MemoryStore) Set

func (m *MemoryStore) Set(desc ocispec.Descriptor, content []byte)

Set sets the content for a specific descriptor

func (*MemoryStore) Status

func (m *MemoryStore) Status(ctx context.Context, ref string) (ccontent.Status, error)

Status is not implemented or needed in this context

func (*MemoryStore) Update

func (m *MemoryStore) Update(ctx context.Context, info ccontent.Info, fieldpaths ...string) (ccontent.Info, error)

Update updates mutable label field content related to a descriptor

func (*MemoryStore) Walk

func (m *MemoryStore) Walk(ctx context.Context, fn ccontent.WalkFunc, filters ...string) error

Walk is unimplemented

func (*MemoryStore) Writer

func (m *MemoryStore) Writer(ctx context.Context, opts ...ccontent.WriterOpt) (ccontent.Writer, error)

Writer returns a content writer given the specific options

Jump to

Keyboard shortcuts

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