Documentation ¶
Index ¶
- Variables
- func RegisterSshServiceServer(s grpc.ServiceRegistrar, srv SshServiceServer)
- type SshCommand
- func (*SshCommand) Descriptor() ([]byte, []int)deprecated
- func (x *SshCommand) GetCommand() string
- func (x *SshCommand) GetHost() string
- func (x *SshCommand) GetUsername() string
- func (*SshCommand) ProtoMessage()
- func (x *SshCommand) ProtoReflect() protoreflect.Message
- func (x *SshCommand) Reset()
- func (x *SshCommand) String() string
- type SshResponse
- type SshServiceClient
- type SshServiceServer
- type UnimplementedSshServiceServer
- type UnsafeSshServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_ssht_proto protoreflect.FileDescriptor
var SshService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "SshService", HandlerType: (*SshServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "RunCommand", Handler: _SshService_RunCommand_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "ssht.proto", }
SshService_ServiceDesc is the grpc.ServiceDesc for SshService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSshServiceServer ¶
func RegisterSshServiceServer(s grpc.ServiceRegistrar, srv SshServiceServer)
Types ¶
type SshCommand ¶
type SshCommand struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Host string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"` Command string `protobuf:"bytes,5,opt,name=command,proto3" json:"command,omitempty"` // contains filtered or unexported fields }
func (*SshCommand) Descriptor
deprecated
func (*SshCommand) Descriptor() ([]byte, []int)
Deprecated: Use SshCommand.ProtoReflect.Descriptor instead.
func (*SshCommand) GetCommand ¶
func (x *SshCommand) GetCommand() string
func (*SshCommand) GetHost ¶
func (x *SshCommand) GetHost() string
func (*SshCommand) GetUsername ¶
func (x *SshCommand) GetUsername() string
func (*SshCommand) ProtoMessage ¶
func (*SshCommand) ProtoMessage()
func (*SshCommand) ProtoReflect ¶
func (x *SshCommand) ProtoReflect() protoreflect.Message
func (*SshCommand) Reset ¶
func (x *SshCommand) Reset()
func (*SshCommand) String ¶
func (x *SshCommand) String() string
type SshResponse ¶
type SshResponse struct { Response string `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` // contains filtered or unexported fields }
func (*SshResponse) Descriptor
deprecated
func (*SshResponse) Descriptor() ([]byte, []int)
Deprecated: Use SshResponse.ProtoReflect.Descriptor instead.
func (*SshResponse) GetResponse ¶
func (x *SshResponse) GetResponse() string
func (*SshResponse) ProtoMessage ¶
func (*SshResponse) ProtoMessage()
func (*SshResponse) ProtoReflect ¶
func (x *SshResponse) ProtoReflect() protoreflect.Message
func (*SshResponse) Reset ¶
func (x *SshResponse) Reset()
func (*SshResponse) String ¶
func (x *SshResponse) String() string
type SshServiceClient ¶
type SshServiceClient interface {
RunCommand(ctx context.Context, in *SshCommand, opts ...grpc.CallOption) (*SshResponse, error)
}
SshServiceClient is the client API for SshService 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 NewSshServiceClient ¶
func NewSshServiceClient(cc grpc.ClientConnInterface) SshServiceClient
type SshServiceServer ¶
type SshServiceServer interface { RunCommand(context.Context, *SshCommand) (*SshResponse, error) // contains filtered or unexported methods }
SshServiceServer is the server API for SshService service. All implementations must embed UnimplementedSshServiceServer for forward compatibility
type UnimplementedSshServiceServer ¶
type UnimplementedSshServiceServer struct { }
UnimplementedSshServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedSshServiceServer) RunCommand ¶
func (UnimplementedSshServiceServer) RunCommand(context.Context, *SshCommand) (*SshResponse, error)
type UnsafeSshServiceServer ¶
type UnsafeSshServiceServer interface {
// contains filtered or unexported methods
}
UnsafeSshServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SshServiceServer will result in compilation errors.