kubernetes: github.com/davidpelaez/kubernetes/pkg/client/remotecommand Index | Files

package remotecommand

import "github.com/davidpelaez/kubernetes/pkg/client/remotecommand"

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

Index

Package Files

doc.go remotecommand.go

type Executor Uses

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

Executor executes a command on a pod container

func New Uses

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 Uses

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.

Package remotecommand imports 10 packages (graph). Updated 2017-07-14. Refresh now. Tools for package owners. This is a dead-end fork (no commits since the fork).