layer

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: Apache-2.0 Imports: 8 Imported by: 2

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 added in v0.1.5

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

Types

type Cache added in v0.1.5

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

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

func NewFilesystemCache added in v0.1.5

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