clihandler

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Jump to

Keyboard shortcuts

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