layer

package
v1.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrLayerNotFound = errors.New("layer not found")

Functions

func FromOpener

func FromOpener(opener Opener, opts ...Option) (v1.Layer, error)

func OCICache

func OCICache(o artifacts.OCI, c Cache) artifacts.OCI

Types

type Cache

type Cache interface {
	Put(v1.Layer) (v1.Layer, error)

	Get(v1.Hash) (v1.Layer, error)
}

func NewFilesystemCache

func NewFilesystemCache(root string) Cache

type Opener

type Opener func() (io.ReadCloser, error)

type Option

type Option func(*layer)

func WithAnnotations

func WithAnnotations(annotations map[string]string) Option

func WithMediaType

func WithMediaType(mt string) Option

Jump to

Keyboard shortcuts

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