A simple, clean wrapper api for the cloudsigma core project.
cloud, err := cloudsigmalib.NewCloud("zrh")
if err != nil {
log.Fatal(err)
}
resp, err := cloud.GetLocations()
if err != nil {
log.Fatal(err)
}
fmt.Println("Response:", string(resp))
cloud.BasicAuth = &cloudsigmalib.BasicAuth{"my@email", "mypass"}
server := cloud.NewServer()
resp, err = server.Create("Test server 123", 1000, 536870912, "thisispass")
if err != nil {
log.Fatal(err)
}
fmt.Println("Response:", string(resp))
servers := cloud.NewServers()
resp, err = servers.List()
if err != nil {
log.Fatal(err)
}
fmt.Println("Response:", string(resp))
cd examples
go run main.go
- Servers [List, Create, Delete, Start, Stop, Shutdown]
- Drives [List, Create, Delete]
- VLANs
- IPs
- ACLs
- Tags
- Snapshots [List, list single, create, delete]
- Images [Download]
- Current Usage
- Burst Usage
- Daily Burst Usage
- Locations
- Balance
- Transactions
- Subscriptions
- Profile
- Cloud Status
- Capabilities
- Notification Contacts [list, create]
- Notification Preferences
- Keypairs
BSD 3-Clause: LICENSE.txt