resolver

package
v2.0.0-rc.5 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: Apache-2.0 Imports: 4 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. However, it does not necessarily correspond to any consistent snapshot of the storage contents.

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.

Jump to

Keyboard shortcuts

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