controller

package
v0.7.1-alpha Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	Network    string
	Connection chan net.Conn

	SelfCertCache autocert.DirCache
	SelfCert      *tls.Certificate
	ControllerConfig
	// contains filtered or unexported fields
}

func New

func New(config ControllerConfig) Controller

func (*Controller) ListenAndServe

func (c *Controller) ListenAndServe()

func (*Controller) WaitForReady

func (c *Controller) WaitForReady() error

type ControllerConfig

type ControllerConfig struct {
	EnableAutocert  bool
	EnableSelfcert  bool
	SelfcertDomain  string
	Address         string
	Certfile        string
	Keyfile         string
	DomainWhitelist []string
}

type LigoloAgent

type LigoloAgent struct {
	Name      string
	Network   []protocol.NetInterface
	Session   *yamux.Session
	SessionID string
	CloseChan chan bool
	Interface string
	Running   bool
	Listeners []*proxy.LigoloListener
}

func NewAgent

func NewAgent(session *yamux.Session) (*LigoloAgent, error)

func (*LigoloAgent) AddListener

func (la *LigoloAgent) AddListener(addr string, network string, to string) (*proxy.LigoloListener, error)

func (*LigoloAgent) DeleteListener

func (la *LigoloAgent) DeleteListener(id int)

func (*LigoloAgent) GetListener

func (la *LigoloAgent) GetListener(id int) *proxy.LigoloListener

func (*LigoloAgent) String

func (la *LigoloAgent) String() string

Jump to

Keyboard shortcuts

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