Documentation
¶
Index ¶
- func Help(command, name string) string
- func HelpFunc(commands map[string]cli.CommandFactory) string
- func NewCopy(config *Config) cli.CommandFactory
- func NewDelete(config *Config) cli.CommandFactory
- func NewList(config *Config) cli.CommandFactory
- func NewModify(config *Config) cli.CommandFactory
- func NewVersion(version string) cli.CommandFactory
- func Provider(name string, args []string) (interface{}, []string, error)
- type Config
- type Copier
- type Copy
- type Delete
- type Deleter
- type Helper
- type List
- type Lister
- type Modifier
- type Modify
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HelpFunc ¶
func HelpFunc(commands map[string]cli.CommandFactory) string
Help is a custom help func for the cli. It's the same as cli.BasicHelpFunc but contains our global configuration
func NewCopy ¶
func NewCopy(config *Config) cli.CommandFactory
func NewDelete ¶
func NewDelete(config *Config) cli.CommandFactory
func NewList ¶
func NewList(config *Config) cli.CommandFactory
func NewModify ¶
func NewModify(config *Config) cli.CommandFactory
func NewVersion ¶
func NewVersion(version string) cli.CommandFactory
Types ¶
type Config ¶
type Config struct {
// Providers define the providers to be used with images. Example: ["aws",
// "do"]. The special ["all"] name matches all providers.
Providers []string `toml:"providers" json:"providers"`
// NoColor disables color output
NoColor bool `toml:"no_color" json:"no_color"`
// Force disables asking for user input for certain actions, such as
// "delete"
Force bool `toml:"force" json:"force"`
Ui cli.Ui `toml:"-" json:"-"`
}
Config defines the global flag set of images
Source Files
¶
Click to show internal directories.
Click to hide internal directories.