Documentation ¶
Index ¶
- Constants
- Variables
- func BindAllFlags(cmd *cobra.Command)
- func MarkFlagsRequired(cmd *cobra.Command, names ...string)
- func NewRootCommand(cli *CLI) *cobra.Command
- type CLI
- type Config
- func (o *Config) ContextByName(name string) *Context
- func (o Config) JSON(w io.Writer) error
- func (o Config) JSONPath(w io.Writer, template string) error
- func (o Config) PP(w io.Writer) error
- func (o *Config) RemoveContext(context *Context)
- func (o Config) TableData(w io.Writer) error
- func (o Config) Text(w io.Writer) error
- func (o Config) YAML(w io.Writer) error
- type Context
Constants ¶
View Source
const (
PollIntervalinSeconds = 2
)
PollIntervalinSeconds ..
Variables ¶
View Source
var DefaultConfigPath string
View Source
var Version = "DEV"
Functions ¶
func MarkFlagsRequired ¶
MarkFlagsRequired ...
Types ¶
type CLI ¶
type CLI struct { Endpoint string Context context.Context RootCommand *cobra.Command Plugin bool // contains filtered or unexported fields }
CLI ...
type Config ¶ added in v0.0.20
type Config struct { Insecure bool `mapstructure:"insecure"` Contexts []*Context `mapstructure:"contexts"` ActiveContext string `mapstructure:"active_context"` }
func (*Config) ContextByName ¶ added in v0.0.20
func (*Config) RemoveContext ¶ added in v0.0.20
Source Files ¶
- availability_zone.go
- availability_zone_list.go
- category.go
- category_create.go
- category_delete.go
- category_describe.go
- category_list.go
- cli.go
- cluster.go
- cluster_describe.go
- cluster_list.go
- completion.go
- config.go
- context.go
- context_active.go
- context_create.go
- context_delete.go
- context_list.go
- context_use.go
- doc.go
- floating_ip.go
- floating_ip_assign.go
- floating_ip_create.go
- floating_ip_delete.go
- floating_ip_describe.go
- floating_ip_list.go
- floating_ip_release.go
- floating_ip_update.go
- host.go
- host_describe.go
- host_list.go
- image.go
- image_create.go
- image_delete.go
- image_describe.go
- image_list.go
- image_update.go
- project.go
- project_create.go
- project_delete.go
- project_describe.go
- project_list.go
- project_update.go
- root.go
- routing_policy.go
- routing_policy_create.go
- routing_policy_delete.go
- routing_policy_describe.go
- routing_policy_list.go
- subnet.go
- subnet_create.go
- subnet_delete.go
- subnet_describe.go
- subnet_list.go
- subnet_update.go
- task.go
- task_delete.go
- task_describe.go
- task_list.go
- util.go
- version.go
- vm.go
- vm_create.go
- vm_delete.go
- vm_describe.go
- vm_list.go
- vm_powerstate.go
- vm_recovery_point_create.go
- vm_recovery_point_delete.go
- vm_recovery_point_list.go
- vm_snapshot_create.go
- vm_snapshot_delete.go
- vm_snapshot_describe.go
- vm_snapshot_list.go
- vm_snapshot_restore.go
- vm_update.go
- vpc.go
- vpc_create.go
- vpc_delete.go
- vpc_describe.go
- vpc_list.go
- vpc_update.go
Click to show internal directories.
Click to hide internal directories.