Documentation

Index

Constants

View Source
const (
	RepoFile  = "/var/lib/box/images/repositories.json"
	ImagesDir = "/var/lib/box/images"
	LayersDir = "/var/lib/box/images/layers"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Image

type Image struct {
	v1.Image
	ID         string
	Registry   string
	Repository string
	Name       string
	Tag        string
}

func GetAll

func GetAll() ([]*Image, error)

func NewImage

func NewImage(src string) (*Image, error)

    NewImage returns a new Image.

    It pulls image ans sets the Registry, Repository, Name, and Tag.

    func (*Image) Download

    func (i *Image) Download() error

      Download downloads image's layers.

      func (*Image) Exists

      func (i *Image) Exists() (bool, error)

        Exists checks for image existence in local storage.

        func (*Image) Load

        func (i *Image) Load() error

        func (*Image) Remove

        func (i *Image) Remove() error

          Remove removes and image and its layers.

          type Repositories

          type Repositories map[string]Repository

          type Repository

          type Repository map[string]string