image

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// UnikernelImagePrefix is the prefix of unikernel runtime image name.
	UnikernelImagePrefix = "unikernel/"
	// DefaultImageSuffix is the default image tag kubelet try to add to image.
	DefaultImageSuffix = ":latest"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageManager

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

func NewImageManager

func NewImageManager(downloadProtocol, unikernelRoot string) (*ImageManager, error)

func (*ImageManager) CleanupImageCopy

func (im *ImageManager) CleanupImageCopy(imageName, sandboxID string) error

CleanupImageCopy cleanups image copy or other files prepared for container when create container.

func (*ImageManager) GetFsUsage

func (im *ImageManager) GetFsUsage(imageID string) ([]*kubeapi.FilesystemUsage, error)

GetFsUsage get image filesystem usage, including all copies of this image. TODO(Crazykev): Implement it. FIXME(Crazykev): Need to figure out is one image should only have one FilesystemUsage?

func (*ImageManager) GetImageInfo

func (im *ImageManager) GetImageInfo(imageName string) (*metaimage.Image, error)

GetImageInfo gets image metadata for image ID

func (*ImageManager) ListImages

func (im *ImageManager) ListImages() []metaimage.Image

ListImages lists all images stores in ImageManager

func (*ImageManager) PrepareImage

func (im *ImageManager) PrepareImage(imageName, sandboxID string) (s *metaimage.Storage, err error)

PrepareImage prepares image for container or VM and returns a location descriptor for image.

func (*ImageManager) PullImage

func (im *ImageManager) PullImage(imageName string) (imageRef string, err error)

PullImage download image from internet

func (*ImageManager) RemoveImage

func (im *ImageManager) RemoveImage(imageName string) error

RemoveImage removes image by imageName If image is referenced by other containers, returns error

type ImageManifest

type ImageManifest struct {
	UnikernelType string
	Format        string
	ImageFile     string
	Kernel        string
	Initrd        string
	Cmdline       string
}

Jump to

Keyboard shortcuts

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