Package com.viam.service.shell.v1
Class ShellServiceGrpc.ShellServiceStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<ShellServiceGrpc.ShellServiceStub>
com.viam.service.shell.v1.ShellServiceGrpc.ShellServiceStub
- Enclosing class:
- ShellServiceGrpc
public static final class ShellServiceGrpc.ShellServiceStub
extends io.grpc.stub.AbstractAsyncStub<ShellServiceGrpc.ShellServiceStub>
A stub to allow clients to do asynchronous rpc calls to service ShellService.
A ShellService service allows access to an interactive shell experience, including utilities commonly found in tandem with other secure shells.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>>
-
Method Summary
Modifier and TypeMethodDescriptionprotected ShellServiceGrpc.ShellServiceStub
build
(io.grpc.Channel channel, io.grpc.CallOptions callOptions) io.grpc.stub.StreamObserver<Shell.CopyFilesFromMachineRequest>
copyFilesFromMachine
(io.grpc.stub.StreamObserver<Shell.CopyFilesFromMachineResponse> responseObserver) CopyFilesFromMachine copies a stream of files from a connected-to machine to the calling client.io.grpc.stub.StreamObserver<Shell.CopyFilesToMachineRequest>
copyFilesToMachine
(io.grpc.stub.StreamObserver<Shell.CopyFilesToMachineResponse> responseObserver) CopyFilesToMachines copies a stream of files from a client to the connected-to machine.void
doCommand
(Common.DoCommandRequest request, io.grpc.stub.StreamObserver<Common.DoCommandResponse> responseObserver) DoCommand sends/receives arbitrary commandsio.grpc.stub.StreamObserver<Shell.ShellRequest>
shell
(io.grpc.stub.StreamObserver<Shell.ShellResponse> responseObserver) Shell starts a shell with an input and output pipe.Methods inherited from class io.grpc.stub.AbstractAsyncStub
newStub, newStub
Methods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected ShellServiceGrpc.ShellServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
build
in classio.grpc.stub.AbstractStub<ShellServiceGrpc.ShellServiceStub>
-
shell
public io.grpc.stub.StreamObserver<Shell.ShellRequest> shell(io.grpc.stub.StreamObserver<Shell.ShellResponse> responseObserver) Shell starts a shell with an input and output pipe.
-
copyFilesToMachine
public io.grpc.stub.StreamObserver<Shell.CopyFilesToMachineRequest> copyFilesToMachine(io.grpc.stub.StreamObserver<Shell.CopyFilesToMachineResponse> responseObserver) CopyFilesToMachines copies a stream of files from a client to the connected-to machine. Initially, metadata is sent to describe the destination in the filesystem in addition to what kind of file(s) are being sent. Once metadata is sent, the file transfer can proceed where one-by-one, file data is sent until EOF per file. After each file is sent, the machine must respond with an ACK before the next file can be sent. This provides back-pressure and ordering. The order in which individual files are sent does not matter; that is, if traversing a directory, copying depth-first, breadth-first, or any other algorithm does not matter. Permissions and metadata on files copied are only preserved if the preserve option is set in the initial request metadata.
-
copyFilesFromMachine
public io.grpc.stub.StreamObserver<Shell.CopyFilesFromMachineRequest> copyFilesFromMachine(io.grpc.stub.StreamObserver<Shell.CopyFilesFromMachineResponse> responseObserver) CopyFilesFromMachine copies a stream of files from a connected-to machine to the calling client. Essentially, it is the inverse of CopyFilesToMachine with the same ACK mechanism in reverse. The initial metadata request will request the paths to copy along with if permissions should be preserved (and consequently sent over the wire).
-
doCommand
public void doCommand(Common.DoCommandRequest request, io.grpc.stub.StreamObserver<Common.DoCommandResponse> responseObserver) DoCommand sends/receives arbitrary commands
-