Documentation ¶
Overview ¶
Code generated by protoc-gen-go-ttrpc. DO NOT EDIT. source: hypervisor.proto
Index ¶
- Variables
- func RegisterHypervisorService(srv *ttrpc.Server, svc HypervisorService)
- type CreateVMRequest
- func (*CreateVMRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateVMRequest) GetAnnotations() map[string]string
- func (x *CreateVMRequest) GetId() string
- func (x *CreateVMRequest) GetNetworkNamespacePath() string
- func (*CreateVMRequest) ProtoMessage()
- func (x *CreateVMRequest) ProtoReflect() protoreflect.Message
- func (x *CreateVMRequest) Reset()
- func (x *CreateVMRequest) String() string
- type CreateVMResponse
- type HypervisorService
- type StartVMRequest
- type StartVMResponse
- type StopVMRequest
- type StopVMResponse
- type VersionRequest
- type VersionResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var File_hypervisor_proto protoreflect.FileDescriptor
Functions ¶
func RegisterHypervisorService ¶
func RegisterHypervisorService(srv *ttrpc.Server, svc HypervisorService)
Types ¶
type CreateVMRequest ¶
type CreateVMRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Annotations map[string]string `` /* 163-byte string literal not displayed */ NetworkNamespacePath string `protobuf:"bytes,3,opt,name=networkNamespacePath,proto3" json:"networkNamespacePath,omitempty"` // contains filtered or unexported fields }
func (*CreateVMRequest) Descriptor
deprecated
func (*CreateVMRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateVMRequest.ProtoReflect.Descriptor instead.
func (*CreateVMRequest) GetAnnotations ¶
func (x *CreateVMRequest) GetAnnotations() map[string]string
func (*CreateVMRequest) GetId ¶
func (x *CreateVMRequest) GetId() string
func (*CreateVMRequest) GetNetworkNamespacePath ¶
func (x *CreateVMRequest) GetNetworkNamespacePath() string
func (*CreateVMRequest) ProtoMessage ¶
func (*CreateVMRequest) ProtoMessage()
func (*CreateVMRequest) ProtoReflect ¶
func (x *CreateVMRequest) ProtoReflect() protoreflect.Message
func (*CreateVMRequest) Reset ¶
func (x *CreateVMRequest) Reset()
func (*CreateVMRequest) String ¶
func (x *CreateVMRequest) String() string
type CreateVMResponse ¶
type CreateVMResponse struct { AgentSocketPath string `protobuf:"bytes,1,opt,name=agentSocketPath,proto3" json:"agentSocketPath,omitempty"` // contains filtered or unexported fields }
func (*CreateVMResponse) Descriptor
deprecated
func (*CreateVMResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateVMResponse.ProtoReflect.Descriptor instead.
func (*CreateVMResponse) GetAgentSocketPath ¶
func (x *CreateVMResponse) GetAgentSocketPath() string
func (*CreateVMResponse) ProtoMessage ¶
func (*CreateVMResponse) ProtoMessage()
func (*CreateVMResponse) ProtoReflect ¶
func (x *CreateVMResponse) ProtoReflect() protoreflect.Message
func (*CreateVMResponse) Reset ¶
func (x *CreateVMResponse) Reset()
func (*CreateVMResponse) String ¶
func (x *CreateVMResponse) String() string
type HypervisorService ¶
type HypervisorService interface { CreateVM(context.Context, *CreateVMRequest) (*CreateVMResponse, error) StartVM(context.Context, *StartVMRequest) (*StartVMResponse, error) StopVM(context.Context, *StopVMRequest) (*StopVMResponse, error) Version(context.Context, *VersionRequest) (*VersionResponse, error) }
func NewHypervisorClient ¶
func NewHypervisorClient(client *ttrpc.Client) HypervisorService
type StartVMRequest ¶
type StartVMRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*StartVMRequest) Descriptor
deprecated
func (*StartVMRequest) Descriptor() ([]byte, []int)
Deprecated: Use StartVMRequest.ProtoReflect.Descriptor instead.
func (*StartVMRequest) GetId ¶
func (x *StartVMRequest) GetId() string
func (*StartVMRequest) ProtoMessage ¶
func (*StartVMRequest) ProtoMessage()
func (*StartVMRequest) ProtoReflect ¶
func (x *StartVMRequest) ProtoReflect() protoreflect.Message
func (*StartVMRequest) Reset ¶
func (x *StartVMRequest) Reset()
func (*StartVMRequest) String ¶
func (x *StartVMRequest) String() string
type StartVMResponse ¶
type StartVMResponse struct {
// contains filtered or unexported fields
}
func (*StartVMResponse) Descriptor
deprecated
func (*StartVMResponse) Descriptor() ([]byte, []int)
Deprecated: Use StartVMResponse.ProtoReflect.Descriptor instead.
func (*StartVMResponse) ProtoMessage ¶
func (*StartVMResponse) ProtoMessage()
func (*StartVMResponse) ProtoReflect ¶
func (x *StartVMResponse) ProtoReflect() protoreflect.Message
func (*StartVMResponse) Reset ¶
func (x *StartVMResponse) Reset()
func (*StartVMResponse) String ¶
func (x *StartVMResponse) String() string
type StopVMRequest ¶
type StopVMRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*StopVMRequest) Descriptor
deprecated
func (*StopVMRequest) Descriptor() ([]byte, []int)
Deprecated: Use StopVMRequest.ProtoReflect.Descriptor instead.
func (*StopVMRequest) GetId ¶
func (x *StopVMRequest) GetId() string
func (*StopVMRequest) ProtoMessage ¶
func (*StopVMRequest) ProtoMessage()
func (*StopVMRequest) ProtoReflect ¶
func (x *StopVMRequest) ProtoReflect() protoreflect.Message
func (*StopVMRequest) Reset ¶
func (x *StopVMRequest) Reset()
func (*StopVMRequest) String ¶
func (x *StopVMRequest) String() string
type StopVMResponse ¶
type StopVMResponse struct {
// contains filtered or unexported fields
}
func (*StopVMResponse) Descriptor
deprecated
func (*StopVMResponse) Descriptor() ([]byte, []int)
Deprecated: Use StopVMResponse.ProtoReflect.Descriptor instead.
func (*StopVMResponse) ProtoMessage ¶
func (*StopVMResponse) ProtoMessage()
func (*StopVMResponse) ProtoReflect ¶
func (x *StopVMResponse) ProtoReflect() protoreflect.Message
func (*StopVMResponse) Reset ¶
func (x *StopVMResponse) Reset()
func (*StopVMResponse) String ¶
func (x *StopVMResponse) String() string
type VersionRequest ¶
type VersionRequest struct { Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
func (*VersionRequest) Descriptor
deprecated
func (*VersionRequest) Descriptor() ([]byte, []int)
Deprecated: Use VersionRequest.ProtoReflect.Descriptor instead.
func (*VersionRequest) GetVersion ¶
func (x *VersionRequest) GetVersion() string
func (*VersionRequest) ProtoMessage ¶
func (*VersionRequest) ProtoMessage()
func (*VersionRequest) ProtoReflect ¶
func (x *VersionRequest) ProtoReflect() protoreflect.Message
func (*VersionRequest) Reset ¶
func (x *VersionRequest) Reset()
func (*VersionRequest) String ¶
func (x *VersionRequest) String() string
type VersionResponse ¶
type VersionResponse struct { Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
func (*VersionResponse) Descriptor
deprecated
func (*VersionResponse) Descriptor() ([]byte, []int)
Deprecated: Use VersionResponse.ProtoReflect.Descriptor instead.
func (*VersionResponse) GetVersion ¶
func (x *VersionResponse) GetVersion() string
func (*VersionResponse) ProtoMessage ¶
func (*VersionResponse) ProtoMessage()
func (*VersionResponse) ProtoReflect ¶
func (x *VersionResponse) ProtoReflect() protoreflect.Message
func (*VersionResponse) Reset ¶
func (x *VersionResponse) Reset()
func (*VersionResponse) String ¶
func (x *VersionResponse) String() string
Click to show internal directories.
Click to hide internal directories.