{"modulePath":"github.com/evilsocket/shellz","version":"v1.6.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package session\n\n## Constants\n\n```go\nconst (\n\tSSHAgentKey = \"@agent\"\n\tSSHAuthSock = \"SSH_AUTH_SOCK\"\n)\n```\n\n## Types\n\n```go\ntype Handler func(sh models.Shell, timeouts core.Timeouts) (error, Session)\n```\n\n```go\ntype KubeSession struct {\n\tsync.Mutex\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (k *KubeSession) Close()\n```\n\n```go\nfunc (k *KubeSession) Exec(cmd string) ([]byte, error)\n```\n\n```go\nfunc (k *KubeSession) Type() string\n```\n\n```go\ntype SSHSession struct {\n\tsync.Mutex\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (s *SSHSession) Close()\n```\n\n```go\nfunc (s *SSHSession) Exec(cmd string) ([]byte, error)\n```\n\n```go\nfunc (s *SSHSession) Type() string\n```\n\n```go\ntype SSHTun struct {\n\t*SSHSession\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (t *SSHTun) Close()\n```\n\n```go\nfunc (t *SSHTun) Type() string\n```\n\n```go\ntype Session interface {\n\tType() string\n\tExec(cmd string) ([]byte, error)\n\tClose()\n}\n```\n\n```go\nfunc For(sh models.Shell, timeouts core.Timeouts) (error, Session)\n```\n\n```go\nfunc NewKube(sh models.Shell, timeouts core.Timeouts) (error, Session)\n```\n\n```go\nfunc NewSSH(sh models.Shell, timeouts core.Timeouts) (error, Session)\n```\n\n```go\nfunc NewSSHTun(sh models.Shell, timeouts core.Timeouts) (error, Session)\n```\n\n```go\nfunc NewTelnet(sh models.Shell, timeouts core.Timeouts) (error, Session)\n```\n\n```go\nfunc NewWinRM(sh models.Shell, timeouts core.Timeouts) (error, Session)\n```\n\n```go\ntype TelnetSession struct {\n\tsync.Mutex\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (t *TelnetSession) Close()\n```\n\n```go\nfunc (t *TelnetSession) Exec(cmd string) ([]byte, error)\n```\n\n```go\nfunc (t *TelnetSession) Type() string\n```\n\n```go\ntype WinRMSession struct {\n\tsync.Mutex\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (w *WinRMSession) Close()\n```\n\n```go\nfunc (w *WinRMSession) Exec(cmd string) ([]byte, error)\n```\n\n```go\nfunc (w *WinRMSession) Type() string\n```\n\n","path":"github.com/evilsocket/shellz/session","name":"session","synopsis":"","isRedistributable":true}
