Documentation ¶
Overview ¶
Package models provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.12.2 DO NOT EDIT.
Index ¶
- type Cpu
- type Devices
- type Disk
- type DiskDevice
- type DiskType
- type GetAllVMsList200Response
- type GetHost200Response
- type GetInfoOptions
- type GetVMByVMId200Response
- type Host
- type InstallOpts
- type Machine
- type Memory
- type Metadata
- type PatchApiV1VmsVmIdJSONBody
- type PatchApiV1VmsVmIdJSONRequestBody
- type PatchUpdateVMByVMId200Response
- type PostApiV1VmsJSONBody
- type PostApiV1VmsJSONRequestBody
- type PostCreateNewVM200Response
- type StartOpts
- type StoragePool
- type StoragePoolStatus
- type Vm
- type VmStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Disk ¶
type Disk struct { Device DiskDevice `json:"device"` Path string `json:"path"` Type DiskType `json:"type"` }
Disk defines model for Disk.
type DiskDevice ¶
type DiskDevice string
DiskDevice defines model for Disk.Device.
const ( DiskDeviceCdrom DiskDevice = "cdrom" DiskDeviceDisk DiskDevice = "disk" DiskDeviceUnknown DiskDevice = "unknown" )
Defines values for DiskDevice.
type GetAllVMsList200Response ¶
type GetAllVMsList200Response struct { Message *string `json:"message,omitempty"` Vms []Vm `json:"vms"` }
GetAllVMsList200Response defines model for GetAllVMsList200Response.
type GetHost200Response ¶
type GetHost200Response struct { Host Host `json:"host"` Message *string `json:"message,omitempty"` }
GetHost200Response defines model for GetHost200Response.
type GetInfoOptions ¶
type GetInfoOptions struct {
StorageDir string
}
type GetVMByVMId200Response ¶
type GetVMByVMId200Response struct { Message *string `json:"message,omitempty"` // Vm 仮想マシンを表すモデル Vm Vm `json:"vm"` }
GetVMByVMId200Response defines model for GetVMByVMId200Response.
type Host ¶
type Host struct { // Cpu ホストのCPU情報 Cpu Cpu `json:"cpu"` // Mem ホストのメモリ情報 Mem Memory `json:"mem"` StoragePools []StoragePool `json:"storage_pools"` }
Host defines model for Host.
type InstallOpts ¶
type Memory ¶
type Memory struct { Free uint64 `json:"free"` Total uint64 `json:"total"` Used uint64 `json:"used"` UsedPercent float64 `json:"used_percent"` }
Memory ホストのメモリ情報
type Metadata ¶
type Metadata struct { ApiVersion string `json:"api_version"` Id openapi_types.UUID `json:"id"` }
Metadata defines model for Metadata.
type PatchApiV1VmsVmIdJSONBody ¶
type PatchApiV1VmsVmIdJSONBody struct { Memory *int `json:"memory,omitempty"` Name *string `json:"name,omitempty"` Vcpu *int `json:"vcpu,omitempty"` }
PatchApiV1VmsVmIdJSONBody defines parameters for PatchApiV1VmsVmId.
type PatchApiV1VmsVmIdJSONRequestBody ¶
type PatchApiV1VmsVmIdJSONRequestBody PatchApiV1VmsVmIdJSONBody
PatchApiV1VmsVmIdJSONRequestBody defines body for PatchApiV1VmsVmId for application/json ContentType.
type PatchUpdateVMByVMId200Response ¶
type PatchUpdateVMByVMId200Response struct { Message *string `json:"message,omitempty"` // Vm 仮想マシンを表すモデル Vm Vm `json:"vm"` }
PatchUpdateVMByVMId200Response defines model for PatchUpdateVMByVMId200Response.
type PostApiV1VmsJSONBody ¶
type PostApiV1VmsJSONBody struct { Memory int `json:"memory"` Name string `json:"name"` Vcpu int `json:"vcpu"` }
PostApiV1VmsJSONBody defines parameters for PostApiV1Vms.
type PostApiV1VmsJSONRequestBody ¶
type PostApiV1VmsJSONRequestBody PostApiV1VmsJSONBody
PostApiV1VmsJSONRequestBody defines body for PostApiV1Vms for application/json ContentType.
type PostCreateNewVM200Response ¶
type PostCreateNewVM200Response struct { Message *string `json:"message,omitempty"` // Vm 仮想マシンを表すモデル Vm Vm `json:"vm"` }
PostCreateNewVM200Response defines model for PostCreateNewVM200Response.
type StoragePool ¶
type StoragePool struct { Name string `json:"name"` Path string `json:"path"` Status StoragePoolStatus `json:"status"` TotalSize uint64 `json:"total_size"` UsedSize uint64 `json:"used_size"` }
StoragePool ホストが持つストレージプールの情報
type StoragePoolStatus ¶
type StoragePoolStatus string
StoragePoolStatus defines model for StoragePool.Status.
const ( StoragePoolStatusActive StoragePoolStatus = "Active" StoragePoolStatusError StoragePoolStatus = "Error" )
Defines values for StoragePoolStatus.