locator

package
v0.0.0-...-d8cb705 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller interface {
	// Load will load all saved Locators from blueprint and create background connections to them.
	// Meant to be called at service startup.
	Load()
	// AddLocator will start a background connection to the given Locator and will serve up connection
	// information to locate requests from that Locator on all interfaces. The Locator connection
	// can be killed by calling RemoveLocator or RemoveAll
	AddLocator(ctx context.Context, locatorAddress string) (locator *sv1.Locator, err error)
	// RemoveLocator will remove a background Locator connection that was started through Load or
	// AddLocator and will delete it from blueprint.
	RemoveLocator(ctx context.Context, locatorAddress string) error
	// Disable will remove all background Locator connections and delete them from blueprint.
	Disable(ctx context.Context) error
}

func NewController

func NewController(logger chassis.Logger) Controller

type WireGuardConfig

type WireGuardConfig struct {
	Id         string
	PrivateKey wgtypes.Key
	PublicKey  wgtypes.Key
	Peers      []wgtypes.Key
}

Jump to

Keyboard shortcuts

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