rsh

package
v4.0.0-alpha.0+incompa... Latest Latest
Warning

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

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

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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