Documentation ¶
Index ¶
- Variables
- func AccountCreate(name string) (json *gabs.Container, err error)
- func AccountDelete(name string) (json *gabs.Container, err error)
- func AccountFindByAPIKey(apikey string) string
- func AccountFindByName(name string) string
- func AccountReset(name string) (json *gabs.Container, err error)
- func AccountsList() (json *gabs.Container, err error)
- func DnsDomainCreate(name string) (json *gabs.Container, err error)
- func DnsDomainDestroy(id string) (json *gabs.Container, err error)
- func DnsDomainFind(search string) string
- func DnsDomainsList() (json *gabs.Container, err error)
- func DnsRecordCreate(id string, params DnsRecordParams) (json *gabs.Container, err error)
- func DnsRecordDelete(id, recordID string) (json *gabs.Container, err error)
- func DnsRecords(id string) (json *gabs.Container, err error)
- func FirewallCreate(name string) (json *gabs.Container, err error)
- func FirewallDestroy(id string) (json *gabs.Container, err error)
- func FirewallRuleCreate(name string, params FirewallRuleParams) (json *gabs.Container, err error)
- func FirewallRuleDelete(name, id string) (json *gabs.Container, err error)
- func FirewallRules(name string) (json *gabs.Container, err error)
- func FirewallsList() (json *gabs.Container, err error)
- 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 InstanceFirewall(id, firewall string) (json *gabs.Container, err error)
- func InstanceReboot(id string, hard bool) (json *gabs.Container, err error)
- func InstanceRebuild(id string) (json *gabs.Container, err error)
- func InstanceRestore(id, snapshot string) (json *gabs.Container, err error)
- func InstanceSuggestHostname() string
- func InstanceTags(id, tags string) (json *gabs.Container, err error)
- func InstanceUpgrade(id, size string) (json *gabs.Container, err error)
- func InstancesList(tags string) (json *gabs.Container, err error)
- func LatestRelease() (string, error)
- func NetworkCreate(name, label, region string) (json *gabs.Container, err error)
- func NetworkDestroy(id string) (json *gabs.Container, err error)
- func NetworkFind(search string) string
- func NetworksList() (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 SnapshotCreate(name, instance_id string, safe bool) (json *gabs.Container, err error)
- func SnapshotDestroy(id string) (json *gabs.Container, err error)
- func SnapshotFind(search string) string
- func SnapshotsList() (json *gabs.Container, err error)
- func SshKeyCreate(params SshKeyParams) (json *gabs.Container, err error)
- func SshKeyDelete(name string) (json *gabs.Container, err error)
- func SshKeyFind(search string) string
- func SshKeysList() (json *gabs.Container, err error)
- func TemplateCreate(params TemplateParams) (json *gabs.Container, err error)
- func TemplateDestroy(id string) (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)
- func Version() float64
- type DnsRecordParams
- type FirewallRuleParams
- 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 CurrentAPIKey string
View Source
var NOUNS = []string{}/* 106 elements not displayed */
Functions ¶
func AccountFindByAPIKey ¶ added in v0.10.5
func AccountFindByName ¶ added in v0.10.1
func AccountsList ¶
func DnsDomainCreate ¶ added in v0.11.0
func DnsDomainDestroy ¶ added in v0.11.0
func DnsDomainFind ¶ added in v0.11.0
func DnsDomainsList ¶ added in v0.11.0
func DnsRecordCreate ¶ added in v0.11.0
func DnsRecordCreate(id string, params DnsRecordParams) (json *gabs.Container, err error)
func DnsRecordDelete ¶ added in v0.11.0
func FirewallCreate ¶ added in v0.9.17
func FirewallDestroy ¶ added in v0.9.17
func FirewallRuleCreate ¶ added in v0.9.17
func FirewallRuleCreate(name string, params FirewallRuleParams) (json *gabs.Container, err error)
func FirewallRuleDelete ¶ added in v0.9.17
func FirewallRules ¶ added in v0.9.17
func FirewallsList ¶ added in v0.9.17
func InstanceCreate ¶
func InstanceCreate(params InstanceParams) (json *gabs.Container, err error)
func InstanceFind ¶
func InstanceFirewall ¶ added in v0.9.17
func InstanceRebuild ¶ added in v0.9.28
func InstanceRestore ¶ added in v0.9.16
func InstanceSuggestHostname ¶
func InstanceSuggestHostname() string
func InstanceTags ¶ added in v0.9.25
func LatestRelease ¶ added in v0.9.26
func NetworkCreate ¶ added in v0.10.1
func NetworkDestroy ¶ added in v0.10.1
func NetworkFind ¶ added in v0.10.1
func NetworksList ¶ added in v0.10.1
func RegionsList ¶
func SnapshotCreate ¶ added in v0.9.12
func SnapshotDestroy ¶ added in v0.9.12
func SnapshotFind ¶ added in v0.9.12
func SnapshotsList ¶ added in v0.9.12
func SshKeyCreate ¶ added in v0.9.4
func SshKeyCreate(params SshKeyParams) (json *gabs.Container, err error)
func SshKeyDelete ¶ added in v0.9.4
func SshKeyFind ¶ added in v0.10.7
func SshKeysList ¶ added in v0.9.4
func TemplateCreate ¶
func TemplateCreate(params TemplateParams) (json *gabs.Container, err error)
func TemplateDestroy ¶ added in v0.9.24
func TemplateUpdate ¶
func TemplateUpdate(params TemplateParams) (json *gabs.Container, err error)
func TemplatesList ¶
Types ¶
type DnsRecordParams ¶ added in v0.11.0
type FirewallRuleParams ¶ added in v0.9.17
type HTTPMethod ¶
type HTTPMethod int
const ( HTTPGet HTTPMethod = iota HTTPPost HTTPPut HTTPDelete )
type InstanceParams ¶
type InstanceParams struct { Name string `url:"hostname"` Size string `url:"size"` Region string `url:"region"` SSHKeyID string `url:"ssh_key_id"` Template string `url:"template"` InitialUser string `url:"initial_user"` NetworkID string `url:"network_id"` FirewallID string `url:"firewall_id"` Tags string `url:"tags"` PublicIP bool `url:"public_ip"` }
type QuotaParams ¶
type QuotaParams struct { AccountID 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.