cli

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2018 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TorcxImageListV0K is the JSON kind identifier for an image list
	TorcxImageListV0K = "torcx-image-list-v0"
)
View Source
const (
	// TorcxProfileListV0K is the JSON kind identifier for a profile list
	TorcxProfileListV0K = "torcx-profile-list-v0"
)

Variables

View Source
var (
	// TorcxGenCmd is the top-level cobra command for `torcx-generator`
	TorcxGenCmd = &cobra.Command{
		Use:          "torcx-generator",
		RunE:         runGenerator,
		SilenceUsage: true,
	}
)

Functions

func Init

func Init() error

Init initializes the CLI environment for torcx

Types

type GlobalCfg

type GlobalCfg struct {
}

GlobalCfg is for global CLI state

var (
	// TorcxCmd is the top-level cobra command for `torcx`
	TorcxCmd = &cobra.Command{
		Use:           "torcx",
		SilenceUsage:  true,
		SilenceErrors: true,
	}

	// TorcxCliCfg holds global CLI status available to all subcommands
	TorcxCliCfg GlobalCfg
)

type ImageEntry

type ImageEntry struct {
	Name      string `json:"name"`
	Reference string `json:"reference"`
	Filepath  string `json:"filepath"`
}

ImageEntry represents an entry in an image list

type ImageList

type ImageList struct {
	Kind  string       `json:"kind"`
	Value []ImageEntry `json:"value"`
}

ImageList is the JSON container for profile list output

type ProfileList

type ProfileList struct {
	Kind  string      `json:"kind"`
	Value profileList `json:"value"`
}

ProfileList is the JSON container for profile list output

Jump to

Keyboard shortcuts

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