Documentation ¶
Index ¶
- Variables
- func RegisterHandleCliServer(s *grpc.Server, srv HandleCliServer)
- type CliRequest
- type HandleCliClient
- type HandleCliServer
- type ResponseStatus
- func (*ResponseStatus) Descriptor() ([]byte, []int)deprecated
- func (x *ResponseStatus) GetScriptData() string
- func (x *ResponseStatus) GetStatus() int32
- func (x *ResponseStatus) GetStatusMsg() string
- func (*ResponseStatus) ProtoMessage()
- func (x *ResponseStatus) ProtoReflect() protoreflect.Message
- func (x *ResponseStatus) Reset()
- func (x *ResponseStatus) String() string
- type UnimplementedHandleCliServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_vm_proto protoreflect.FileDescriptor
Functions ¶
func RegisterHandleCliServer ¶
func RegisterHandleCliServer(s *grpc.Server, srv HandleCliServer)
Types ¶
type CliRequest ¶
type CliRequest struct { KvmName string `protobuf:"bytes,1,opt,name=KvmName,proto3" json:"KvmName,omitempty"` // contains filtered or unexported fields }
func (*CliRequest) Descriptor
deprecated
func (*CliRequest) Descriptor() ([]byte, []int)
Deprecated: Use CliRequest.ProtoReflect.Descriptor instead.
func (*CliRequest) GetKvmName ¶
func (x *CliRequest) GetKvmName() string
func (*CliRequest) ProtoMessage ¶
func (*CliRequest) ProtoMessage()
func (*CliRequest) ProtoReflect ¶
func (x *CliRequest) ProtoReflect() protoreflect.Message
func (*CliRequest) Reset ¶
func (x *CliRequest) Reset()
func (*CliRequest) String ¶
func (x *CliRequest) String() string
type HandleCliClient ¶
type HandleCliClient interface {
HandleCliRequest(ctx context.Context, in *CliRequest, opts ...grpc.CallOption) (*ResponseStatus, error)
}
HandleCliClient is the client API for HandleCli service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewHandleCliClient ¶
func NewHandleCliClient(cc grpc.ClientConnInterface) HandleCliClient
type HandleCliServer ¶
type HandleCliServer interface {
HandleCliRequest(context.Context, *CliRequest) (*ResponseStatus, error)
}
HandleCliServer is the server API for HandleCli service.
type ResponseStatus ¶
type ResponseStatus struct { ScriptData string `protobuf:"bytes,1,opt,name=ScriptData,proto3" json:"ScriptData,omitempty"` StatusMsg string `protobuf:"bytes,2,opt,name=StatusMsg,proto3" json:"StatusMsg,omitempty"` Status int32 `protobuf:"varint,3,opt,name=Status,proto3" json:"Status,omitempty"` // contains filtered or unexported fields }
func (*ResponseStatus) Descriptor
deprecated
func (*ResponseStatus) Descriptor() ([]byte, []int)
Deprecated: Use ResponseStatus.ProtoReflect.Descriptor instead.
func (*ResponseStatus) GetScriptData ¶
func (x *ResponseStatus) GetScriptData() string
func (*ResponseStatus) GetStatus ¶
func (x *ResponseStatus) GetStatus() int32
func (*ResponseStatus) GetStatusMsg ¶
func (x *ResponseStatus) GetStatusMsg() string
func (*ResponseStatus) ProtoMessage ¶
func (*ResponseStatus) ProtoMessage()
func (*ResponseStatus) ProtoReflect ¶
func (x *ResponseStatus) ProtoReflect() protoreflect.Message
func (*ResponseStatus) Reset ¶
func (x *ResponseStatus) Reset()
func (*ResponseStatus) String ¶
func (x *ResponseStatus) String() string
type UnimplementedHandleCliServer ¶
type UnimplementedHandleCliServer struct { }
UnimplementedHandleCliServer can be embedded to have forward compatible implementations.
func (*UnimplementedHandleCliServer) HandleCliRequest ¶
func (*UnimplementedHandleCliServer) HandleCliRequest(context.Context, *CliRequest) (*ResponseStatus, error)
Click to show internal directories.
Click to hide internal directories.