Documentation ¶
Index ¶
- Variables
- type Adapter
- type ClusterInfo
- type CreateClusterOptions
- type CreateClusterOut
- type CreateVMOptions
- type DOAdapter
- func (d *DOAdapter) CreateCluster(cfg config.Config, opts CreateClusterOptions) (CreateClusterOut, error)
- func (d *DOAdapter) CreateVM(cfg config.Config, opts CreateVMOptions) (VM, error)
- func (d *DOAdapter) DestroyCluster(cfg config.Config) error
- func (d *DOAdapter) DestroyVM(opts DestroyVMOptions) error
- func (d *DOAdapter) GetClusterInfo(cfg config.Config) (ClusterInfo, error)
- func (d *DOAdapter) ListVMs(opts ListVMsOptions) ([]VM, error)
- func (d *DOAdapter) Name() string
- type DOCluster
- type DestroyVMOptions
- type ListVMsOptions
- type LoadBalancer
- type TokenSource
- type VM
Constants ¶
This section is empty.
Variables ¶
View Source
var NotFound = fmt.Errorf("not found")
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter interface { Name() string CreateCluster(cfg config.Config, opts CreateClusterOptions) (CreateClusterOut, error) DestroyCluster(cfg config.Config) error GetClusterInfo(cfg config.Config) (ClusterInfo, error) CreateVM(cfg config.Config, opts CreateVMOptions) (VM, error) DestroyVM(opts DestroyVMOptions) error ListVMs(opts ListVMsOptions) ([]VM, error) }
type ClusterInfo ¶
type ClusterInfo struct { ClusterName string LoadBalancer *LoadBalancer VMs []VM Meta map[string]string }
type CreateClusterOptions ¶
type CreateClusterOut ¶
func CreateCluster ¶
func CreateCluster(cfg config.Config, opts CreateClusterOptions, adapter Adapter) (CreateClusterOut, error)
type CreateVMOptions ¶
type DOAdapter ¶
type DOAdapter struct {
// contains filtered or unexported fields
}
func (*DOAdapter) CreateCluster ¶
func (d *DOAdapter) CreateCluster(cfg config.Config, opts CreateClusterOptions) (CreateClusterOut, error)
func (*DOAdapter) DestroyVM ¶
func (d *DOAdapter) DestroyVM(opts DestroyVMOptions) error
func (*DOAdapter) GetClusterInfo ¶
func (d *DOAdapter) GetClusterInfo(cfg config.Config) (ClusterInfo, error)
type DOCluster ¶
type DOCluster struct { ClusterName string LoadBalancer *godo.LoadBalancer Droplets []*godo.Droplet }
func (*DOCluster) ToClusterInfo ¶
func (c *DOCluster) ToClusterInfo() ClusterInfo
type DestroyVMOptions ¶
type DestroyVMOptions struct {
Ids []string
}
type ListVMsOptions ¶
type ListVMsOptions struct {
ClusterName string
}
type LoadBalancer ¶
type TokenSource ¶
type TokenSource struct {
AccessToken string
}
Click to show internal directories.
Click to hide internal directories.