2017-02-07 21:33:23 +00:00
|
|
|
package egoscale
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
)
|
|
|
|
|
2018-02-12 17:10:05 +00:00
|
|
|
// Client represents the CloudStack API client
|
2017-02-07 21:33:23 +00:00
|
|
|
type Client struct {
|
|
|
|
client *http.Client
|
|
|
|
endpoint string
|
|
|
|
apiKey string
|
|
|
|
apiSecret string
|
|
|
|
}
|
|
|
|
|
2018-02-12 17:10:05 +00:00
|
|
|
// Topology represents a view of the servers
|
2017-02-07 21:33:23 +00:00
|
|
|
type Topology struct {
|
|
|
|
Zones map[string]string
|
2018-02-12 17:10:05 +00:00
|
|
|
Images map[string]map[int64]string
|
2017-02-07 21:33:23 +00:00
|
|
|
Profiles map[string]string
|
|
|
|
Keypairs []string
|
|
|
|
SecurityGroups map[string]string
|
|
|
|
AffinityGroups map[string]string
|
|
|
|
}
|