controller

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 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 added in v0.7.3

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

func (*LigoloAgent) DeleteListener added in v0.7.3

func (la *LigoloAgent) DeleteListener(id int)

func (*LigoloAgent) GetListener added in v0.7.3

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