Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
)
Different errors the api may return.
Functions ¶
This section is empty.
Types ¶
type HTTPClient ¶
HTTPClient is the main implementation of the Client interface which communicates with the Atlas API.
func NewClient ¶
func NewClient(baseURL string, groupID string, publicKey string, privateKey string) *HTTPClient
NewClient will create a new HTTPClient with the specified connection details.
func (*HTTPClient) GetProvider ¶
func (c *HTTPClient) GetProvider(name string) (*Provider, error)
GetProvider will find a provider by name using the private API. GET /cloudProviders/{NAME}/options
type InstanceSize ¶
type InstanceSize struct {
Name string `json:"name"`
}
InstanceSize represents an available cluster size.
type Provider ¶
type Provider struct {
Name string `json:"@provider"`
InstanceSizes map[string]InstanceSize
}
Provider represents a single cloud provider to which a cluster can be deployed.
Click to show internal directories.
Click to hide internal directories.