Documentation ¶
Index ¶
- func GetFilterBool(c *gin.Context, name string) (bool, bool)
- func GetFilterUInt(c *gin.Context, name string) (bool, uint64)
- func NewService(client api.Interface, k8sClient k8s.Interface, tm auth.TokenManager, ...) rest.Service
- type CPUInfo
- type CPUInfoTopology
- type FlavorCreateReq
- type FlavorExtraSpecsCreateReq
- type FlavorExtraSpecsListRes
- type FlavorInfo
- type FlavorInfoDetail
- type FlavorListDetailRes
- type FlavorListRes
- type FlavorShowRes
- type HypervisorInfo
- type HypervisorInfoDetail
- type HypervisorListDetailRes
- type HypervisorListRes
- type HypervisorShowRes
- type IndexRes
- type KeypairCreateReq
- type KeypairCreateRes
- type KeypairInfo
- type KeypairListRes
- type KeypairNewInfo
- type KeypairShowRes
- type MediaTypeInfo
- type ServiceInfo
- type VersionIndexRes
- type VersionInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CPUInfo ¶
type CPUInfo struct { Arch string `json:"arch"` Model string `json:"model"` Vendor string `json:"vendor"` Features []string `json:"features"` Topology CPUInfoTopology `json:"topology"` }
type CPUInfoTopology ¶
type FlavorCreateReq ¶
type FlavorCreateReq struct {
Flavor FlavorInfoDetail `json:"flavor"`
}
type FlavorExtraSpecsListRes ¶
type FlavorInfo ¶
type FlavorInfoDetail ¶
type FlavorInfoDetail struct { FlavorInfo `json:",inline"` RAM uint64 `json:"ram"` Disk uint64 `json:"disk"` VCpus uint64 `json:"vcpus"` Ephemeral uint64 `json:"OS-FLV-EXT-DATA:ephemeral"` Disabled bool `json:"OS-FLV-DISABLED:disabled"` Swap uint64 `json:"swap"` RxTxFactor float64 `json:"rxtx_factor"` Public bool `json:"os-flavor-access:is_public"` }
type FlavorListDetailRes ¶
type FlavorListDetailRes struct {
Flavors []FlavorInfoDetail `json:"flavors"`
}
type FlavorListRes ¶
type FlavorListRes struct {
Flavors []FlavorInfo `json:"flavors"`
}
type FlavorShowRes ¶
type FlavorShowRes struct {
Flavor FlavorInfoDetail `json:"flavor"`
}
type HypervisorInfo ¶
type HypervisorInfoDetail ¶
type HypervisorInfoDetail struct { ID string `json:"id"` Hostname string `json:"hypervisor_hostname"` Type string `json:"hypervisor_type"` Version string `json:"hypervisor_version"` State string `json:"state"` Status string `json:"status"` CPUInfo CPUInfo `json:"cpu_info"` CurrentWorkload uint64 `json:"current_workload"` DiskAvailableLeast uint64 `json:"disk_available_least"` HostIP string `json:"host_ip"` FreeDiskGB uint64 `json:"free_disk_gb"` FreeRamMB uint64 `json:"free_ram_mb"` LocalGB uint64 `json:"local_gb"` LocalGBUsed uint64 `json:"local_gb_used"` MemoryMB uint64 `json:"memory_mb"` MemoryMBUsed uint64 `json:"memory_mb_used"` RunningVMs uint64 `json:"running_vm"` VCPUs uint64 `json:"vcpus"` VCPUsUsed uint64 `json:"vcpus_used"` Service ServiceInfo `json:"service"` }
type HypervisorListDetailRes ¶
type HypervisorListDetailRes struct { Hypervisors []HypervisorInfoDetail `json:"hypervisors"` Links []rest.LinkInfo `json:"hypervisor_links"` }
type HypervisorListRes ¶
type HypervisorListRes struct { Hypervisors []HypervisorInfo `json:"hypervisors"` Links []rest.LinkInfo `json:"hypervisor_links"` }
type HypervisorShowRes ¶
type HypervisorShowRes struct {
Hypervisor HypervisorInfoDetail `json:"hypervisor"`
}
type IndexRes ¶
type IndexRes struct {
Versions []VersionInfo `json:"version"`
}
type KeypairCreateReq ¶
type KeypairCreateReq struct {
Keypair KeypairInfo `json:"keypair"`
}
type KeypairCreateRes ¶
type KeypairCreateRes struct {
Keypair KeypairNewInfo `json:"keypair"`
}
type KeypairInfo ¶
type KeypairInfo struct { Fingerprint string `json:"fingerprint"` Name string `json:"name"` Type string `json:"type"` PublicKey string `json:"public_key"` PrivateKey string `json:"private_key,omitempty"` UserID string `json:"user_id"` Deleted bool `json:"deleted"` CreatedAt string `json:"created_at"` UpdatedAt *string `json:"updated_at"` DeletedAt *string `json:"deleted_at"` ID uint64 `json:"id"` }
type KeypairListRes ¶
type KeypairListRes struct { Keypairs []KeypairInfo `json:"keypairs"` Links []rest.LinkInfo `json:"keypair_links"` }
type KeypairNewInfo ¶
type KeypairShowRes ¶
type KeypairShowRes struct {
Keypair KeypairInfo `json:"keypair"`
}
type MediaTypeInfo ¶
type ServiceInfo ¶
type VersionIndexRes ¶
type VersionIndexRes struct {
Version VersionInfo `json:"version"`
}
type VersionInfo ¶
Click to show internal directories.
Click to hide internal directories.