state

package
v1.16.106 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PrettyFormat string = "pretty"
	JSONFormat   string = "json"
)

Variables

This section is empty.

Functions

func GetSupportedFormats

func GetSupportedFormats() []string

GetSupportedFormats returns supported formats

func New

func New(ui cli.Ui) *cmd

Types

type Formatter

type Formatter interface {
	FormatState(state *api.AutopilotState) (string, error)
}

Formatter defines methods provided by an autopilot state output formatter

func NewFormatter

func NewFormatter(format string) (formatter Formatter, err error)

NewFormatter returns Formatter implementation

Jump to

Keyboard shortcuts

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