image

package
v0.0.0-...-28e6f37 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2019 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 Image

type Image struct {
	Id         string
	LayerId    string
	CreateTime time.Time
	Size       int64
}

type ImageRunArgs

type ImageRunArgs struct {
	ImageId      string
	ContainerId  string
	Args         []string
	Env          []string
	Cwd          string
	Hostname     string
	Cpushare     uint64
	Memory       int64
	Annotations  map[string]string
	Network      string
	PortMappings []string
	Detach       bool
	Volumes      []string
	Links        []string
}

type ImageService

type ImageService interface {
	Create(id string, tarPath string) error
	Delete(id string) error
	List() ([]Image, error)
	Get(id string) (Image, error)
	Run(imageRunArgs *ImageRunArgs) error
	Destroy(container libcapsule.Container) error
}

func NewImageService

func NewImageService(runtimeRoot string) (ImageService, error)

Jump to

Keyboard shortcuts

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