Documentation ¶
Index ¶
- Variables
- type BillingDetails
- type Client
- func (client *Client) DeleteServer(server string) (*Response, error)
- func (client *Client) DeployServer(req DeployServerRequest) (*DeployServerResponse, error)
- func (client *Client) GetBillingDetails() (*GetBillingDetailsResponse, error)
- func (client *Client) GetServer(server string) (*GetServerResponse, error)
- func (client *Client) GetServerStatus(server string) (*GetServerStatusResponse, error)
- func (client *Client) ListCpuStock() (*ListCpuStockResponse, error)
- func (client *Client) ListGpuStock() (*ListGpuStockResponse, error)
- func (client *Client) ListServers() (*ListServersResponse, error)
- func (client *Client) ModifyServer(req ModifyServerRequest) (*Response, error)
- func (client *Client) RestartServer(server string) (*Response, error)
- func (client *Client) StartServer(server string) (*Response, error)
- func (client *Client) StopServer(server string) (*Response, error)
- type DeployServerRequest
- type DeployServerResponse
- type GetBillingDetailsResponse
- type GetServerResponse
- type GetServerStatusResponse
- type ListCpuStockResponse
- type ListGpuStockResponse
- type ListServersResponse
- type ModifyServerRequest
- type Response
- type Server
Constants ¶
This section is empty.
Variables ¶
View Source
var CLIENT_VERSION = "0.7.1"
Functions ¶
This section is empty.
Types ¶
type BillingDetails ¶
type Client ¶
func (*Client) DeleteServer ¶ added in v0.2.0
func (*Client) DeployServer ¶ added in v0.2.0
func (client *Client) DeployServer(req DeployServerRequest) (*DeployServerResponse, error)
func (*Client) GetBillingDetails ¶
func (client *Client) GetBillingDetails() (*GetBillingDetailsResponse, error)
func (*Client) GetServer ¶
func (client *Client) GetServer(server string) (*GetServerResponse, error)
func (*Client) GetServerStatus ¶ added in v0.7.0
func (client *Client) GetServerStatus(server string) (*GetServerStatusResponse, error)
func (*Client) ListCpuStock ¶ added in v0.4.0
func (client *Client) ListCpuStock() (*ListCpuStockResponse, error)
func (*Client) ListGpuStock ¶ added in v0.4.0
func (client *Client) ListGpuStock() (*ListGpuStockResponse, error)
func (*Client) ListServers ¶
func (client *Client) ListServers() (*ListServersResponse, error)
func (*Client) ModifyServer ¶ added in v0.6.1
func (client *Client) ModifyServer(req ModifyServerRequest) (*Response, error)
func (*Client) RestartServer ¶ added in v0.3.1
type DeployServerRequest ¶ added in v0.3.1
type DeployServerRequest struct { AdminUser string `mapstructure:"admin_user"` AdminPass string `mapstructure:"admin_pass"` InstanceType string `mapstructure:"instance_type"` GPUModel string `mapstructure:"gpu_model,omitempty"` GPUCount int `mapstructure:"gpu_count,omitempty"` CPUModel string `mapstructure:"cpu_model,omitempty"` VCPUs int `mapstructure:"vcpus"` RAM int `mapstructure:"ram"` Storage int `mapstructure:"storage"` StorageClass string `mapstructure:"storage_class"` OS string `mapstructure:"os"` Location string `mapstructure:"location"` Name string `mapstructure:"name"` }
type DeployServerResponse ¶ added in v0.2.1
type GetBillingDetailsResponse ¶ added in v0.3.1
type GetBillingDetailsResponse struct { Response BillingDetails }
type GetServerResponse ¶ added in v0.3.1
type GetServerStatusResponse ¶ added in v0.7.0
type ListCpuStockResponse ¶ added in v0.4.0
type ListGpuStockResponse ¶ added in v0.4.0
type ListServersResponse ¶ added in v0.3.1
type ModifyServerRequest ¶ added in v0.6.1
type ModifyServerRequest struct { ServerId string `mapstructure:"server_id"` InstanceType *string `mapstructure:"instance_type"` GPUModel *string `mapstructure:"gpu_model,omitempty"` GPUCount *int `mapstructure:"gpu_count,omitempty"` CPUModel *string `mapstructure:"cpu_model,omitempty"` VCPUs *int `mapstructure:"vcpus"` RAM *int `mapstructure:"ram"` Storage *int `mapstructure:"storage"` }
type Server ¶
type Server struct { Cost struct { Charged float32 `json:"charged"` HourOff float32 `json:"hour_off"` HourOn float32 `json:"hour_on"` MinutesOff float32 `json:"minutes_off"` MinutesOn float32 `json:"minutes_on"` } `json:"cost"` CPUModel string `json:"cpu_model"` GPUCount int `json:"gpu_count"` GPUModel string `json:"gpu_model"` Id string `json:"id"` Ip string `json:"ip"` Links map[string]map[string]string `json:"links"` Location string `json:"location"` Name string `json:"name"` Ram int `json:"ram"` Status string `json:"status"` Storage int `json:"storage"` StorageClass string `json:"storage_class"` Type string `json:"type"` VCPUs int `json:"vcpus"` }
Click to show internal directories.
Click to hide internal directories.