Documentation
¶
Index ¶
Constants ¶
const DeleteCommandDoc = `` /* 279-byte string literal not displayed */
const ListCommandDoc = `` /* 446-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func NewSuperCommand ¶
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) 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 ¶
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) 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.