agent

package
v0.3.11 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: MPL-2.0 Imports: 28 Imported by: 1

Documentation

Overview

Package agent provides the main entrypoint for the agent.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, cfg Config, peerHandler wireguard.PeerHandler, logger *zap.Logger) error

Run runs the agent. wireguard.PeerHandler can be nil.

Types

type Config

type Config struct {
	WireguardEndpoint string      // WireguardEndpoint is the endpoint for the Wireguard server.
	APIEndpoint       string      // APIEndpoint is the gRPC endpoint for the SideroLink API.
	APITLSConfig      *tls.Config // APITLSConfig is the TLS configuration for the SideroLink API (if nil, served over plain TCP).
	JoinToken         string      // JoinToken is the join token for the SideroLink API.
	SinkEndpoint      string      // SinkEndpoint is the gRPC endpoint for the event sink.
	LogEndpoint       string      // LogEndpoint is the TCP log receiver endpoint.
	UUIDIPv6Pairs     []string    // UUIDIPv6Pairs is a list of UUIDs=IPv6 addrs for the nodes.
	ForceUserspace    bool        // ForceUserspace forces the usage of the userspace UDP device for Wireguard.
}

Config is the configuration for the agent.

Jump to

Keyboard shortcuts

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