Documentation ¶
Index ¶
- type DigitalOcean
- func (d *DigitalOcean) CreateServer(args automation.ServerArgs) (*automation.ResourceResults, error)
- func (d *DigitalOcean) DeleteServer(id string, args automation.ServerArgs) error
- func (d *DigitalOcean) GetServer(id string, _ automation.ServerArgs) (*automation.ResourceResults, error)
- func (d *DigitalOcean) ListServer() ([]automation.ResourceResults, error)
- func (d *DigitalOcean) UpdateServer(id string, args automation.ServerArgs) error
- func (d *DigitalOcean) UploadPlugin(id string, args automation.ServerArgs, plugin, destination string) error
- type TokenSource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DigitalOcean ¶
type DigitalOcean struct {
// contains filtered or unexported fields
}
func NewDigitalOcean ¶
func NewDigitalOcean(apiKey string) (*DigitalOcean, error)
func (*DigitalOcean) CreateServer ¶
func (d *DigitalOcean) CreateServer(args automation.ServerArgs) (*automation.ResourceResults, error)
func (*DigitalOcean) DeleteServer ¶
func (d *DigitalOcean) DeleteServer(id string, args automation.ServerArgs) error
func (*DigitalOcean) GetServer ¶
func (d *DigitalOcean) GetServer(id string, _ automation.ServerArgs) (*automation.ResourceResults, error)
func (*DigitalOcean) ListServer ¶
func (d *DigitalOcean) ListServer() ([]automation.ResourceResults, error)
func (*DigitalOcean) UpdateServer ¶
func (d *DigitalOcean) UpdateServer(id string, args automation.ServerArgs) error
func (*DigitalOcean) UploadPlugin ¶
func (d *DigitalOcean) UploadPlugin(id string, args automation.ServerArgs, plugin, destination string) error
type TokenSource ¶
type TokenSource struct {
AccessToken string
}
TokenSource contains an access token
Click to show internal directories.
Click to hide internal directories.