remotecommand

package
v0.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2015 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package remotecommand adds support for executing commands in containers, with support for separate stdin, stdout, and stderr streams, as well as TTY.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RemoteCommandExecutor

type RemoteCommandExecutor struct {
	// contains filtered or unexported fields
}

func New

func New(req *client.Request, config *client.Config, command []string, stdin io.Reader, stdout, stderr io.Writer, tty bool) *RemoteCommandExecutor

func (*RemoteCommandExecutor) Execute

func (e *RemoteCommandExecutor) 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL