Documentation
¶
Index ¶
- func DeleteServer(ac *client.AlpaconClient, serverName string) error
- func GetServerDetail(ac *client.AlpaconClient, serverName string) ([]byte, error)
- func GetServerIDByName(ac *client.AlpaconClient, serverName string) (string, error)
- type ServerAttributes
- type ServerCreatedResponse
- type ServerDetails
- type ServerListResponse
- type ServerRequest
- type ServerStatus
- type ServerStatusMeta
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteServer ¶ added in v0.0.2
func DeleteServer(ac *client.AlpaconClient, serverName string) error
func GetServerDetail ¶
func GetServerDetail(ac *client.AlpaconClient, serverName string) ([]byte, error)
func GetServerIDByName ¶
func GetServerIDByName(ac *client.AlpaconClient, serverName string) (string, error)
Types ¶
type ServerAttributes ¶
type ServerAttributes struct { Name string `json:"name"` IP string `json:"ip"` OS string `json:"os"` Connected bool `json:"connected"` Owner string `json:"owner"` }
func GetServerList ¶
func GetServerList(ac *client.AlpaconClient) ([]ServerAttributes, error)
type ServerCreatedResponse ¶
type ServerCreatedResponse struct { Name string `json:"name"` ID string `json:"id"` Instruction1 string `json:"instruction_1"` Instruction2 string `json:"instruction_2"` Groups []string `json:"groups"` }
func CreateServer ¶
func CreateServer(ac *client.AlpaconClient, serverRequest ServerRequest) (ServerCreatedResponse, error)
type ServerDetails ¶
type ServerDetails struct { ID string `json:"id"` Name string `json:"name"` RemoteIP string `json:"remote_ip"` Status ServerStatus `json:"status"` IsConnected bool `json:"is_connected"` Commissioned bool `json:"commissioned"` Starred bool `json:"starred"` CPUPhysicalCores int `json:"cpu_physical_cores"` CPULogicalCores int `json:"cpu_logical_cores"` CPUType string `json:"cpu_type"` PhysicalMemory int64 `json:"physical_memory"` OSName string `json:"os_name"` OSVersion string `json:"os_version"` Load float64 `json:"load"` BootTime time.Time `json:"boot_time"` Owner string `json:"owner"` OwnerName string `json:"owner_name"` Groups []string `json:"groups"` GroupsName []string `json:"groups_name"` }
type ServerListResponse ¶
type ServerRequest ¶
type ServerStatus ¶
Click to show internal directories.
Click to hide internal directories.