rsh

package
v4.0.0-0.4.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2018 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RshRecommendedName = "rsh"
	DefaultShell       = "/bin/sh"
)

Variables

This section is empty.

Functions

func NewCmdRsh

func NewCmdRsh(name string, parent string, f kcmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command

NewCmdRsh returns a command that attempts to open a shell session to the server.

Types

type RshOptions

type RshOptions struct {
	ForceTTY   bool
	DisableTTY bool
	Executable string
	Timeout    int
	*kubecmd.ExecOptions
}

RshOptions declare the arguments accepted by the Rsh command

func NewRshOptions

func NewRshOptions(parent string, streams genericclioptions.IOStreams) *RshOptions

func (*RshOptions) Complete

func (o *RshOptions) Complete(f kcmdutil.Factory, cmd *cobra.Command, args []string) error

Complete applies the command environment to RshOptions

func (*RshOptions) Run

func (o *RshOptions) Run() error

Run starts a remote shell session on the server

func (*RshOptions) Validate

func (o *RshOptions) Validate() error

Validate ensures that RshOptions are valid

Jump to

Keyboard shortcuts

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