Discover Packages
github.com/odinuge/kubernetes
pkg
client
unversioned
remotecommand
package
Version:
v1.1.0-beta
Opens a new window with list of versions in this module.
Published: Sep 25, 2015
License: Apache-2.0
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation Source Files Overview Index Constants Variables Functions Types type Attach type Executor type Streamer NewAttach(req, config, stdin, stdout, stderr, tty) (e) Execute() New(req, config, command, stdin, stdout, stderr, tty) (e) Execute()
Documentation
¶
Package remotecommand adds support for executing commands in containers,
with support for separate stdin, stdout, and stderr streams, as well as
TTY.
type Attach struct {
Streamer
}
func NewAttach (req *client.Request, config *client.Config, stdin io.Reader, stdout, stderr io.Writer, tty bool ) *Attach
NewAttach creates a new RemoteAttach
func (e *Attach) Execute() error
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 struct {
Streamer
}
Executor executes a command on a pod container
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 (e *Executor) Execute() error
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.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.