Documentation ¶
Index ¶
- Constants
- Variables
- func AsciiBox(lines []string, padding int) (box []string)
- func Commands() []*cli.Command
- func Flags() []cli.Flag
- func Init(info *cliutil.BuildInfo, gracefulShutdown chan struct{})
- func NewTagFromCLI(compoundTag string) (tunnelpogs.Tag, bool)
- func NewTagSliceFromCLI(tags []string) ([]tunnelpogs.Tag, error)
- func ParseToken(tokenStr string) (*connection.TunnelToken, error)
- func RunQuickTunnel(sc *subcommandContext) error
- func StartServer(c *cli.Context, info *cliutil.BuildInfo, ...) error
- func TunnelCommand(c *cli.Context) error
- type CredFinder
- type Info
- type QuickTunnel
- type QuickTunnelError
- type QuickTunnelResponse
Constants ¶
View Source
const ( LogFieldCommand = "command" LogFieldExpandedPath = "expandedPath" LogFieldPIDPathname = "pidPathname" LogFieldTmpTraceFilename = "tmpTraceFilename" LogFieldTraceOutputFilepath = "traceOutputFilepath" )
View Source
const ( CredFileFlagAlias = "cred-file" CredFileFlag = "credentials-file" CredContentsFlag = "credentials-contents" TunnelTokenFlag = "token" LogFieldTunnelID = "tunnelID" )
Variables ¶
View Source
var FipsEnabled bool
Functions ¶
func NewTagFromCLI ¶
func NewTagFromCLI(compoundTag string) (tunnelpogs.Tag, bool)
func NewTagSliceFromCLI ¶
func NewTagSliceFromCLI(tags []string) ([]tunnelpogs.Tag, error)
func ParseToken ¶
func ParseToken(tokenStr string) (*connection.TunnelToken, error)
func RunQuickTunnel ¶
func RunQuickTunnel(sc *subcommandContext) error
RunQuickTunnel requests a tunnel from the specified service. We use this to power quick tunnels on trykhulnasoft.com, but the service is open-source and could be used by anyone.
func StartServer ¶
func StartServer( c *cli.Context, info *cliutil.BuildInfo, namedTunnel *connection.NamedTunnelProperties, log *zerolog.Logger, ) error
func TunnelCommand ¶
func TunnelCommand(c *cli.Context) error
Types ¶
type CredFinder ¶
CredFinder can find the tunnel credentials file.
type QuickTunnel ¶
type QuickTunnelError ¶
type QuickTunnelResponse ¶
type QuickTunnelResponse struct { Success bool Result QuickTunnel Errors []QuickTunnelError }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.