client

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authenticate

func Authenticate(ctx context.Context, proxy string, caFile string, insecureSkipVerify bool) error

func DeleteAuthToken

func DeleteAuthToken(proxy string) error

func LoadAuthToken

func LoadAuthToken(proxy string) (string, error)

func PrintListenerInfo

func PrintListenerInfo(ctx context.Context, addr, host, port string) error

func StartClient

func StartClient(ctx context.Context, proxy string, listenPort uint64, target string, caFile string, insecureSkipVerify bool, onConnect OnConnect) error

func StartNC

func StartNC(ctx context.Context, addr, host, port string) error

func StoreAuthToken

func StoreAuthToken(proxy, token string) error

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

type Forwarder

type Forwarder struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewForwarder

func NewForwarder(port uint64, target string, onConnect OnConnect) (*Forwarder, error)

func (*Forwarder) OnTunnelConnect

func (f *Forwarder) OnTunnelConnect(ctx context.Context, session *remotedialer.Session) error

func (*Forwarder) Start

func (f *Forwarder) Start() error

type OnConnect

type OnConnect func(ctx context.Context, addr, ip, port string) error

Jump to

Keyboard shortcuts

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