resolver

package
v0.0.0-...-6668049 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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 resolver.

func NewMemory

func NewMemory() *Memory

NewMemory creates a new Memory resolver.

func (*Memory) Map

func (m *Memory) Map() map[string]ocispec.Descriptor

Map dumps the memory into a built-in map structure. Like other operations, calling Map() is go-routine safe.

func (*Memory) Resolve

func (m *Memory) Resolve(_ context.Context, reference string) (ocispec.Descriptor, error)

Resolve resolves a reference to a descriptor.

func (*Memory) Tag

func (m *Memory) Tag(_ context.Context, desc ocispec.Descriptor, reference string) error

Tag tags a descriptor with a reference string.

func (*Memory) TagSet

func (m *Memory) TagSet(desc ocispec.Descriptor) set.Set[string]

TagSet returns the set of tags of the descriptor.

func (*Memory) Untag

func (m *Memory) Untag(reference string)

Untag removes a reference from index map.

Jump to

Keyboard shortcuts

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