imagestore

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Constructor

type Constructor func(...Option) (Store, error)

Constructor is a function which creates an images store based on parameters represented as options

type Option

type Option func(Parameters) Parameters

Options is a function which returns updated parameters.

func WithArchiveDir

func WithArchiveDir(archiveDir string) Option

WithArchiveDir return an option to set the archive directory parameter.

func WithLogs

func WithLogs(logs io.Writer) Option

WithArchiveDir return an option to set the logs parameter.

type Parameters

type Parameters struct {
	ArchiveDir string
	Logs       io.Writer
}

Parameters is used to create image stores.

func Create

func Create(options ...Option) Parameters

type Store

type Store interface {
	// Add copies the image with the given name to the image store.
	Add(img string) (contentDigest string, err error)

	// Push copies the image with the given digest from an image with the given name in the image store to a repository
	// with the given name.
	Push(dig image.Digest, src image.Name, dst image.Name) error
}

Store is an abstract image store.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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