status

package
v0.0.0-...-8ff1004 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2019 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatTabular

func FormatTabular(writer io.Writer, value interface{}) error

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) Run

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

func (*ListCommand) SetFlags

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

Jump to

Keyboard shortcuts

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