api

package
v0.0.0-...-23b360f Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

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.

Jump to

Keyboard shortcuts

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