Documentation
¶
Index ¶
- func CmdImages(c *cli.Context)
- func CmdKill(c *cli.Context)
- func CmdLetgo(_ *cli.Context)
- func CmdListDroplets(_ *cli.Context)
- func CmdListKeys(c *cli.Context)
- func CmdListSnapshots(_ *cli.Context)
- func CmdUp(c *cli.Context)
- type ActionResponse
- type Droplet
- type DropletCommand
- type DropletsList
- type DropletsResponse
- type Image
- type ImageList
- type Key
- type KeysList
- type NamedDropletCommand
- type Network
- type Snapshot
- type SnapshotList
- type StartDroplet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CmdListDroplets ¶
func CmdListKeys ¶
func CmdListSnapshots ¶
Types ¶
type ActionResponse ¶
type ActionResponse struct {
Action struct {
Id int `json:"id"`
Status string `json:"status"`
Type string `json:"type"`
StartedAt string `json:"started_at"`
CompletedAt string `json:"completed_at"`
ResourceId int `json:"resource_id"`
ResourceType string `json:"resource_type"`
} `json:"action"`
}
func (ActionResponse) String ¶
func (ar ActionResponse) String() string
type Droplet ¶
type Droplet struct {
Id int `json:"id"`
Name string `json:"name"`
Memory int `json:"memory"`
Vcpus int `json:"vcpus"`
Locked bool `json:"locked"`
Status string `json:"status"`
Kernel struct {
Id int `json:"id"`
Name string `json:"name"`
Version string `json:"version"`
} `json:"kernel"`
CreatedAt string `json:"created_at"`
Backup_ids []int `json:"backup_ids"`
Snapshot_ids []int `json:"snapshot_ids"`
Image struct {
Id int `json:"id"`
Name string `json:"name"`
Distribution string `json:"distribution"`
Slug string `json:"slug"`
Public bool `json:"public"`
Regions []string `json:"regions"`
Created_at string `json:"created_at"`
Min_disk_size int `json:"min_disk_size"`
Itype string `json:"type"`
Size_gigabytes float32 `json:"size_gigabytes"`
} `json:"image"`
Networks struct {
V4 []Network `json:"v4"`
V6 []Network `json:"v6"`
} `json:"networks"`
Features []string `json:"features"`
}
type DropletCommand ¶
type DropletCommand struct {
Type string `json:"type"`
}
type DropletsList ¶
type DropletsList struct {
Droplets []Droplet `json:"droplets"`
}
type DropletsResponse ¶
type DropletsResponse struct {
Droplet Droplet `json:"droplet"`
}
type Image ¶
type Image struct {
Id int `json:"id"`
Name string `json:"name"`
Memory int `json:"memory"`
Vcpus int `json:"vcpus"`
Locked bool `json:"locked"`
Status string `json:"status"`
Kernel struct {
Id int `json:"id"`
Name string `json:"name"`
Version string `json:"version"`
} `json:"kernel"`
Backup_ids []int `json:"backup_ids"`
Snapshot_ids []int `json:"snapshot_ids"`
Image struct {
Id int `json:"id"`
Name string `json:"name"`
Distribution string `json:"distribution"`
Slug string `json:"slug"`
Public bool `json:"public"`
Regions []string `json:"regions"`
Created_at string `json:"created_at"`
Min_disk_size int `json:"min_disk_size"`
Itype string `json:"type"`
Size_gigabytes float32 `json:"size_gigabytes"`
} `json:"image"`
// contains filtered or unexported fields
}
type ImageList ¶
type ImageList struct {
Images []Image `json:"droplets"`
}
func QueryImages ¶
func QueryImages() ImageList
type Key ¶
type NamedDropletCommand ¶
type Snapshot ¶
type Snapshot struct {
Id string `json:"id"`
Name string `json:"name"`
Regions []string `json:"regions"`
CreatedAt time.Time `json:"created_at"`
ResourceId string `json:"resource_id"`
ResourceType string `json:"resource_type"`
MinDISKSize int `json:"min_disk_size"`
SizeGigabytes float32 `json:"size_gigabytes"`
}
type SnapshotList ¶
type SnapshotList struct {
Snapshots []Snapshot `json:"snapshots"`
}
type StartDroplet ¶
type StartDroplet struct {
Name string `json:"name"`
Region string `json:"region"`
Size string `json:"size"`
Image string `json:"image"`
SshKeys *[]int `json:"ssh_keys"`
Backups bool `json:"backups"`
Ipv6 bool `json:"ipv6"`
UserData *string `json:"user_data"`
PrivateNetworking bool `json:"private_networking"`
Volumes *[]string `json:"volumes"`
Tags *[]string `json:"tags"`
}
func (StartDroplet) String ¶
func (sd StartDroplet) String() string
Click to show internal directories.
Click to hide internal directories.