command

package
v0.0.0-...-3faa176 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Access

func Access(fr ForwardingRoutable, router *routertwo.Router) *cobra.Command

Access returns a *cobra.Command which tells the user how to access services

func Autossh

func Autossh(d Forwarding) *cobra.Command

Autossh returns a *cobra.Command which generates an autossh snippit

func Close

func Close(c io.Closer) *cobra.Command

Close returns a *cobra.Command which closes the session

func Firsttime

func Firsttime() *cobra.Command

Firsttime returns a *cobra.Command which tells the user about what remotemoe tries to solve

func Forwards

func Forwards(d Forwarding) *cobra.Command

Forwards returns a *cobra.Command which tells the user about currently forwarded ports

func Host

func Host(r routertwo.Routable, router *routertwo.Router) *cobra.Command

Host returns a *cobra.Command that enables the user to mange custom hosts

func Session

func Session(d Forwarding) *cobra.Command

Session returns a command that tells the user information about the current session

func Unitfile

func Unitfile(d Forwarding) *cobra.Command

Unitfile returns a cobra.Command that generates a systemd unit file based on the current session

func Version

func Version() *cobra.Command

Version reports buildvars and maybe a future version number

func Whoami

func Whoami(r routertwo.Routable) *cobra.Command

Whoami tells the user their FQDN

Types

type Forwarding

type Forwarding interface {
	Forwards() map[uint32]struct{}
}

Forwarding are things that forwards ports

type ForwardingRoutable

type ForwardingRoutable interface {
	routertwo.Routable
	Forwarding
}

ForwardingRoutable is an interface for things that are routable and provides forwards

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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