Documentation
¶
Index ¶
- Variables
- func RegisterMainServer(s grpc.ServiceRegistrar, srv MainServer)
- type AdditionalInfo
- type IsTerminal
- func (*IsTerminal) Descriptor() ([]byte, []int)deprecated
- func (x *IsTerminal) GetStderr() bool
- func (x *IsTerminal) GetStdin() bool
- func (x *IsTerminal) GetStdout() bool
- func (*IsTerminal) ProtoMessage()
- func (x *IsTerminal) ProtoReflect() protoreflect.Message
- func (x *IsTerminal) Reset()
- func (x *IsTerminal) String() string
- type MainClient
- type MainServer
- type RunCommandRequest
- func (*RunCommandRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RunCommandRequest) GetAdditionalInfo() *AdditionalInfo
- func (x *RunCommandRequest) GetArgs() []string
- func (*RunCommandRequest) ProtoMessage()
- func (x *RunCommandRequest) ProtoReflect() protoreflect.Message
- func (x *RunCommandRequest) Reset()
- func (x *RunCommandRequest) String() string
- type RunCommandResponse
- type UnimplementedMainServer
- type UnsafeMainServer
Constants ¶
This section is empty.
Variables ¶
var File_pkg_plugins_proto_main_proto protoreflect.FileDescriptor
var Main_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.Main", HandlerType: (*MainServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "RunCommand", Handler: _Main_RunCommand_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/plugins/proto/main.proto", }
Main_ServiceDesc is the grpc.ServiceDesc for Main service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMainServer ¶
func RegisterMainServer(s grpc.ServiceRegistrar, srv MainServer)
Types ¶
type AdditionalInfo ¶
type AdditionalInfo struct { IsTerminal *IsTerminal `protobuf:"bytes,1,opt,name=is_terminal,json=isTerminal,proto3" json:"is_terminal,omitempty"` // contains filtered or unexported fields }
func (*AdditionalInfo) Descriptor
deprecated
func (*AdditionalInfo) Descriptor() ([]byte, []int)
Deprecated: Use AdditionalInfo.ProtoReflect.Descriptor instead.
func (*AdditionalInfo) GetIsTerminal ¶
func (x *AdditionalInfo) GetIsTerminal() *IsTerminal
func (*AdditionalInfo) ProtoMessage ¶
func (*AdditionalInfo) ProtoMessage()
func (*AdditionalInfo) ProtoReflect ¶
func (x *AdditionalInfo) ProtoReflect() protoreflect.Message
func (*AdditionalInfo) Reset ¶
func (x *AdditionalInfo) Reset()
func (*AdditionalInfo) String ¶
func (x *AdditionalInfo) String() string
type IsTerminal ¶
type IsTerminal struct { Stdin bool `protobuf:"varint,1,opt,name=stdin,proto3" json:"stdin,omitempty"` Stdout bool `protobuf:"varint,2,opt,name=stdout,proto3" json:"stdout,omitempty"` Stderr bool `protobuf:"varint,3,opt,name=stderr,proto3" json:"stderr,omitempty"` // contains filtered or unexported fields }
func (*IsTerminal) Descriptor
deprecated
func (*IsTerminal) Descriptor() ([]byte, []int)
Deprecated: Use IsTerminal.ProtoReflect.Descriptor instead.
func (*IsTerminal) GetStderr ¶
func (x *IsTerminal) GetStderr() bool
func (*IsTerminal) GetStdin ¶
func (x *IsTerminal) GetStdin() bool
func (*IsTerminal) GetStdout ¶
func (x *IsTerminal) GetStdout() bool
func (*IsTerminal) ProtoMessage ¶
func (*IsTerminal) ProtoMessage()
func (*IsTerminal) ProtoReflect ¶
func (x *IsTerminal) ProtoReflect() protoreflect.Message
func (*IsTerminal) Reset ¶
func (x *IsTerminal) Reset()
func (*IsTerminal) String ¶
func (x *IsTerminal) String() string
type MainClient ¶
type MainClient interface {
RunCommand(ctx context.Context, in *RunCommandRequest, opts ...grpc.CallOption) (*RunCommandResponse, error)
}
MainClient is the client API for Main service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkgo.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewMainClient ¶
func NewMainClient(cc grpc.ClientConnInterface) MainClient
type MainServer ¶
type MainServer interface { RunCommand(context.Context, *RunCommandRequest) (*RunCommandResponse, error) // contains filtered or unexported methods }
MainServer is the server API for Main service. All implementations must embed UnimplementedMainServer for forward compatibility
type RunCommandRequest ¶
type RunCommandRequest struct { AdditionalInfo *AdditionalInfo `protobuf:"bytes,1,opt,name=additional_info,json=additionalInfo,proto3" json:"additional_info,omitempty"` Args []string `protobuf:"bytes,2,rep,name=args,proto3" json:"args,omitempty"` // contains filtered or unexported fields }
func (*RunCommandRequest) Descriptor
deprecated
func (*RunCommandRequest) Descriptor() ([]byte, []int)
Deprecated: Use RunCommandRequest.ProtoReflect.Descriptor instead.
func (*RunCommandRequest) GetAdditionalInfo ¶
func (x *RunCommandRequest) GetAdditionalInfo() *AdditionalInfo
func (*RunCommandRequest) GetArgs ¶
func (x *RunCommandRequest) GetArgs() []string
func (*RunCommandRequest) ProtoMessage ¶
func (*RunCommandRequest) ProtoMessage()
func (*RunCommandRequest) ProtoReflect ¶
func (x *RunCommandRequest) ProtoReflect() protoreflect.Message
func (*RunCommandRequest) Reset ¶
func (x *RunCommandRequest) Reset()
func (*RunCommandRequest) String ¶
func (x *RunCommandRequest) String() string
type RunCommandResponse ¶
type RunCommandResponse struct {
// contains filtered or unexported fields
}
func (*RunCommandResponse) Descriptor
deprecated
func (*RunCommandResponse) Descriptor() ([]byte, []int)
Deprecated: Use RunCommandResponse.ProtoReflect.Descriptor instead.
func (*RunCommandResponse) ProtoMessage ¶
func (*RunCommandResponse) ProtoMessage()
func (*RunCommandResponse) ProtoReflect ¶
func (x *RunCommandResponse) ProtoReflect() protoreflect.Message
func (*RunCommandResponse) Reset ¶
func (x *RunCommandResponse) Reset()
func (*RunCommandResponse) String ¶
func (x *RunCommandResponse) String() string
type UnimplementedMainServer ¶
type UnimplementedMainServer struct { }
UnimplementedMainServer must be embedded to have forward compatible implementations.
func (UnimplementedMainServer) RunCommand ¶
func (UnimplementedMainServer) RunCommand(context.Context, *RunCommandRequest) (*RunCommandResponse, error)
type UnsafeMainServer ¶
type UnsafeMainServer interface {
// contains filtered or unexported methods
}
UnsafeMainServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MainServer will result in compilation errors.