Versions in this module Expand all Collapse all v0 v0.3.0 Feb 23, 2023 Changes in this version + func GetSwagger() (swagger *openapi3.T, err error) + func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error) + func RegisterHandlers(router *gin.Engine, si ServerInterface) *gin.Engine + func RegisterHandlersWithOptions(router *gin.Engine, si ServerInterface, options GinServerOptions) *gin.Engine + type Cpu struct + Counts int + Percent float64 + type Devices struct + Disk []Disk + type Disk struct + Device DiskDevice + Name string + Pool string + Type DiskType + type DiskDevice string + const DiskDeviceCdrom + const DiskDeviceDisk + const DiskDeviceUnknown + type DiskType string + const DiskTypeQcow2 + const DiskTypeUnknown + type GetAllVMsList200Response struct + Vms []Vm + type GetHost200Response struct + Host Host + type GetVMByVMId200Response struct + Vm Vm + type GetVMPowerByVMId200Response struct + VmPower VmPowerInfo + type GinServerOptions struct + BaseURL string + ErrorHandler func(*gin.Context, error, int) + Middlewares []MiddlewareFunc + type Host struct + Cpu Cpu + Memory Memory + StoragePools []StoragePool + type Memory struct + Free uint64 + Percent float64 + Total uint64 + Used uint64 + type Metadata struct + ApiVersion string + Id openapi_types.UUID + type MiddlewareFunc func(c *gin.Context) + type PatchApiV1VmsVmIdJSONBody struct + Cpu int + Memory uint64 + Name string + type PatchApiV1VmsVmIdJSONRequestBody PatchApiV1VmsVmIdJSONBody + type PatchUpdateVMByVMId200Response struct + Vm Vm + type PatchUpdateVMRequest struct + Cpu int + Memory uint64 + Name string + type PostApiV1VmsJSONBody struct + Cpu int + Memory uint64 + Name string + type PostApiV1VmsJSONRequestBody PostApiV1VmsJSONBody + type PostApiV1VmsVmIdPowerJSONBody struct + Action VmPowerActions + type PostApiV1VmsVmIdPowerJSONRequestBody PostApiV1VmsVmIdPowerJSONBody + type PostChangeVMsPowerStatusByVMIdRequest struct + Action VmPowerActions + type PostCreateNewVM200Response struct + Vm Vm + type PostCreateNewVMRequest struct + Cpu int + Memory uint64 + Name string + type ServerInterface interface + DeleteApiV1VmsVmId func(c *gin.Context, vmId openapi_types.UUID) + GetApiV1Host func(c *gin.Context) + GetApiV1Vms func(c *gin.Context) + GetApiV1VmsVmId func(c *gin.Context, vmId openapi_types.UUID) + GetApiV1VmsVmIdPower func(c *gin.Context, vmId openapi_types.UUID) + PatchApiV1VmsVmId func(c *gin.Context, vmId openapi_types.UUID) + PostApiV1Vms func(c *gin.Context) + PostApiV1VmsVmIdPower func(c *gin.Context, vmId openapi_types.UUID) + type ServerInterfaceWrapper struct + ErrorHandler func(*gin.Context, error, int) + Handler ServerInterface + HandlerMiddlewares []MiddlewareFunc + func (siw *ServerInterfaceWrapper) DeleteApiV1VmsVmId(c *gin.Context) + func (siw *ServerInterfaceWrapper) GetApiV1Host(c *gin.Context) + func (siw *ServerInterfaceWrapper) GetApiV1Vms(c *gin.Context) + func (siw *ServerInterfaceWrapper) GetApiV1VmsVmId(c *gin.Context) + func (siw *ServerInterfaceWrapper) GetApiV1VmsVmIdPower(c *gin.Context) + func (siw *ServerInterfaceWrapper) PatchApiV1VmsVmId(c *gin.Context) + func (siw *ServerInterfaceWrapper) PostApiV1Vms(c *gin.Context) + func (siw *ServerInterfaceWrapper) PostApiV1VmsVmIdPower(c *gin.Context) + type StoragePool struct + Name string + Path string + Status StoragePoolStatus + TotalSize uint64 + UsedSize uint64 + type StoragePoolStatus string + const ACTIVE + const ERROR + type Vm struct + Cpu int + Devices Devices + Memory uint64 + Metadata Metadata + Name string + type VmPowerActions string + const Reboot + const Reset + const Shutdown + const Start + type VmPowerInfo struct + CleanPowerOff bool + State VmPowerInfoState + type VmPowerInfoState string + const RUNNING + const SHUTDOWN + const UNKNOWN