Documentation
¶
Index ¶
- type Memory
- func (m *Memory) DigestSet() set.Set[digest.Digest]
- func (m *Memory) Exists(node ocispec.Descriptor) bool
- func (m *Memory) Index(ctx context.Context, fetcher content.Fetcher, node ocispec.Descriptor) error
- func (m *Memory) IndexAll(ctx context.Context, fetcher content.Fetcher, node ocispec.Descriptor) error
- func (m *Memory) Predecessors(_ context.Context, node ocispec.Descriptor) ([]ocispec.Descriptor, error)
- func (m *Memory) Remove(node ocispec.Descriptor) []ocispec.Descriptor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Memory ¶
type Memory struct {
// contains filtered or unexported fields
}
Memory is a memory based PredecessorFinder.
func (*Memory) Exists ¶
func (m *Memory) Exists(node ocispec.Descriptor) bool
Exists checks if the node exists in the graph
func (*Memory) IndexAll ¶
func (m *Memory) IndexAll(ctx context.Context, fetcher content.Fetcher, node ocispec.Descriptor) error
Index indexes predecessors for all the successors of the given node.
func (*Memory) Predecessors ¶
func (m *Memory) Predecessors(_ context.Context, node ocispec.Descriptor) ([]ocispec.Descriptor, error)
Predecessors returns the nodes directly pointing to the current node. Predecessors returns nil without error if the node does not exists in the store. Like other operations, calling Predecessors() is go-routine safe. However, it does not necessarily correspond to any consistent snapshot of the stored contents.
func (*Memory) Remove ¶
func (m *Memory) Remove(node ocispec.Descriptor) []ocispec.Descriptor
Remove removes the node from its predecessors and successors, and returns the dangling root nodes caused by the deletion.
Click to show internal directories.
Click to hide internal directories.