session

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2021 License: GPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SSHAgentKey = "@agent"
	SSHAuthSock = "SSH_AUTH_SOCK"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler func(sh models.Shell, timeouts core.Timeouts) (error, Session)

type KubeSession added in v1.6.0

type KubeSession struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*KubeSession) Close added in v1.6.0

func (k *KubeSession) Close()

func (*KubeSession) Exec added in v1.6.0

func (k *KubeSession) Exec(cmd string) ([]byte, error)

func (*KubeSession) Type added in v1.6.0

func (k *KubeSession) Type() string

type SSHSession

type SSHSession struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*SSHSession) Close

func (s *SSHSession) Close()

func (*SSHSession) Exec

func (s *SSHSession) Exec(cmd string) ([]byte, error)

func (*SSHSession) Type

func (s *SSHSession) Type() string

type SSHTun

type SSHTun struct {
	*SSHSession
	// contains filtered or unexported fields
}

func (*SSHTun) Close

func (t *SSHTun) Close()

func (*SSHTun) Type

func (t *SSHTun) Type() string

type Session

type Session interface {
	Type() string
	Exec(cmd string) ([]byte, error)
	Close()
}

func For

func For(sh models.Shell, timeouts core.Timeouts) (error, Session)

func NewKube added in v1.6.0

func NewKube(sh models.Shell, timeouts core.Timeouts) (error, Session)

func NewSSH

func NewSSH(sh models.Shell, timeouts core.Timeouts) (error, Session)

func NewSSHTun

func NewSSHTun(sh models.Shell, timeouts core.Timeouts) (error, Session)

func NewTelnet

func NewTelnet(sh models.Shell, timeouts core.Timeouts) (error, Session)

func NewWinRM

func NewWinRM(sh models.Shell, timeouts core.Timeouts) (error, Session)

type TelnetSession

type TelnetSession struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*TelnetSession) Close

func (t *TelnetSession) Close()

func (*TelnetSession) Exec

func (t *TelnetSession) Exec(cmd string) ([]byte, error)

func (*TelnetSession) Type

func (t *TelnetSession) Type() string

type WinRMSession

type WinRMSession struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*WinRMSession) Close

func (w *WinRMSession) Close()

func (*WinRMSession) Exec

func (w *WinRMSession) Exec(cmd string) ([]byte, error)

func (*WinRMSession) Type

func (w *WinRMSession) Type() string

Jump to

Keyboard shortcuts

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