Documentation ¶
Index ¶
- func AddRecord(pat, domain, ip, name string)
- func CreateDroplet(pat, dropletName, size, key string)
- func CreateKey(name, pubKey string)
- func DeleteKey(id int)
- func GetClient(pat string) (*godo.Client, context.Context)
- func ListDomainRecords(pat, domain string) []string
- func ListDroplets(pat string, ip2wolf map[string]string)
- func ListImages(page int)
- func ListKeyFingerprints() []string
- func ListKeys() []int
- func ListProducerIps(pat string) []string
- func ListSizes()
- func RemoveDroplet(pat string, id int)
- type CreateKeyThing
- type DomainRecord
- type DomainRecordsThing
- type DropletSize
- type DropletSizes
- type Image
- type Images
- type Key
- type Keys
- type RecordThing
- type TokenSource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDroplet ¶
func CreateDroplet(pat, dropletName, size, key string)
func ListDomainRecords ¶
func ListDroplets ¶
func ListImages ¶
func ListImages(page int)
func ListKeyFingerprints ¶
func ListKeyFingerprints() []string
func ListProducerIps ¶
func RemoveDroplet ¶
Types ¶
type CreateKeyThing ¶
type DomainRecord ¶
/v2/domains/$DOMAIN_NAME/records
type DomainRecordsThing ¶
type DomainRecordsThing struct {
DomainRecords []DomainRecord `json:"domain_records"`
}
type DropletSize ¶
type DropletSizes ¶
type DropletSizes struct {
Sizes []DropletSize
}
type RecordThing ¶
type TokenSource ¶
type TokenSource struct {
AccessToken string
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.