Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteCommand ¶
ExecuteCommand runs the command in an SSH Tunnel and returns the result. It uses two PipeBridges: sshBridge connects the helper (agent inject) to the SSH tunnel, and grpcBridge connects the SSH command to the gRPC server.
Types ¶
type AgentInjectFunc ¶
type ExecuteCommandOptions ¶
type ExecuteCommandOptions struct {
Client client2.WorkspaceClient
AddPrivateKeys bool
AgentInject AgentInjectFunc
SSHCommand string
Command string
TunnelServerFunc TunnelServerFunc
}
type TunnelLogStreamer ¶
type TunnelLogStreamer struct {
// contains filtered or unexported fields
}
func NewTunnelLogStreamer ¶
func NewTunnelLogStreamer() *TunnelLogStreamer
func (*TunnelLogStreamer) Close ¶
func (l *TunnelLogStreamer) Close() error
func (*TunnelLogStreamer) ErrorOutput ¶
func (l *TunnelLogStreamer) ErrorOutput() string
Click to show internal directories.
Click to hide internal directories.