Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateInstanceRequest ¶
type CreateInstanceRequest struct { Provider string `json:"provider"` Image string `json:"image"` InstanceType string `json:"instance_type"` PublicSSHKey string `json:"public_ssh_key"` }
CreateInstanceRequest contains the data in the request body for a create instance request.
type ErrorResponse ¶
type ErrorResponse struct {
Errors []string `json:"errors"`
}
An ErrorResponse is returned by the HTTP API when an error occurs.
type InstanceResponse ¶
type InstanceResponse struct { ID string `json:"id"` ProviderName string `json:"provider"` Image string `json:"image"` IPAddress *string `json:"ip_address"` UpstreamID *string `json:"upstream_id"` ErrorReason *string `json:"error_reason"` State string `json:"state"` }
An InstanceResponse is returned by the HTTP API that contains information about an instance.
Click to show internal directories.
Click to hide internal directories.