Documentation ¶
Index ¶
- Variables
- func CheckSSH(host string, ctx context.Context) (err error)
- func GetAccessToken(ui cli.Ui) (accessToken string, err error)
- func LoadSSHKey(sshKeys []string) (keyPath string, contents []byte, publicKey ssh.PublicKey, err error)
- type Client
- func (do *Client) CreateDomain(name string) (domain *godo.Domain, err error)
- func (do *Client) CreateDomainRecord(domain string, hostName string, ip string) (domainRecord *godo.DomainRecord, err error)
- func (do *Client) CreateDroplet(region string, size string, image string, publicKey ssh.PublicKey, name string, ...) (newDroplet *godo.Droplet, monitorUri string, err error)
- func (do *Client) CreateSSHKey(key string) error
- func (do *Client) DeleteDomainRecord(record godo.DomainRecord, domain string) (err error)
- func (do *Client) GetAvailableRegions() ([]godo.Region, error)
- func (do *Client) GetDroplet(droplet *godo.Droplet) (*godo.Droplet, string, error)
- func (do *Client) GetDropletByIP(ip string) (droplet *godo.Droplet, err error)
- func (do *Client) GetDroplets() (droplets []godo.Droplet, err error)
- func (do *Client) GetHostRecords(hostsMap map[string][]dns.Host) []Host
- func (do *Client) GetSSHKey(publicKey ssh.PublicKey) (*godo.Response, error)
- func (do *Client) GetSizesByRegion(region *godo.Region) ([]godo.Size, error)
- func (do *Client) ListDomainRecords(domain string) (records []godo.DomainRecord, err error)
- type Domain
- type Host
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("Not found")
)
Functions ¶
func GetAccessToken ¶ added in v1.9.0
Types ¶
type Client ¶
func (*Client) CreateDomain ¶ added in v1.9.0
func (*Client) CreateDomainRecord ¶ added in v1.9.0
func (*Client) CreateDroplet ¶
func (*Client) CreateSSHKey ¶
func (*Client) DeleteDomainRecord ¶ added in v1.9.0
func (do *Client) DeleteDomainRecord(record godo.DomainRecord, domain string) (err error)
func (*Client) GetDroplet ¶
func (*Client) GetDropletByIP ¶ added in v1.9.0
func (*Client) GetDroplets ¶ added in v1.9.0
func (*Client) GetHostRecords ¶ added in v1.9.0
func (*Client) GetSizesByRegion ¶
func (*Client) ListDomainRecords ¶ added in v1.9.0
func (do *Client) ListDomainRecords(domain string) (records []godo.DomainRecord, err error)
Click to show internal directories.
Click to hide internal directories.