Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatTabular ¶
FormatTabular writes a tabular summary of payloads.
Types ¶
type FormattedPayload ¶
type FormattedPayload struct { // These fields are exported for the sake of serialization. Unit string `json:"unit" yaml:"unit"` Machine string `json:"machine" yaml:"machine"` ID string `json:"id" yaml:"id"` Type string `json:"type" yaml:"type"` Class string `json:"payload-class" yaml:"payload-class"` Labels []string `json:"tags,omitempty" yaml:"tags,omitempty"` Status string `json:"status" yaml:"status"` }
FormattedPayload holds the formatted representation of a Payload.
func FormatPayload ¶
func FormatPayload(payload payload.FullPayloadInfo) FormattedPayload
FormatPayload converts the Payload into a FormattedPayload.
type ListAPI ¶
type ListAPI interface { ListFull(patterns ...string) ([]payload.FullPayloadInfo, error) io.Closer }
ListAPI has the API methods needed by ListCommand.
type ListCommand ¶
type ListCommand struct { modelcmd.ModelCommandBase // contains filtered or unexported fields }
ListCommand implements the payloads command.
func NewListCommand ¶
func NewListCommand(newAPIClient func(c *ListCommand) (ListAPI, error)) *ListCommand
NewListCommand returns a new command that lists charm payloads in the current environment.
func (*ListCommand) Info ¶
func (c *ListCommand) Info() *cmd.Info
func (*ListCommand) Init ¶
func (c *ListCommand) Init(args []string) error
func (*ListCommand) SetFlags ¶
func (c *ListCommand) SetFlags(f *gnuflag.FlagSet)
Click to show internal directories.
Click to hide internal directories.