Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Bastion ¶
type Bastion struct { Client *ssh.Client Config *ssh.ClientConfig Host string Port string Path string // contains filtered or unexported fields }
func CreateBastion ¶
type CloseWriteConn ¶ added in v0.4.0
type CloseWriteConn interface { net.Conn CloseWriteStream }
type CloseWriteStream ¶ added in v0.4.0
type CloseWriteStream interface { io.Reader io.WriteCloser CloseWrite() error }
type ConnectCallback ¶
type SSHForward ¶ added in v0.4.0
type SSHForward struct {
// contains filtered or unexported fields
}
func CreateSSHForward ¶ added in v0.4.0
func CreateSSHForwardPassphrase ¶ added in v0.4.0
func (*SSHForward) AcceptAndTunnel ¶ added in v0.4.0
func (forward *SSHForward) AcceptAndTunnel(ctx context.Context) error
func (*SSHForward) Close ¶ added in v0.4.0
func (forward *SSHForward) Close()
func (*SSHForward) Tunnel ¶ added in v0.4.0
func (forward *SSHForward) Tunnel(ctx context.Context) (CloseWriteConn, error)
Click to show internal directories.
Click to hide internal directories.