fake

package
v1.20.2 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2026 License: Apache-2.0 Imports: 3 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 {
	// contains filtered or unexported fields
}

func NewTestAgent

func NewTestAgent(fwc Config) *Agent

func (*Agent) Enabled

func (fwa *Agent) Enabled() bool

func (*Agent) IfaceBufferMargins

func (fwa *Agent) IfaceBufferMargins() (uint16, uint16, error)

Fake IfaceBufferMargins will still query the underlying system for the wireguard device. This will fail if not setup by the caller.

func (*Agent) IfaceIndex

func (fwa *Agent) IfaceIndex() (uint32, error)

Fake IfaceIndex will still query the underlying system for the wireguard device. This will fail if not setup by the caller.

func (*Agent) Status

func (fwa *Agent) Status(withPeers bool) (*models.WireguardStatus, error)

type Config

type Config struct {
	EnableWireguard bool
}

func (Config) Enabled

func (fwc Config) Enabled() bool

Jump to

Keyboard shortcuts

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