{"modulePath":"github.com/taskcluster/taskcluster-cli","version":"v0.9.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package dockerExecWS\n\nPackage dockerExecWS provides a golang client implementation for the websocket protocol implemented in the npm package \"docker-exec-websocket-server\". This is a websocket protocol for exposing \"docker exec\" to a remote process.\n\n## Constants\n\n```go\nconst (\n\t// MaxOutstandingBytes is the maximum number of unsent bytes in the stdin buffer.\n\tMaxOutstandingBytes = 8 * 1024 * 1024\n)\n```\n\n## Types\n\n```go\ntype ShellClient struct {\n\t// contains filtered or unexported fields\n}\n```\nShellClient is the implementation of github.com/taskcluster/taskcluster-worker/engines.Shell for v1 shells.\n\n```go\nfunc Dial(socketURL string, command []string, tty bool) (*ShellClient, error)\n```\nDial will built a proper shell websocket URL, connect to the server and return an initialized shell client.\n\n```go\nfunc New(ws *websocket.Conn) *ShellClient\n```\nNew creates a new v1 ShellClient from an existing websocket.\n\n```go\nfunc (s *ShellClient) Abort() error\n```\nAbort will forcibly disconnect and terminate the shell client.\n\n```go\nfunc (s *ShellClient) SetSize(columns, rows uint16) error\n```\nSetSize will attempt to set the TTY width (columns) and height (rows) on the remote shell.\n\n```go\nfunc (s *ShellClient) StderrPipe() io.ReadCloser\n```\nStderrPipe returns a pipe from which stderr must be read. It's important to drain this pipe or the shell will block when the internal buffer is full.\n\n```go\nfunc (s *ShellClient) StdinPipe() io.WriteCloser\n```\nStdinPipe returns a pipe to which stdin must be written. It's important to close stdin, if you expect the remote shell to terminate.\n\n```go\nfunc (s *ShellClient) StdoutPipe() io.ReadCloser\n```\nStdoutPipe returns a pipe from which stdout must be read. It's important to drain this pipe or the shell will block when the internal buffer is full.\n\n```go\nfunc (s *ShellClient) Wait() (bool, error)\n```\nWait waits until the shell client exits.\n\n","path":"github.com/taskcluster/taskcluster-cli/pkg/docker-exec-ws","name":"dockerExecWS","synopsis":"Package dockerExecWS provides a golang client implementation for the websocket protocol implemented in the npm package \"docker-exec-websocket-server\".","isRedistributable":true}
