Documentation
¶
Index ¶
- Constants
- func AdminClient(socket string) (api.AdminServiceClient, error)
- func AdminSocketFile(sessionID string) string
- func AuthorizedKeys(file string) ([]ssh.PublicKey, error)
- func NewPromptingHostKeyCallback(stdin io.Reader, stdout io.Writer, knownHostsFilename string) (ssh.HostKeyCallback, error)
- func Signers(privateKeys []string) ([]ssh.Signer, func(), error)
- func SignersFromFiles(privateKeys []string) ([]ssh.Signer, error)
- func SignersFromSSHAgent(socket string, privateKeys []string) ([]ssh.Signer, func(), error)
- type Host
Constants ¶
View Source
const (
AdminSockExt = ".sock"
)
Variables ¶
This section is empty.
Functions ¶
func AdminClient ¶
func AdminClient(socket string) (api.AdminServiceClient, error)
func AdminSocketFile ¶
Types ¶
type Host ¶
type Host struct {
Host string
KeepAliveDuration time.Duration
Command []string
ForceCommand []string
Signers []ssh.Signer
HostKeyCallback ssh.HostKeyCallback
AuthorizedKeys []ssh.PublicKey
AdminSocketFile string
SessionCreatedCallback func(*api.GetSessionResponse) error
ClientJoinedCallback func(*api.Client)
ClientLeftCallback func(*api.Client)
Logger log.FieldLogger
Stdin *os.File
Stdout *os.File
ReadOnly bool
}
Click to show internal directories.
Click to hide internal directories.