storage

package
v0.0.0-...-ed4b4ac Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2018 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Deprecated since containers/storage cannot be used by unprivileged user (https://github.com/containers/storage/issues/96)

func NewContainersStore

func NewContainersStore(dir string, systemContext *types.SystemContext) (*Store, error)

func (*Store) Close

func (s *Store) Close() error

func (*Store) Container

func (s *Store) Container(id string) (c *store.Container, err error)

func (*Store) CreateContainer

func (s *Store) CreateContainer(id string, layerId string) (r *store.Container, err error)

func (*Store) CreateImage

func (s *Store) CreateImage(id string, names []string, layerId string, cfg *ispecs.Image) (*store.Image, error)

func (*Store) DeleteImage

func (s *Store) DeleteImage(id string) error

func (*Store) Diff

func (s *Store) Diff(containerId string) (io.ReadCloser, error)

func (*Store) Image

func (s *Store) Image(id string) (r *store.Image, err error)

func (*Store) ImageByName

func (s *Store) ImageByName(name string) (r *store.Image, err error)

func (*Store) ImageConfig

func (s *Store) ImageConfig(imageId string) (r *ispecs.Image, err error)

func (*Store) ImageGC

func (s *Store) ImageGC() error

func (*Store) Images

func (s *Store) Images() (r []*store.Image, err error)

func (*Store) ImportImage

func (s *Store) ImportImage(src string) (img *store.Image, err error)

func (*Store) Mount

func (s *Store) Mount(containerId string) (m *store.ContainerMount, err error)

func (*Store) PutLayer

func (s *Store) PutLayer(parent string, diff archive.Reader) (*store.Layer, error)

func (*Store) Unmount

func (s *Store) Unmount(containerId string) error

Jump to

Keyboard shortcuts

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