Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfigPath string
View Source
var ErrConfigPathUnknown = errors.New("config file path unknown")
View Source
var Version = "was not built properly"
Version is set via compiler flags (see script/build.bash)
Functions ¶
func MarshalConfig ¶
func NewRootCommand ¶
Types ¶
type CLI ¶
type CLI struct { Token string Endpoint string Context context.Context Config *Config ConfigPath string RootCommand *cobra.Command // contains filtered or unexported fields }
func (*CLI) ActionProgress ¶
func (*CLI) ReadConfig ¶
func (*CLI) WriteConfig ¶
type Config ¶
type Config struct { Endpoint string ActiveContext *ConfigContext Contexts []*ConfigContext }
func UnmarshalConfig ¶
func (*Config) ContextByName ¶
func (config *Config) ContextByName(name string) *ConfigContext
func (*Config) RemoveContext ¶
func (config *Config) RemoveContext(context *ConfigContext)
type ConfigContext ¶
type RawConfig ¶
type RawConfig struct { ActiveContext string `toml:"active_context,omitempty"` Contexts []RawConfigContext `toml:"contexts"` }
type RawConfigContext ¶
Source Files ¶
- cli.go
- completion.go
- config.go
- config_unix.go
- context.go
- context_active.go
- context_create.go
- context_delete.go
- context_list.go
- context_use.go
- datacenter.go
- datacenter_describe.go
- datacenter_list.go
- floatingip.go
- floatingip_add_label.go
- floatingip_assign.go
- floatingip_create.go
- floatingip_delete.go
- floatingip_describe.go
- floatingip_disable_protection.go
- floatingip_enable_protection.go
- floatingip_list.go
- floatingip_remove_label.go
- floatingip_unassign.go
- floatingip_update.go
- image.go
- image_add_label.go
- image_delete.go
- image_describe.go
- image_disable_protection.go
- image_enable_protection.go
- image_list.go
- image_remove_label.go
- image_update.go
- iso.go
- iso_describe.go
- iso_list.go
- location.go
- location_describe.go
- location_list.go
- output.go
- root.go
- server.go
- server_add_label.go
- server_attach_iso.go
- server_change_type.go
- server_create.go
- server_create_image.go
- server_delete.go
- server_describe.go
- server_detach_iso.go
- server_disable_backup.go
- server_disable_protection.go
- server_disable_rescue.go
- server_enable_backup.go
- server_enable_protection.go
- server_enable_rescue.go
- server_list.go
- server_poweroff.go
- server_poweron.go
- server_reboot.go
- server_rebuild.go
- server_remove_label.go
- server_reset.go
- server_reset_password.go
- server_shutdown.go
- server_ssh.go
- server_update.go
- servertypes.go
- servertypes_describe.go
- servertypes_list.go
- sshkey.go
- sshkey_add_label.go
- sshkey_create.go
- sshkey_delete.go
- sshkey_describe.go
- sshkey_list.go
- sshkey_remove_label.go
- util.go
- version.go
Click to show internal directories.
Click to hide internal directories.