Documentation
¶
Index ¶
- Constants
- func AddTenant(tenant Tenant, path string) error
- func AsMap(labels []Label) map[string]string
- func CreateInstance(ctx context.Context, params NewInstanceParams) error
- func DeprotectInstances(ctx context.Context, by string) error
- func DestroyInstances(ctx context.Context, by string) error
- func EmbiggenDisk(ctx context.Context, by string, gb int64) error
- func FormatInstance(instance v3.Instance) string
- func GetInstanceTypeBySize(ctx context.Context, size string) (*v3.InstanceType, error)
- func GetSSHKeyByName(ctx context.Context, name string) (*v3.SSHKey, error)
- func GetTemplateByName(ctx context.Context, name string) (*v3.Template, error)
- func LabelInstances(ctx context.Context, label, value, by string) error
- func ListImages(ctx context.Context, contains string) ([]string, error)
- func ListInstanceTypes(ctx context.Context, family string) ([]v3.InstanceType, error)
- func ListInstances(ctx context.Context, by string) ([]v3.Instance, error)
- func ProbeInstances(ctx context.Context, by, suffix string, secure bool) error
- func ProtectInstances(ctx context.Context, by string) error
- func RemoveTenant(name, path string) error
- func ScaleInstances(ctx context.Context, by string, size string) error
- func SetDefaultTenant(name, path string) error
- func StartInstances(ctx context.Context, by string) error
- func StopInstances(ctx context.Context, by string) error
- type Label
- type NewInstanceParams
- type Tenant
- type TenantFile
Constants ¶
View Source
const ConfigFilePerm = 0600
Variables ¶
This section is empty.
Functions ¶
func CreateInstance ¶
func CreateInstance(ctx context.Context, params NewInstanceParams) error
func FormatInstance ¶
func GetInstanceTypeBySize ¶
func GetTemplateByName ¶
func ListInstanceTypes ¶
func ProbeInstances ¶
func RemoveTenant ¶
func SetDefaultTenant ¶
Types ¶
type Label ¶
func ParseLabels ¶
type NewInstanceParams ¶
type Tenant ¶
type Tenant struct {
Name string `json:"name"`
Key string `json:"key"`
Secret string `json:"secret"`
Zone string `json:"zone"`
}
func GetDefaultTenant ¶
func (Tenant) IsNonEmpty ¶
type TenantFile ¶
type TenantFile struct {
Default string `json:"default"`
Tenants map[string]Tenant `json:"tenants"`
}
func ReadTenants ¶
func ReadTenants(path string) (*TenantFile, error)
Click to show internal directories.
Click to hide internal directories.