Documentation ¶
Index ¶
- type MemoryStore
- func (m *MemoryStore) Abort(ctx context.Context, ref string) error
- func (m *MemoryStore) Delete(ctx context.Context, d digest.Digest) error
- func (m *MemoryStore) Get(desc ocispec.Descriptor) (ocispec.Descriptor, []byte, bool)
- func (m *MemoryStore) GetByName(name string) (desc ocispec.Descriptor, content []byte, found bool)
- func (m *MemoryStore) Info(ctx context.Context, d digest.Digest) (ccontent.Info, error)
- func (m *MemoryStore) ListStatuses(ctx context.Context, filters ...string) ([]ccontent.Status, error)
- func (m *MemoryStore) ReaderAt(ctx context.Context, desc ocispec.Descriptor) (ccontent.ReaderAt, error)
- func (m *MemoryStore) Set(desc ocispec.Descriptor, content []byte)
- func (m *MemoryStore) Status(ctx context.Context, ref string) (ccontent.Status, error)
- func (m *MemoryStore) Update(ctx context.Context, info ccontent.Info, fieldpaths ...string) (ccontent.Info, error)
- func (m *MemoryStore) Walk(ctx context.Context, fn ccontent.WalkFunc, filters ...string) error
- func (m *MemoryStore) Writer(ctx context.Context, opts ...ccontent.WriterOpt) (ccontent.Writer, error)
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 ¶
func (m *MemoryStore) Get(desc ocispec.Descriptor) (ocispec.Descriptor, []byte, bool)
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) 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) 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