Documentation ¶
Index ¶
- Variables
- func AccountCreate(name string) (json *gabs.Container, err error)
- func AccountDelete(name string) (json *gabs.Container, err error)
- func AccountFindByToken(token string) string
- func AccountReset(name string) (json *gabs.Container, err error)
- func AccountsList() (json *gabs.Container, err error)
- func Connect(token string)
- func IPConnect(instanceID, publicIP, privateIP string) (json *gabs.Container, err error)
- func IPCreate(instanceID string, public bool) (json *gabs.Container, err error)
- func IPDelete(instanceID, ip string) (json *gabs.Container, err error)
- func InstanceCreate(params InstanceParams) (json *gabs.Container, err error)
- func InstanceDestroy(id string) (json *gabs.Container, err error)
- func InstanceFind(search string) string
- func InstanceReboot(id string, hard bool) (json *gabs.Container, err error)
- func InstanceSuggestHostname() string
- func InstanceUpgrade(id, size string) (json *gabs.Container, err error)
- func InstancesList() (json *gabs.Container, err error)
- func QuotaGet(account string) (json *gabs.Container, err error)
- func QuotaSet(params QuotaParams) (json *gabs.Container, err error)
- func RegionsList() (json *gabs.Container, err error)
- func SizesList() (json *gabs.Container, err error)
- func SshKeyCreate(params SshKeyParams) (json *gabs.Container, err error)
- func SshKeyDelete(name string) (json *gabs.Container, err error)
- func SshKeysList() (json *gabs.Container, err error)
- func TemplateCreate(params TemplateParams) (json *gabs.Container, err error)
- func TemplateFind(id string) (json *gabs.Container, err error)
- func TemplateUpdate(params TemplateParams) (json *gabs.Container, err error)
- func TemplatesList() (json *gabs.Container, err error)
- type HTTPError
- type HTTPMethod
- type InstanceParams
- type QuotaParams
- type SshKeyParams
- type TemplateParams
Constants ¶
This section is empty.
Variables ¶
View Source
var ADJECTIVES = []string{
"autumn", "hidden", "bitter", "misty", "silent", "empty", "dry", "dark",
"summer", "icy", "delicate", "quiet", "white", "cool", "spring", "winter",
"patient", "twilight", "dawn", "crimson", "wispy", "weathered", "blue",
"billowing", "broken", "cold", "damp", "falling", "frosty", "green",
"long", "late", "lingering", "bold", "little", "morning", "muddy", "old",
"red", "rough", "still", "small", "sparkling", "throbbing", "shy",
"wandering", "withered", "wild", "black", "young", "holy", "solitary",
"fragrant", "aged", "snowy", "proud", "floral", "restless", "divine",
"polished", "ancient", "purple", "lively", "nameless", "lucky", "odd", "tiny",
"free", "dry", "yellow", "orange", "gentle", "tight", "super", "royal", "broad",
"steep", "flat", "square", "round", "mute", "noisy", "hushy", "raspy", "soft",
"shrill", "rapid", "sweet", "curly", "calm", "jolly", "fancy", "plain", "shinny",
}
View Source
var CurrentToken string
View Source
var NOUNS = []string{}/* 106 elements not displayed */
Functions ¶
func AccountFindByToken ¶
func AccountsList ¶
func InstanceCreate ¶
func InstanceCreate(params InstanceParams) (json *gabs.Container, err error)
func InstanceFind ¶
func InstanceSuggestHostname ¶
func InstanceSuggestHostname() string
func InstancesList ¶
func RegionsList ¶
func SshKeyCreate ¶ added in v0.9.4
func SshKeyCreate(params SshKeyParams) (json *gabs.Container, err error)
func SshKeyDelete ¶ added in v0.9.4
func SshKeysList ¶ added in v0.9.4
func TemplateCreate ¶
func TemplateCreate(params TemplateParams) (json *gabs.Container, err error)
func TemplateUpdate ¶
func TemplateUpdate(params TemplateParams) (json *gabs.Container, err error)
func TemplatesList ¶
Types ¶
type HTTPMethod ¶
type HTTPMethod int
const ( HTTPGet HTTPMethod = iota HTTPPost HTTPPut HTTPDelete )
type InstanceParams ¶
type QuotaParams ¶
type QuotaParams struct { Account string `url:"-"` InstanceCount string `url:"instance_count_limit"` CpuCore string `url:"cpu_core_limit"` RamMB string `url:"ram_mb_limit"` DiskGB string `url:"disk_gb_limit"` DiskVolumeCount string `url:"disk_volume_count_limit"` DiskSnapshotCount string `url:"disk_snapshot_count_limit"` PublicIPAddress string `url:"public_ip_address_limit"` SubnetCount string `url:"subnet_count_limit"` NetworkCount string `url:"network_count_limit"` SecurityGroup string `url:"security_group_limit"` SecurityGroupRule string `url:"security_group_rule_limit"` PortCount string `url:"port_count_limit"` }
type SshKeyParams ¶ added in v0.9.4
Click to show internal directories.
Click to hide internal directories.