loophole

package
v0.0.0-...-06767ef Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

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"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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