store

package
v0.0.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Config *container.Config `json:"config"`
}

type Store

type Store struct {
	BaseDir string
	// contains filtered or unexported fields
}

func NewStore

func NewStore(basedir string, overlaydir string, parallelism int, reg *registryclient.RegistryClient) (*Store, error)

NewStore creates a new image store, with basedir as the base directory for storing layers and metadata, and overlaydir as the directory layers will be unpacked into. The filesystem backing overlaydir needs to support special files like device files and sockets. The parameter parallelism can be used to parallelize layer downloads and unpacking. The parameter reg is a RegistryClient.

func (*Store) Mount

func (s *Store) Mount(image, dest string) error

func (*Store) Pull

func (s *Store) Pull(image string) (string, error)

func (*Store) SaveConfig

func (s *Store) SaveConfig(image, dest string) error

func (*Store) Unpack

func (s *Store) Unpack(image, dest string) error

Jump to

Keyboard shortcuts

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