controller

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AgentCounter = 0
View Source
var ListenerCounter = 0

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 {
	Id        int
	Name      string
	Network   []protocol.NetInterface
	Session   *yamux.Session
	CloseChan chan bool
	Interface string
	Running   bool
}

func NewAgent

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

func (*LigoloAgent) String

func (la *LigoloAgent) String() string

type Listener

type Listener struct {
	Agent        LigoloAgent
	Network      string
	ListenerAddr string
	RedirectAddr string

	Session    net.Conn
	ListenerID int32
}

func (Listener) String

func (l Listener) String() string

Jump to

Keyboard shortcuts

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