ssh

package
v2.49.2 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_ssh_ssh_server_host_service_v1_proto protoreflect.FileDescriptor
View Source
var SshServerHost_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "Codespaces.Grpc.SshServerHostService.v1.SshServerHost",
	HandlerType: (*SshServerHostServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "StartRemoteServerAsync",
			Handler:    _SshServerHost_StartRemoteServerAsync_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "ssh/ssh_server_host_service.v1.proto",
}

SshServerHost_ServiceDesc is the grpc.ServiceDesc for SshServerHost service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterSshServerHostServer

func RegisterSshServerHostServer(s grpc.ServiceRegistrar, srv SshServerHostServer)

Types

type SshServerHostClient

type SshServerHostClient interface {
	StartRemoteServerAsync(ctx context.Context, in *StartRemoteServerRequest, opts ...grpc.CallOption) (*StartRemoteServerResponse, error)
}

SshServerHostClient is the client API for SshServerHost 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.

type SshServerHostServer

type SshServerHostServer interface {
	StartRemoteServerAsync(context.Context, *StartRemoteServerRequest) (*StartRemoteServerResponse, error)
	// contains filtered or unexported methods
}

SshServerHostServer is the server API for SshServerHost service. All implementations must embed UnimplementedSshServerHostServer for forward compatibility

type SshServerHostServerMock added in v2.22.1

type SshServerHostServerMock struct {
	// StartRemoteServerAsyncFunc mocks the StartRemoteServerAsync method.
	StartRemoteServerAsyncFunc func(contextMoqParam context.Context, startRemoteServerRequest *StartRemoteServerRequest) (*StartRemoteServerResponse, error)
	// contains filtered or unexported fields
}

SshServerHostServerMock is a mock implementation of SshServerHostServer.

func TestSomethingThatUsesSshServerHostServer(t *testing.T) {

	// make and configure a mocked SshServerHostServer
	mockedSshServerHostServer := &SshServerHostServerMock{
		StartRemoteServerAsyncFunc: func(contextMoqParam context.Context, startRemoteServerRequest *StartRemoteServerRequest) (*StartRemoteServerResponse, error) {
			panic("mock out the StartRemoteServerAsync method")
		},
		mustEmbedUnimplementedSshServerHostServerFunc: func()  {
			panic("mock out the mustEmbedUnimplementedSshServerHostServer method")
		},
	}

	// use mockedSshServerHostServer in code that requires SshServerHostServer
	// and then make assertions.

}

func (*SshServerHostServerMock) StartRemoteServerAsync added in v2.22.1

func (mock *SshServerHostServerMock) StartRemoteServerAsync(contextMoqParam context.Context, startRemoteServerRequest *StartRemoteServerRequest) (*StartRemoteServerResponse, error)

StartRemoteServerAsync calls StartRemoteServerAsyncFunc.

func (*SshServerHostServerMock) StartRemoteServerAsyncCalls added in v2.22.1

func (mock *SshServerHostServerMock) StartRemoteServerAsyncCalls() []struct {
	ContextMoqParam          context.Context
	StartRemoteServerRequest *StartRemoteServerRequest
}

StartRemoteServerAsyncCalls gets all the calls that were made to StartRemoteServerAsync. Check the length with:

len(mockedSshServerHostServer.StartRemoteServerAsyncCalls())

type StartRemoteServerRequest

type StartRemoteServerRequest struct {
	UserPublicKey string `protobuf:"bytes,1,opt,name=UserPublicKey,proto3" json:"UserPublicKey,omitempty"`
	// contains filtered or unexported fields
}

func (*StartRemoteServerRequest) Descriptor deprecated

func (*StartRemoteServerRequest) Descriptor() ([]byte, []int)

Deprecated: Use StartRemoteServerRequest.ProtoReflect.Descriptor instead.

func (*StartRemoteServerRequest) GetUserPublicKey

func (x *StartRemoteServerRequest) GetUserPublicKey() string

func (*StartRemoteServerRequest) ProtoMessage

func (*StartRemoteServerRequest) ProtoMessage()

func (*StartRemoteServerRequest) ProtoReflect

func (x *StartRemoteServerRequest) ProtoReflect() protoreflect.Message

func (*StartRemoteServerRequest) Reset

func (x *StartRemoteServerRequest) Reset()

func (*StartRemoteServerRequest) String

func (x *StartRemoteServerRequest) String() string

type StartRemoteServerResponse

type StartRemoteServerResponse struct {
	Result     bool   `protobuf:"varint,1,opt,name=Result,proto3" json:"Result,omitempty"`
	ServerPort string `protobuf:"bytes,2,opt,name=ServerPort,proto3" json:"ServerPort,omitempty"`
	User       string `protobuf:"bytes,3,opt,name=User,proto3" json:"User,omitempty"`
	Message    string `protobuf:"bytes,4,opt,name=Message,proto3" json:"Message,omitempty"`
	// contains filtered or unexported fields
}

func (*StartRemoteServerResponse) Descriptor deprecated

func (*StartRemoteServerResponse) Descriptor() ([]byte, []int)

Deprecated: Use StartRemoteServerResponse.ProtoReflect.Descriptor instead.

func (*StartRemoteServerResponse) GetMessage

func (x *StartRemoteServerResponse) GetMessage() string

func (*StartRemoteServerResponse) GetResult

func (x *StartRemoteServerResponse) GetResult() bool

func (*StartRemoteServerResponse) GetServerPort

func (x *StartRemoteServerResponse) GetServerPort() string

func (*StartRemoteServerResponse) GetUser

func (x *StartRemoteServerResponse) GetUser() string

func (*StartRemoteServerResponse) ProtoMessage

func (*StartRemoteServerResponse) ProtoMessage()

func (*StartRemoteServerResponse) ProtoReflect

func (*StartRemoteServerResponse) Reset

func (x *StartRemoteServerResponse) Reset()

func (*StartRemoteServerResponse) String

func (x *StartRemoteServerResponse) String() string

type UnimplementedSshServerHostServer

type UnimplementedSshServerHostServer struct {
}

UnimplementedSshServerHostServer must be embedded to have forward compatible implementations.

func (UnimplementedSshServerHostServer) StartRemoteServerAsync

type UnsafeSshServerHostServer

type UnsafeSshServerHostServer interface {
	// contains filtered or unexported methods
}

UnsafeSshServerHostServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SshServerHostServer will result in compilation errors.

Jump to

Keyboard shortcuts

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