Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewListCommand ¶
NewListCommand returns a command for listing chached images.
func NewRemoveCommand ¶
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 ¶
RemoveImageAPI defines the imagemanager API methods that the remove command uses.
Click to show internal directories.
Click to hide internal directories.