agents

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	Alias     string
	Name      string
	Hostname  string
	Network   []protocol.NetInterface
	Tun       *tuns.Tun
	Session   *yamux.Session
	CloseChan chan bool
	Listeners *listeners.Listeners
	// contains filtered or unexported fields
}

func (*Agent) DeleteListener

func (agent *Agent) DeleteListener(alias string) error

func (*Agent) Hash

func (agent *Agent) Hash() string

func (*Agent) NewListener

func (agent *Agent) NewListener(network string, listener_addr string, redirect_addr string) (listeners.Listener, error)

func (*Agent) Proto

func (agent *Agent) Proto() *pb.Agent

func (*Agent) RestoreListener

func (agent *Agent) RestoreListener(listenerId int32, network string, listener_addr string, redirect_addr string) (listeners.Listener, error)

func (*Agent) String

func (agent *Agent) String() string

type Agents

type Agents struct {
	EventStream chan events.Event
	// contains filtered or unexported fields
}

func New

func New(storage *storage.Store) *Agents

func (*Agents) Create

func (agents *Agents) Create(config *config.Config, session *yamux.Session) (*Agent, error)

func (*Agents) DeleteListener

func (agents *Agents) DeleteListener(agentAlias string, listenerAlias string) error

func (*Agents) Destroy

func (agents *Agents) Destroy(alias string)

func (*Agents) Len

func (agents *Agents) Len() int

func (*Agents) List

func (agents *Agents) List() map[string]*Agent

I know

func (*Agents) NewListener

func (agents *Agents) NewListener(alias string, network string, from string, to string) error

func (*Agents) Rename added in v1.0.2

func (agents *Agents) Rename(oldAlias, newAlias string) error

func (*Agents) RestoreRelay

func (agents *Agents) RestoreRelay(alias string, tuns *tuns.Tuns) error

func (*Agents) StartRelay

func (agents *Agents) StartRelay(alias string, tun *tuns.Tun) error

func (*Agents) StopRelay

func (agents *Agents) StopRelay(alias string) error

func (*Agents) WaitForConnections

func (agents *Agents) WaitForConnections(config *config.Config, proxyController *proxy.Controller, tuns *tuns.Tuns)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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