Documentation ¶
Index ¶
- Variables
- func RegisterHyperServiceServer(s *grpc.Server, srv HyperServiceServer)
- type DiskStats
- func (*DiskStats) Descriptor() ([]byte, []int)deprecated
- func (x *DiskStats) GetAlloc() uint64
- func (x *DiskStats) GetCap() uint64
- func (x *DiskStats) GetId() string
- func (x *DiskStats) GetPhy() uint64
- func (x *DiskStats) GetRdBytes() uint64
- func (x *DiskStats) GetRdReqs() uint64
- func (x *DiskStats) GetRdTimes() uint64
- func (x *DiskStats) GetWrBytes() uint64
- func (x *DiskStats) GetWrReqs() uint64
- func (x *DiskStats) GetWrTimes() uint64
- func (*DiskStats) ProtoMessage()
- func (x *DiskStats) ProtoReflect() protoreflect.Message
- func (x *DiskStats) Reset()
- func (x *DiskStats) String() string
- type HyperServiceClient
- type HyperServiceServer
- type ListRequest
- type ListResponse
- type MemStats
- func (*MemStats) Descriptor() ([]byte, []int)deprecated
- func (x *MemStats) GetAvailable() uint64
- func (x *MemStats) GetLastUpdate() uint64
- func (x *MemStats) GetMajorsFaults() uint64
- func (x *MemStats) GetMinorFaults() uint64
- func (x *MemStats) GetSwapIn() uint64
- func (x *MemStats) GetSwapOut() uint64
- func (x *MemStats) GetUnused() uint64
- func (x *MemStats) GetUsable() uint64
- func (*MemStats) ProtoMessage()
- func (x *MemStats) ProtoReflect() protoreflect.Message
- func (x *MemStats) Reset()
- func (x *MemStats) String() string
- type NetStats
- func (*NetStats) Descriptor() ([]byte, []int)deprecated
- func (x *NetStats) GetId() string
- func (x *NetStats) GetRxBytes() uint64
- func (x *NetStats) GetRxDrops() uint64
- func (x *NetStats) GetRxErrs() uint64
- func (x *NetStats) GetRxPkts() uint64
- func (x *NetStats) GetTxBytes() uint64
- func (x *NetStats) GetTxDrops() uint64
- func (x *NetStats) GetTxErrs() uint64
- func (x *NetStats) GetTxPkts() uint64
- func (*NetStats) ProtoMessage()
- func (x *NetStats) ProtoReflect() protoreflect.Message
- func (x *NetStats) Reset()
- func (x *NetStats) String() string
- type PowerRequest
- func (*PowerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PowerRequest) GetId() string
- func (x *PowerRequest) GetType() PowerRequest_ForcePowerType
- func (*PowerRequest) ProtoMessage()
- func (x *PowerRequest) ProtoReflect() protoreflect.Message
- func (x *PowerRequest) Reset()
- func (x *PowerRequest) String() string
- type PowerRequest_ForcePowerType
- func (PowerRequest_ForcePowerType) Descriptor() protoreflect.EnumDescriptor
- func (x PowerRequest_ForcePowerType) Enum() *PowerRequest_ForcePowerType
- func (PowerRequest_ForcePowerType) EnumDescriptor() ([]byte, []int)deprecated
- func (x PowerRequest_ForcePowerType) Number() protoreflect.EnumNumber
- func (x PowerRequest_ForcePowerType) String() string
- func (PowerRequest_ForcePowerType) Type() protoreflect.EnumType
- type PowerResponse
- type PowerState
- type StatsRequest
- type StatsResponse
- type StorageDevice
- func (*StorageDevice) Descriptor() ([]byte, []int)deprecated
- func (x *StorageDevice) GetDevice() string
- func (x *StorageDevice) GetDriver() StorageDevice_Driver
- func (x *StorageDevice) GetId() string
- func (x *StorageDevice) GetSize() int64
- func (*StorageDevice) ProtoMessage()
- func (x *StorageDevice) ProtoReflect() protoreflect.Message
- func (x *StorageDevice) Reset()
- func (x *StorageDevice) String() string
- type StorageDevice_Driver
- func (StorageDevice_Driver) Descriptor() protoreflect.EnumDescriptor
- func (x StorageDevice_Driver) Enum() *StorageDevice_Driver
- func (StorageDevice_Driver) EnumDescriptor() ([]byte, []int)deprecated
- func (x StorageDevice_Driver) Number() protoreflect.EnumNumber
- func (x StorageDevice_Driver) String() string
- func (StorageDevice_Driver) Type() protoreflect.EnumType
- type UnimplementedHyperServiceServer
- func (*UnimplementedHyperServiceServer) List(context.Context, *ListRequest) (*ListResponse, error)
- func (*UnimplementedHyperServiceServer) Power(context.Context, *PowerRequest) (*PowerResponse, error)
- func (*UnimplementedHyperServiceServer) Stats(context.Context, *StatsRequest) (*StatsResponse, error)
- type VCPUStats
- func (*VCPUStats) Descriptor() ([]byte, []int)deprecated
- func (x *VCPUStats) GetId() uint32
- func (x *VCPUStats) GetTime() uint64
- func (x *VCPUStats) GetUsage() float32
- func (*VCPUStats) ProtoMessage()
- func (x *VCPUStats) ProtoReflect() protoreflect.Message
- func (x *VCPUStats) Reset()
- func (x *VCPUStats) String() string
- type VM
- func (*VM) Descriptor() ([]byte, []int)deprecated
- func (x *VM) GetAccount() int32
- func (x *VM) GetAvailabilityArea() string
- func (x *VM) GetCreatedAt() string
- func (x *VM) GetDesiredPowerState() PowerState
- func (x *VM) GetDesiredPowerStateLastUpdate() string
- func (x *VM) GetFwRuleSets() []string
- func (x *VM) GetHyperId() string
- func (x *VM) GetId() string
- func (x *VM) GetMetadata() map[string][]byte
- func (x *VM) GetNics() []string
- func (x *VM) GetPlacementId() string
- func (x *VM) GetPowerState() PowerState
- func (x *VM) GetPowerStateLastUpdate() string
- func (x *VM) GetSshKeyRef() string
- func (x *VM) GetStatus() VMStatus
- func (x *VM) GetStorage() []*StorageDevice
- func (x *VM) GetSubnetId() string
- func (x *VM) GetTemplateId() string
- func (x *VM) GetUpdatedAt() string
- func (x *VM) GetUserData() []byte
- func (x *VM) GetVolumes() []*VolumeAttachment
- func (*VM) ProtoMessage()
- func (x *VM) ProtoReflect() protoreflect.Message
- func (x *VM) Reset()
- func (x *VM) String() string
- type VMStats
- func (*VMStats) Descriptor() ([]byte, []int)deprecated
- func (x *VMStats) GetDisks() []*DiskStats
- func (x *VMStats) GetMem() *MemStats
- func (x *VMStats) GetNets() []*NetStats
- func (x *VMStats) GetVcpus() []*VCPUStats
- func (*VMStats) ProtoMessage()
- func (x *VMStats) ProtoReflect() protoreflect.Message
- func (x *VMStats) Reset()
- func (x *VMStats) String() string
- type VMStatus
- type VMTemplate
- func (*VMTemplate) Descriptor() ([]byte, []int)deprecated
- func (x *VMTemplate) GetId() string
- func (x *VMTemplate) GetLibvirtXml() string
- func (x *VMTemplate) GetRam() int64
- func (x *VMTemplate) GetVcpu() int32
- func (*VMTemplate) ProtoMessage()
- func (x *VMTemplate) ProtoReflect() protoreflect.Message
- func (x *VMTemplate) Reset()
- func (x *VMTemplate) String() string
- type VolumeAttachment
- func (*VolumeAttachment) Descriptor() ([]byte, []int)deprecated
- func (x *VolumeAttachment) GetDev() string
- func (x *VolumeAttachment) GetVolume() string
- func (*VolumeAttachment) ProtoMessage()
- func (x *VolumeAttachment) ProtoReflect() protoreflect.Message
- func (x *VolumeAttachment) Reset()
- func (x *VolumeAttachment) String() string
Constants ¶
This section is empty.
Variables ¶
var ( VMStatus_name = map[int32]string{ 0: "PENDING", 1: "CREATING", 2: "AVAILABLE", 3: "DELETING", 4: "DELETED", 99: "ERROR", } VMStatus_value = map[string]int32{ "PENDING": 0, "CREATING": 1, "AVAILABLE": 2, "DELETING": 3, "DELETED": 4, "ERROR": 99, } )
Enum value maps for VMStatus.
var ( PowerState_name = map[int32]string{ 0: "NONE", 1: "RUNNING", 4: "SHUTDOWN", 5: "SHUTOFF", 6: "CRASHED", 7: "MIGRATING", } PowerState_value = map[string]int32{ "NONE": 0, "RUNNING": 1, "SHUTDOWN": 4, "SHUTOFF": 5, "CRASHED": 6, "MIGRATING": 7, } )
Enum value maps for PowerState.
var ( StorageDevice_Driver_name = map[int32]string{ 0: "LOCAL", 1: "RDB", } StorageDevice_Driver_value = map[string]int32{ "LOCAL": 0, "RDB": 1, } )
Enum value maps for StorageDevice_Driver.
var ( PowerRequest_ForcePowerType_name = map[int32]string{ 0: "REBOOT", 1: "SHUTDOWN", 2: "FORCE_REBOOT", 3: "FORCE_SHUTDOWN", } PowerRequest_ForcePowerType_value = map[string]int32{ "REBOOT": 0, "SHUTDOWN": 1, "FORCE_REBOOT": 2, "FORCE_SHUTDOWN": 3, } )
Enum value maps for PowerRequest_ForcePowerType.
var File_hyper_proto protoreflect.FileDescriptor
Functions ¶
func RegisterHyperServiceServer ¶
func RegisterHyperServiceServer(s *grpc.Server, srv HyperServiceServer)
Types ¶
type DiskStats ¶
type DiskStats struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` RdReqs uint64 `protobuf:"varint,2,opt,name=rd_reqs,json=rdReqs,proto3" json:"rd_reqs,omitempty"` RdBytes uint64 `protobuf:"varint,3,opt,name=rd_bytes,json=rdBytes,proto3" json:"rd_bytes,omitempty"` RdTimes uint64 `protobuf:"varint,4,opt,name=rd_times,json=rdTimes,proto3" json:"rd_times,omitempty"` WrReqs uint64 `protobuf:"varint,5,opt,name=wr_reqs,json=wrReqs,proto3" json:"wr_reqs,omitempty"` WrBytes uint64 `protobuf:"varint,6,opt,name=wr_bytes,json=wrBytes,proto3" json:"wr_bytes,omitempty"` WrTimes uint64 `protobuf:"varint,7,opt,name=wr_times,json=wrTimes,proto3" json:"wr_times,omitempty"` Alloc uint64 `protobuf:"varint,8,opt,name=alloc,proto3" json:"alloc,omitempty"` Cap uint64 `protobuf:"varint,9,opt,name=cap,proto3" json:"cap,omitempty"` Phy uint64 `protobuf:"varint,10,opt,name=phy,proto3" json:"phy,omitempty"` // contains filtered or unexported fields }
func (*DiskStats) Descriptor
deprecated
func (*DiskStats) GetRdBytes ¶
func (*DiskStats) GetRdTimes ¶
func (*DiskStats) GetWrBytes ¶
func (*DiskStats) GetWrTimes ¶
func (*DiskStats) ProtoMessage ¶
func (*DiskStats) ProtoMessage()
func (*DiskStats) ProtoReflect ¶
func (x *DiskStats) ProtoReflect() protoreflect.Message
type HyperServiceClient ¶
type HyperServiceClient interface { Stats(ctx context.Context, in *StatsRequest, opts ...grpc.CallOption) (*StatsResponse, error) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) Power(ctx context.Context, in *PowerRequest, opts ...grpc.CallOption) (*PowerResponse, error) }
HyperServiceClient is the client API for HyperService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewHyperServiceClient ¶
func NewHyperServiceClient(cc grpc.ClientConnInterface) HyperServiceClient
type HyperServiceServer ¶
type HyperServiceServer interface { Stats(context.Context, *StatsRequest) (*StatsResponse, error) List(context.Context, *ListRequest) (*ListResponse, error) Power(context.Context, *PowerRequest) (*PowerResponse, error) // contains filtered or unexported methods }
HyperServiceServer is the server API for HyperService service. All implementations must embed UnimplementedHyperServiceServer for forward compatibility
type ListRequest ¶
type ListRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*ListRequest) Descriptor
deprecated
func (*ListRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
func (*ListRequest) GetId ¶
func (x *ListRequest) GetId() string
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) ProtoReflect ¶
func (x *ListRequest) ProtoReflect() protoreflect.Message
func (*ListRequest) Reset ¶
func (x *ListRequest) Reset()
func (*ListRequest) String ¶
func (x *ListRequest) String() string
type ListResponse ¶
type ListResponse struct { Vms []*VM `protobuf:"bytes,1,rep,name=vms,proto3" json:"vms,omitempty"` // contains filtered or unexported fields }
func (*ListResponse) Descriptor
deprecated
func (*ListResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
func (*ListResponse) GetVms ¶
func (x *ListResponse) GetVms() []*VM
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) ProtoReflect ¶
func (x *ListResponse) ProtoReflect() protoreflect.Message
func (*ListResponse) Reset ¶
func (x *ListResponse) Reset()
func (*ListResponse) String ¶
func (x *ListResponse) String() string
type MemStats ¶
type MemStats struct { MajorsFaults uint64 `protobuf:"varint,1,opt,name=majors_faults,json=majorsFaults,proto3" json:"majors_faults,omitempty"` MinorFaults uint64 `protobuf:"varint,2,opt,name=minor_faults,json=minorFaults,proto3" json:"minor_faults,omitempty"` Unused uint64 `protobuf:"varint,3,opt,name=unused,proto3" json:"unused,omitempty"` Available uint64 `protobuf:"varint,4,opt,name=available,proto3" json:"available,omitempty"` Usable uint64 `protobuf:"varint,5,opt,name=usable,proto3" json:"usable,omitempty"` SwapIn uint64 `protobuf:"varint,6,opt,name=swap_in,json=swapIn,proto3" json:"swap_in,omitempty"` SwapOut uint64 `protobuf:"varint,7,opt,name=swap_out,json=swapOut,proto3" json:"swap_out,omitempty"` LastUpdate uint64 `protobuf:"varint,8,opt,name=last_update,json=lastUpdate,proto3" json:"last_update,omitempty"` // contains filtered or unexported fields }
func (*MemStats) Descriptor
deprecated
func (*MemStats) GetAvailable ¶
func (*MemStats) GetLastUpdate ¶
func (*MemStats) GetMajorsFaults ¶
func (*MemStats) GetMinorFaults ¶
func (*MemStats) GetSwapOut ¶
func (*MemStats) ProtoMessage ¶
func (*MemStats) ProtoMessage()
func (*MemStats) ProtoReflect ¶
func (x *MemStats) ProtoReflect() protoreflect.Message
type NetStats ¶
type NetStats struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` RxBytes uint64 `protobuf:"varint,2,opt,name=rx_bytes,json=rxBytes,proto3" json:"rx_bytes,omitempty"` RxPkts uint64 `protobuf:"varint,3,opt,name=rx_pkts,json=rxPkts,proto3" json:"rx_pkts,omitempty"` RxErrs uint64 `protobuf:"varint,4,opt,name=rx_errs,json=rxErrs,proto3" json:"rx_errs,omitempty"` RxDrops uint64 `protobuf:"varint,5,opt,name=rx_drops,json=rxDrops,proto3" json:"rx_drops,omitempty"` TxBytes uint64 `protobuf:"varint,6,opt,name=tx_bytes,json=txBytes,proto3" json:"tx_bytes,omitempty"` TxPkts uint64 `protobuf:"varint,7,opt,name=tx_pkts,json=txPkts,proto3" json:"tx_pkts,omitempty"` TxErrs uint64 `protobuf:"varint,8,opt,name=tx_errs,json=txErrs,proto3" json:"tx_errs,omitempty"` TxDrops uint64 `protobuf:"varint,9,opt,name=tx_drops,json=txDrops,proto3" json:"tx_drops,omitempty"` // contains filtered or unexported fields }
func (*NetStats) Descriptor
deprecated
func (*NetStats) GetRxBytes ¶
func (*NetStats) GetRxDrops ¶
func (*NetStats) GetTxBytes ¶
func (*NetStats) GetTxDrops ¶
func (*NetStats) ProtoMessage ¶
func (*NetStats) ProtoMessage()
func (*NetStats) ProtoReflect ¶
func (x *NetStats) ProtoReflect() protoreflect.Message
type PowerRequest ¶
type PowerRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Type PowerRequest_ForcePowerType `protobuf:"varint,2,opt,name=type,proto3,enum=vpc.hyper.PowerRequest_ForcePowerType" json:"type,omitempty"` // contains filtered or unexported fields }
func (*PowerRequest) Descriptor
deprecated
func (*PowerRequest) Descriptor() ([]byte, []int)
Deprecated: Use PowerRequest.ProtoReflect.Descriptor instead.
func (*PowerRequest) GetId ¶
func (x *PowerRequest) GetId() string
func (*PowerRequest) GetType ¶
func (x *PowerRequest) GetType() PowerRequest_ForcePowerType
func (*PowerRequest) ProtoMessage ¶
func (*PowerRequest) ProtoMessage()
func (*PowerRequest) ProtoReflect ¶
func (x *PowerRequest) ProtoReflect() protoreflect.Message
func (*PowerRequest) Reset ¶
func (x *PowerRequest) Reset()
func (*PowerRequest) String ¶
func (x *PowerRequest) String() string
type PowerRequest_ForcePowerType ¶
type PowerRequest_ForcePowerType int32
const ( PowerRequest_REBOOT PowerRequest_ForcePowerType = 0 PowerRequest_SHUTDOWN PowerRequest_ForcePowerType = 1 PowerRequest_FORCE_REBOOT PowerRequest_ForcePowerType = 2 PowerRequest_FORCE_SHUTDOWN PowerRequest_ForcePowerType = 3 )
func (PowerRequest_ForcePowerType) Descriptor ¶
func (PowerRequest_ForcePowerType) Descriptor() protoreflect.EnumDescriptor
func (PowerRequest_ForcePowerType) Enum ¶
func (x PowerRequest_ForcePowerType) Enum() *PowerRequest_ForcePowerType
func (PowerRequest_ForcePowerType) EnumDescriptor
deprecated
func (PowerRequest_ForcePowerType) EnumDescriptor() ([]byte, []int)
Deprecated: Use PowerRequest_ForcePowerType.Descriptor instead.
func (PowerRequest_ForcePowerType) Number ¶
func (x PowerRequest_ForcePowerType) Number() protoreflect.EnumNumber
func (PowerRequest_ForcePowerType) String ¶
func (x PowerRequest_ForcePowerType) String() string
func (PowerRequest_ForcePowerType) Type ¶
func (PowerRequest_ForcePowerType) Type() protoreflect.EnumType
type PowerResponse ¶
type PowerResponse struct {
// contains filtered or unexported fields
}
func (*PowerResponse) Descriptor
deprecated
func (*PowerResponse) Descriptor() ([]byte, []int)
Deprecated: Use PowerResponse.ProtoReflect.Descriptor instead.
func (*PowerResponse) ProtoMessage ¶
func (*PowerResponse) ProtoMessage()
func (*PowerResponse) ProtoReflect ¶
func (x *PowerResponse) ProtoReflect() protoreflect.Message
func (*PowerResponse) Reset ¶
func (x *PowerResponse) Reset()
func (*PowerResponse) String ¶
func (x *PowerResponse) String() string
type PowerState ¶
type PowerState int32
const ( PowerState_NONE PowerState = 0 PowerState_RUNNING PowerState = 1 PowerState_SHUTDOWN PowerState = 4 PowerState_SHUTOFF PowerState = 5 PowerState_CRASHED PowerState = 6 PowerState_MIGRATING PowerState = 7 )
func (PowerState) Descriptor ¶
func (PowerState) Descriptor() protoreflect.EnumDescriptor
func (PowerState) Enum ¶
func (x PowerState) Enum() *PowerState
func (PowerState) EnumDescriptor
deprecated
func (PowerState) EnumDescriptor() ([]byte, []int)
Deprecated: Use PowerState.Descriptor instead.
func (PowerState) Number ¶
func (x PowerState) Number() protoreflect.EnumNumber
func (PowerState) String ¶
func (x PowerState) String() string
func (PowerState) Type ¶
func (PowerState) Type() protoreflect.EnumType
type StatsRequest ¶
type StatsRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*StatsRequest) Descriptor
deprecated
func (*StatsRequest) Descriptor() ([]byte, []int)
Deprecated: Use StatsRequest.ProtoReflect.Descriptor instead.
func (*StatsRequest) GetId ¶
func (x *StatsRequest) GetId() string
func (*StatsRequest) ProtoMessage ¶
func (*StatsRequest) ProtoMessage()
func (*StatsRequest) ProtoReflect ¶
func (x *StatsRequest) ProtoReflect() protoreflect.Message
func (*StatsRequest) Reset ¶
func (x *StatsRequest) Reset()
func (*StatsRequest) String ¶
func (x *StatsRequest) String() string
type StatsResponse ¶
type StatsResponse struct { Stats []*VMStats `protobuf:"bytes,1,rep,name=stats,proto3" json:"stats,omitempty"` // contains filtered or unexported fields }
func (*StatsResponse) Descriptor
deprecated
func (*StatsResponse) Descriptor() ([]byte, []int)
Deprecated: Use StatsResponse.ProtoReflect.Descriptor instead.
func (*StatsResponse) GetStats ¶
func (x *StatsResponse) GetStats() []*VMStats
func (*StatsResponse) ProtoMessage ¶
func (*StatsResponse) ProtoMessage()
func (*StatsResponse) ProtoReflect ¶
func (x *StatsResponse) ProtoReflect() protoreflect.Message
func (*StatsResponse) Reset ¶
func (x *StatsResponse) Reset()
func (*StatsResponse) String ¶
func (x *StatsResponse) String() string
type StorageDevice ¶
type StorageDevice struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Device string `protobuf:"bytes,2,opt,name=device,proto3" json:"device,omitempty"` Driver StorageDevice_Driver `protobuf:"varint,3,opt,name=driver,proto3,enum=vpc.hyper.StorageDevice_Driver" json:"driver,omitempty"` Size int64 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"` // contains filtered or unexported fields }
func (*StorageDevice) Descriptor
deprecated
func (*StorageDevice) Descriptor() ([]byte, []int)
Deprecated: Use StorageDevice.ProtoReflect.Descriptor instead.
func (*StorageDevice) GetDevice ¶
func (x *StorageDevice) GetDevice() string
func (*StorageDevice) GetDriver ¶
func (x *StorageDevice) GetDriver() StorageDevice_Driver
func (*StorageDevice) GetId ¶
func (x *StorageDevice) GetId() string
func (*StorageDevice) GetSize ¶
func (x *StorageDevice) GetSize() int64
func (*StorageDevice) ProtoMessage ¶
func (*StorageDevice) ProtoMessage()
func (*StorageDevice) ProtoReflect ¶
func (x *StorageDevice) ProtoReflect() protoreflect.Message
func (*StorageDevice) Reset ¶
func (x *StorageDevice) Reset()
func (*StorageDevice) String ¶
func (x *StorageDevice) String() string
type StorageDevice_Driver ¶
type StorageDevice_Driver int32
const ( StorageDevice_LOCAL StorageDevice_Driver = 0 StorageDevice_RDB StorageDevice_Driver = 1 )
func (StorageDevice_Driver) Descriptor ¶
func (StorageDevice_Driver) Descriptor() protoreflect.EnumDescriptor
func (StorageDevice_Driver) Enum ¶
func (x StorageDevice_Driver) Enum() *StorageDevice_Driver
func (StorageDevice_Driver) EnumDescriptor
deprecated
func (StorageDevice_Driver) EnumDescriptor() ([]byte, []int)
Deprecated: Use StorageDevice_Driver.Descriptor instead.
func (StorageDevice_Driver) Number ¶
func (x StorageDevice_Driver) Number() protoreflect.EnumNumber
func (StorageDevice_Driver) String ¶
func (x StorageDevice_Driver) String() string
func (StorageDevice_Driver) Type ¶
func (StorageDevice_Driver) Type() protoreflect.EnumType
type UnimplementedHyperServiceServer ¶
type UnimplementedHyperServiceServer struct { }
UnimplementedHyperServiceServer must be embedded to have forward compatible implementations.
func (*UnimplementedHyperServiceServer) List ¶
func (*UnimplementedHyperServiceServer) List(context.Context, *ListRequest) (*ListResponse, error)
func (*UnimplementedHyperServiceServer) Power ¶
func (*UnimplementedHyperServiceServer) Power(context.Context, *PowerRequest) (*PowerResponse, error)
func (*UnimplementedHyperServiceServer) Stats ¶
func (*UnimplementedHyperServiceServer) Stats(context.Context, *StatsRequest) (*StatsResponse, error)
type VCPUStats ¶
type VCPUStats struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Time uint64 `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"` Usage float32 `protobuf:"fixed32,3,opt,name=usage,proto3" json:"usage,omitempty"` // contains filtered or unexported fields }
func (*VCPUStats) Descriptor
deprecated
func (*VCPUStats) ProtoMessage ¶
func (*VCPUStats) ProtoMessage()
func (*VCPUStats) ProtoReflect ¶
func (x *VCPUStats) ProtoReflect() protoreflect.Message
type VM ¶
type VM struct { Account int32 `protobuf:"varint,1,opt,name=account,proto3" json:"account,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` Status VMStatus `protobuf:"varint,17,opt,name=status,proto3,enum=vpc.hyper.VMStatus" json:"status,omitempty"` Metadata map[string][]byte `` /* 157-byte string literal not displayed */ TemplateId string `protobuf:"bytes,3,opt,name=template_id,json=templateId,proto3" json:"template_id,omitempty"` PlacementId string `protobuf:"bytes,5,opt,name=placement_id,json=placementId,proto3" json:"placement_id,omitempty"` HyperId string `protobuf:"bytes,6,opt,name=hyper_id,json=hyperId,proto3" json:"hyper_id,omitempty"` SubnetId string `protobuf:"bytes,7,opt,name=subnet_id,json=subnetId,proto3" json:"subnet_id,omitempty"` Storage []*StorageDevice `protobuf:"bytes,8,rep,name=storage,proto3" json:"storage,omitempty"` FwRuleSets []string `protobuf:"bytes,9,rep,name=fw_rule_sets,json=fwRuleSets,proto3" json:"fw_rule_sets,omitempty"` Nics []string `protobuf:"bytes,10,rep,name=nics,proto3" json:"nics,omitempty"` PowerState PowerState `protobuf:"varint,11,opt,name=power_state,json=powerState,proto3,enum=vpc.hyper.PowerState" json:"power_state,omitempty"` PowerStateLastUpdate string `` /* 126-byte string literal not displayed */ DesiredPowerState PowerState `` /* 142-byte string literal not displayed */ DesiredPowerStateLastUpdate string `` /* 149-byte string literal not displayed */ SshKeyRef string `protobuf:"bytes,15,opt,name=ssh_key_ref,json=sshKeyRef,proto3" json:"ssh_key_ref,omitempty"` UserData []byte `protobuf:"bytes,16,opt,name=user_data,json=userData,proto3" json:"user_data,omitempty"` CreatedAt string `protobuf:"bytes,18,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt string `protobuf:"bytes,19,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` AvailabilityArea string `protobuf:"bytes,20,opt,name=availability_area,json=availabilityArea,proto3" json:"availability_area,omitempty"` Volumes []*VolumeAttachment `protobuf:"bytes,21,rep,name=volumes,proto3" json:"volumes,omitempty"` // contains filtered or unexported fields }
func (*VM) Descriptor
deprecated
func (*VM) GetAccount ¶
func (*VM) GetAvailabilityArea ¶
func (*VM) GetCreatedAt ¶
func (*VM) GetDesiredPowerState ¶
func (x *VM) GetDesiredPowerState() PowerState
func (*VM) GetDesiredPowerStateLastUpdate ¶
func (*VM) GetFwRuleSets ¶
func (*VM) GetHyperId ¶
func (*VM) GetMetadata ¶
func (*VM) GetPlacementId ¶
func (*VM) GetPowerState ¶
func (x *VM) GetPowerState() PowerState
func (*VM) GetPowerStateLastUpdate ¶
func (*VM) GetSshKeyRef ¶
func (*VM) GetStorage ¶
func (x *VM) GetStorage() []*StorageDevice
func (*VM) GetSubnetId ¶
func (*VM) GetTemplateId ¶
func (*VM) GetUpdatedAt ¶
func (*VM) GetUserData ¶
func (*VM) GetVolumes ¶
func (x *VM) GetVolumes() []*VolumeAttachment
func (*VM) ProtoMessage ¶
func (*VM) ProtoMessage()
func (*VM) ProtoReflect ¶
func (x *VM) ProtoReflect() protoreflect.Message
type VMStats ¶
type VMStats struct { Vcpus []*VCPUStats `protobuf:"bytes,1,rep,name=vcpus,proto3" json:"vcpus,omitempty"` Nets []*NetStats `protobuf:"bytes,2,rep,name=nets,proto3" json:"nets,omitempty"` Disks []*DiskStats `protobuf:"bytes,3,rep,name=disks,proto3" json:"disks,omitempty"` Mem *MemStats `protobuf:"bytes,4,opt,name=mem,proto3" json:"mem,omitempty"` // contains filtered or unexported fields }
func (*VMStats) Descriptor
deprecated
func (*VMStats) ProtoMessage ¶
func (*VMStats) ProtoMessage()
func (*VMStats) ProtoReflect ¶
func (x *VMStats) ProtoReflect() protoreflect.Message
type VMStatus ¶
type VMStatus int32
func (VMStatus) Descriptor ¶
func (VMStatus) Descriptor() protoreflect.EnumDescriptor
func (VMStatus) EnumDescriptor
deprecated
func (VMStatus) Number ¶
func (x VMStatus) Number() protoreflect.EnumNumber
func (VMStatus) Type ¶
func (VMStatus) Type() protoreflect.EnumType
type VMTemplate ¶
type VMTemplate struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Vcpu int32 `protobuf:"varint,2,opt,name=vcpu,proto3" json:"vcpu,omitempty"` Ram int64 `protobuf:"varint,3,opt,name=ram,proto3" json:"ram,omitempty"` LibvirtXml string `protobuf:"bytes,4,opt,name=libvirt_xml,json=libvirtXml,proto3" json:"libvirt_xml,omitempty"` // contains filtered or unexported fields }
func (*VMTemplate) Descriptor
deprecated
func (*VMTemplate) Descriptor() ([]byte, []int)
Deprecated: Use VMTemplate.ProtoReflect.Descriptor instead.
func (*VMTemplate) GetId ¶
func (x *VMTemplate) GetId() string
func (*VMTemplate) GetLibvirtXml ¶
func (x *VMTemplate) GetLibvirtXml() string
func (*VMTemplate) GetRam ¶
func (x *VMTemplate) GetRam() int64
func (*VMTemplate) GetVcpu ¶
func (x *VMTemplate) GetVcpu() int32
func (*VMTemplate) ProtoMessage ¶
func (*VMTemplate) ProtoMessage()
func (*VMTemplate) ProtoReflect ¶
func (x *VMTemplate) ProtoReflect() protoreflect.Message
func (*VMTemplate) Reset ¶
func (x *VMTemplate) Reset()
func (*VMTemplate) String ¶
func (x *VMTemplate) String() string
type VolumeAttachment ¶
type VolumeAttachment struct { Volume string `protobuf:"bytes,1,opt,name=volume,proto3" json:"volume,omitempty"` Dev string `protobuf:"bytes,2,opt,name=dev,proto3" json:"dev,omitempty"` // contains filtered or unexported fields }
func (*VolumeAttachment) Descriptor
deprecated
func (*VolumeAttachment) Descriptor() ([]byte, []int)
Deprecated: Use VolumeAttachment.ProtoReflect.Descriptor instead.
func (*VolumeAttachment) GetDev ¶
func (x *VolumeAttachment) GetDev() string
func (*VolumeAttachment) GetVolume ¶
func (x *VolumeAttachment) GetVolume() string
func (*VolumeAttachment) ProtoMessage ¶
func (*VolumeAttachment) ProtoMessage()
func (*VolumeAttachment) ProtoReflect ¶
func (x *VolumeAttachment) ProtoReflect() protoreflect.Message
func (*VolumeAttachment) Reset ¶
func (x *VolumeAttachment) Reset()
func (*VolumeAttachment) String ¶
func (x *VolumeAttachment) String() string