store

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dirname

func Dirname(ref string) string

func NewStorableImage

func NewStorableImage(ref string, descriptor ocispec.Descriptor, filterBytes []byte, runtime *config.Runtime) (*storedImage, error)

func NewStore

func NewStore(storageDir string) *store

Types

type Image

type Image interface {
	model.Image
}

type Store

type Store interface {
	List() ([]Image, error)
	Add(ctx context.Context, image Image) error
	Get(ref string) (*storedImage, error)
	Delete(ref string) error
	Dir(ref string) (string, error)
}

Jump to

Keyboard shortcuts

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