Documentation ¶
Index ¶
- func ForwardDirectory(exposeDirectoryConfig lm.ExposeDirectoryConfig, ...) error
- func ForwardDirectoryViaWebdav(exposeWebdavConfig lm.ExposeWebdavConfig, publicKeyAuthMethod ssh.AuthMethod, ...) error
- func ForwardPort(exposeHTTPConfig lm.ExposeHTTPConfig, publicKeyAuthMethod ssh.AuthMethod, ...) error
- func RegisterTunnel(remoteConfig *lm.RemoteEndpointSpecs) (ssh.AuthMethod, error)
- type TunnelType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForwardDirectory ¶
func ForwardDirectory(exposeDirectoryConfig lm.ExposeDirectoryConfig, publicKeyAuthMethod ssh.AuthMethod, quitChannel <-chan bool) error
ForwardDirectory is used to expose local directory via HTTP (download only)
func ForwardDirectoryViaWebdav ¶
func ForwardDirectoryViaWebdav(exposeWebdavConfig lm.ExposeWebdavConfig, publicKeyAuthMethod ssh.AuthMethod, quitChannel <-chan bool) error
ForwardDirectoryViaWebdav is used to expose local directory via Webdav (upload and download)
func ForwardPort ¶
func ForwardPort(exposeHTTPConfig lm.ExposeHTTPConfig, publicKeyAuthMethod ssh.AuthMethod, quitChannel <-chan bool) error
ForwardPort is used to forward external URL to locally available port
func RegisterTunnel ¶
func RegisterTunnel(remoteConfig *lm.RemoteEndpointSpecs) (ssh.AuthMethod, error)
RegisterTunnel is used to register tunnel in loophole API and grant user access to connect to it
Types ¶
type TunnelType ¶
type TunnelType string
TunnelType is used to define supported tunnel types
const ( // HTTP specifies HTTP tunnel type HTTP TunnelType = "Tunnel_HTTP" // Directory specifies local directory tunnel type (download only) Directory TunnelType = "Tunnel_Directory" // WebDav specifies local directory tunnel type (download+upload via WebDav) WebDav TunnelType = "Tunnel_WebDav" )
Click to show internal directories.
Click to hide internal directories.