package remotecommand
import "k8s.io/kubernetes/pkg/client/unversioned/remotecommand"
Package remotecommand adds support for executing commands in containers, with support for separate stdin, stdout, and stderr streams, as well as TTY.
Index ¶
- type Attach
- func NewAttach(req *client.Request, config *client.Config, stdin io.Reader, stdout, stderr io.Writer, tty bool) *Attach
- func (e *Attach) Execute() error
- type Executor
- func New(req *client.Request, config *client.Config, command []string, stdin io.Reader, stdout, stderr io.Writer, tty bool) *Executor
- func (e *Executor) Execute() error
- type Streamer
Types ¶
type Attach ¶
type Attach struct { Streamer }
func NewAttach ¶
func NewAttach(req *client.Request, config *client.Config, stdin io.Reader, stdout, stderr io.Writer, tty bool) *Attach
NewAttach creates a new RemoteAttach
func (*Attach) Execute ¶
Execute sends a remote command execution request, upgrading the connection and creating streams to represent stdin/stdout/stderr. Data is copied between these streams and the supplied stdin/stdout/stderr parameters.
type Executor ¶
type Executor struct { Streamer // contains filtered or unexported fields }
Executor executes a command on a pod container
func New ¶
func New(req *client.Request, config *client.Config, command []string, stdin io.Reader, stdout, stderr io.Writer, tty bool) *Executor
New creates a new RemoteCommandExecutor
func (*Executor) Execute ¶
Execute sends a remote command execution request, upgrading the connection and creating streams to represent stdin/stdout/stderr. Data is copied between these streams and the supplied stdin/stdout/stderr parameters.
type Streamer ¶
type Streamer struct {
// contains filtered or unexported fields
}
Source Files ¶
doc.go remotecommand.go
- Version
- v1.1.0-beta
- Published
- Sep 25, 2015
- Platform
- js/wasm
- Imports
- 12 packages
- Last checked
- 9 minutes ago –
Tools for package owners.