pty

package
v0.0.0-...-6f50dc0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Fill in spaces when less than 60 characters
	DisplayLengthPod       = 60
	DisplayLengthNameSpace = 20
)

Variables

This section is empty.

Functions

func Remotepty

func Remotepty(client kubernetes.Interface, config *restclient.Config, namespace string, podName string,
	command string, container string, stdin io.Reader, stdout io.Writer, stderr io.Writer) error

func SetColorBlue

func SetColorBlue(msg string) string

func SetColorGreen

func SetColorGreen(msg string) string

func SetColorRed

func SetColorRed(msg string) string

func SetColorYellow

func SetColorYellow(msg string) string

Types

type PtyTerminal

type PtyTerminal struct {
	Handler  ssh.Session
	Terminal *terminal.Terminal
	User     string
	// contains filtered or unexported fields
}

func NewPtyTerminal

func NewPtyTerminal(s ssh.Session) *PtyTerminal

func (*PtyTerminal) DisplayAllPod

func (p *PtyTerminal) DisplayAllPod()

func (*PtyTerminal) DisplayNameSpace

func (p *PtyTerminal) DisplayNameSpace() ([]string, error)

func (*PtyTerminal) DisplayNamespacePod

func (p *PtyTerminal) DisplayNamespacePod()

func (*PtyTerminal) DisplayPod

func (p *PtyTerminal) DisplayPod()

func (*PtyTerminal) MainInterface

func (p *PtyTerminal) MainInterface()

func (*PtyTerminal) Start

func (p *PtyTerminal) Start()

func (*PtyTerminal) WelcomePage

func (p *PtyTerminal) WelcomePage()

Jump to

Keyboard shortcuts

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