Documentation
¶
Index ¶
- Variables
- type DefaultResponse
- type Instance
- type InstancesResponse
- type Node
- type NodeGroup
- type NodesResponse
- type RegistryDisk
- type RegistryDiskResponse
- type RegistryTemplateResponse
- type RegistryTemplateTags
- type RegistryTemplateTagsResponse
- type Response
- type Template
- type TemplateTag
- type VmData
Constants ¶
This section is empty.
Variables ¶
View Source
var Architectures = []string{
"amd64",
"arm64",
}
View Source
var InstanceStates = []string{
"Scheduling",
"Pulling",
"Started",
"Stopping",
"Stopped",
"Terminating",
"Terminated",
"Error",
"Pushing",
}
View Source
var NodeStates = []string{
"Offline",
"Inactive (Invalid License)",
"Active",
"Updating",
"Drain Mode",
}
Functions ¶
This section is empty.
Types ¶
type DefaultResponse ¶
func (*DefaultResponse) GetMessage ¶
func (dr *DefaultResponse) GetMessage() string
func (*DefaultResponse) GetStatus ¶
func (dr *DefaultResponse) GetStatus() string
type InstancesResponse ¶
type InstancesResponse struct {
DefaultResponse
Body []Instance `json:"body"`
}
func (*InstancesResponse) GetBody ¶
func (ir *InstancesResponse) GetBody() interface{}
type Node ¶
type Node struct {
NodeID string `json:"node_id"`
NodeName string `json:"node_name"`
CPU uint `json:"cpu_count"`
RAM uint `json:"ram"`
VMCount uint `json:"vm_count"`
UsedVCPUCount uint `json:"vcpu_count"`
UsedVRAM uint `json:"vram"`
CPUUtilization float64 `json:"cpu_util"`
RAMUtilization float64 `json:"ram_util"`
FreeDiskSpace uint `json:"free_disk_space"`
AnkaDiskUsage uint `json:"anka_disk_usage"`
DiskSize uint `json:"disk_size"`
State string `json:"state"`
Capacity uint `json:"capacity"`
HostArch string `json:"host_arch"`
Groups []NodeGroup `json:"groups"`
}
type NodesResponse ¶
type NodesResponse struct {
DefaultResponse
Body []Node `json:"body"`
}
func (*NodesResponse) GetBody ¶
func (nr *NodesResponse) GetBody() interface{}
type RegistryDisk ¶
type RegistryDiskResponse ¶
type RegistryDiskResponse struct {
DefaultResponse
Body RegistryDisk `json:"body"`
}
func (*RegistryDiskResponse) GetBody ¶
func (rdr *RegistryDiskResponse) GetBody() interface{}
type RegistryTemplateResponse ¶
type RegistryTemplateResponse struct {
DefaultResponse
Body []Template `json:"body"`
}
func (*RegistryTemplateResponse) GetBody ¶
func (rtr *RegistryTemplateResponse) GetBody() interface{}
type RegistryTemplateTags ¶
type RegistryTemplateTags struct {
Versions []TemplateTag `json:"versions"`
}
type RegistryTemplateTagsResponse ¶
type RegistryTemplateTagsResponse struct {
DefaultResponse
Body RegistryTemplateTags `json:"body"`
}
func (*RegistryTemplateTagsResponse) GetBody ¶
func (rttr *RegistryTemplateTagsResponse) GetBody() interface{}
type Template ¶
type Template struct {
UUID string `json:"id"`
Name string `json:"name"`
Size uint `json:"size"`
Tags []TemplateTag
}
type TemplateTag ¶
Click to show internal directories.
Click to hide internal directories.