image

package
v0.0.0-...-72e9078 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2021 License: MIT Imports: 11 Imported by: 0

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

Jump to

Keyboard shortcuts

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