models

package
v0.0.0-...-67d9f85 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2022 License: MIT Imports: 1 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cpu

type Cpu struct {
	Counts  int     `json:"counts"`
	Percent float64 `json:"percent"`
}

Cpu ホストのCPU情報

type Devices

type Devices struct {
	Disk []Disk `json:"disk"`
}

Devices defines model for Devices.

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 DiskType

type DiskType string

DiskType defines model for Disk.Type.

const (
	DiskTypeQcow2   DiskType = "qcow2"
	DiskTypeUnknown DiskType = "unknown"
)

Defines values for DiskType.

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 InstallOpts struct {
	Name   string
	Memory int
	VCpu   int
	Image  string
	Disk   string
}

type Machine

type Machine struct {
	Name    string  `json:"name"`
	Memory  int     `json:"memory"`
	VCpu    int     `json:"vcpu"`
	Devices Devices `json:"devices"`
}

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 StartOpts

type StartOpts struct {
	Disk string
}

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.

type Vm

type Vm struct {
	Devices  Devices  `json:"devices"`
	Memory   int      `json:"memory"`
	Metadata Metadata `json:"metadata"`
	Name     string   `json:"name"`
	Status   VmStatus `json:"status"`
	Vcpu     int      `json:"vcpu"`
}

Vm 仮想マシンを表すモデル

type VmStatus

type VmStatus string

VmStatus defines model for Vm.Status.

const (
	VmStatusActive  VmStatus = "active"
	VmStatusError   VmStatus = "error"
	VmStatusPending VmStatus = "pending"
	VmStatusUnknown VmStatus = "unknown"
)

Defines values for VmStatus.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL