cachedimages

package
v0.0.0-...-6cf1bc9 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2016 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewListCommand

func NewListCommand() cmd.Command

NewListCommand returns a command for listing chached images.

func NewRemoveCommand

func NewRemoveCommand() cmd.Command

NewRemoveCommand returns a command used to remove cached images.

Types

type CachedImagesCommandBase

type CachedImagesCommandBase struct {
	modelcmd.ModelCommandBase
}

CachedImagesCommandBase is a helper base structure that has a method to get the image manager client.

func (*CachedImagesCommandBase) NewImagesManagerClient

func (c *CachedImagesCommandBase) NewImagesManagerClient() (*imagemanager.Client, error)

NewImagesManagerClient returns a imagemanager client for the root api endpoint that the environment command returns.

type ImageInfo

type ImageInfo struct {
	Kind      string `yaml:"kind" json:"kind"`
	Series    string `yaml:"series" json:"series"`
	Arch      string `yaml:"arch" json:"arch"`
	SourceURL string `yaml:"source-url" json:"source-url"`
	Created   string `yaml:"created" json:"created"`
}

ImageInfo defines the serialization behaviour of image metadata.

type ListImagesAPI

type ListImagesAPI interface {
	ListImages(kind, series, arch string) ([]params.ImageMetadata, error)
	Close() error
}

ListImagesAPI defines the imagemanager API methods that the list command uses.

type RemoveImageAPI

type RemoveImageAPI interface {
	DeleteImage(kind, series, arch string) error
	Close() error
}

RemoveImageAPI defines the imagemanager API methods that the remove command uses.

Jump to

Keyboard shortcuts

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