cachedimages

package
v0.0.0-...-a002913 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2015 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DeleteCommandDoc = `` /* 279-byte string literal not displayed */
View Source
const ListCommandDoc = `` /* 446-byte string literal not displayed */

Variables

This section is empty.

Functions

func NewSuperCommand

func NewSuperCommand() cmd.Command

NewSuperCommand creates the user supercommand and registers the subcommands that it supports.

Types

type CachedImagesCommandBase

type CachedImagesCommandBase struct {
	envcmd.EnvCommandBase
}

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 DeleteCommand

type DeleteCommand struct {
	CachedImagesCommandBase
	Kind, Series, Arch string
}

DeleteCommand shows the images in the Juju server.

func (*DeleteCommand) Info

func (c *DeleteCommand) Info() *cmd.Info

Info implements Command.Info.

func (*DeleteCommand) Init

func (c *DeleteCommand) Init(args []string) (err error)

Init implements Command.Init.

func (*DeleteCommand) Run

func (c *DeleteCommand) Run(ctx *cmd.Context) (err error)

Run implements Command.Run.

func (*DeleteCommand) SetFlags

func (c *DeleteCommand) SetFlags(f *gnuflag.FlagSet)

SetFlags implements Command.SetFlags.

type DeleteImageAPI

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

DeleteImageAPI defines the imagemanager API methods that the delete command uses.

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 ListCommand

type ListCommand struct {
	CachedImagesCommandBase

	Kind, Series, Arch string
	// contains filtered or unexported fields
}

ListCommand shows the images in the Juju server.

func (*ListCommand) Info

func (c *ListCommand) Info() *cmd.Info

Info implements Command.Info.

func (*ListCommand) Init

func (c *ListCommand) Init(args []string) (err error)

Init implements Command.Init.

func (*ListCommand) Run

func (c *ListCommand) Run(ctx *cmd.Context) (err error)

Run implements Command.Run.

func (*ListCommand) SetFlags

func (c *ListCommand) SetFlags(f *gnuflag.FlagSet)

SetFlags implements Command.SetFlags.

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.

Jump to

Keyboard shortcuts

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