Documentation ¶
Index ¶
- Variables
- type Daemon
- func (d *Daemon) CleanUp() error
- func (d *Daemon) Connect(ctx context.Context, endpointName string) error
- func (d *Daemon) DNSEntries() []dnsallocator.DNSEntry
- func (d *Daemon) Disconnect(endpoint string) error
- func (d *Daemon) Exit()
- func (d *Daemon) GetConfig() *config.Config
- func (d *Daemon) GetStatus() Status
- func (d *Daemon) StartService(ctx context.Context, endpoint string, svc string) error
- func (d *Daemon) StopService(endpoint string, svc string) error
- type OperationalBridge
- type OperationalEndPoint
- type Opts
- type Status
- type StatusBridges
- type StatusEndPoints
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEndpointAlreadyConnected = fmt.Errorf("endpoint already connect") ErrEndpointNotConnected = fmt.Errorf("endpoint not connect") ErrBridgeNotFound = fmt.Errorf("bridge not found") ErrBridgeAlreadyConnected = fmt.Errorf("bridge already connected") ErrBridgeDirectionInvalid = fmt.Errorf("bridge direction invalid") )
Functions ¶
This section is empty.
Types ¶
type Daemon ¶
type Daemon struct {
// contains filtered or unexported fields
}
func New ¶
func New(cfg *config.Config, nw *networkallocator.NetworkAllocator, opts ...Opts) *Daemon
func (*Daemon) DNSEntries ¶
func (d *Daemon) DNSEntries() []dnsallocator.DNSEntry
func (*Daemon) Disconnect ¶
func (*Daemon) StartService ¶
type OperationalBridge ¶
type OperationalEndPoint ¶
type OperationalEndPoint struct {
// contains filtered or unexported fields
}
func NewOperationalEndPoint ¶
func NewOperationalEndPoint() *OperationalEndPoint
type Status ¶
type Status struct {
Endpoints []StatusEndPoints `json:"endpoints"`
}
type StatusBridges ¶
type StatusEndPoints ¶
type StatusEndPoints struct { config.Endpoint Status string `json:"status"` Bridges []StatusBridges `json:"bridges"` }
Click to show internal directories.
Click to hide internal directories.