helpers

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2022 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ArtifactsPath = "default/"

ArtifactsPath is a path to artifacts output directory (set during the build).

Functions

func ArtifactPath

func ArtifactPath(name string) string

ArtifactPath returns path to the artifact by name.

func DefaultImage

func DefaultImage(image string) string

DefaultImage appends default image version.

Types

type WireguardConfigBundle added in v0.9.0

type WireguardConfigBundle struct {
	// contains filtered or unexported fields
}

WireguardConfigBundle allows assembling wireguard network configuration with first controlplane being listen node.

func NewWireguardConfigBundle added in v0.9.0

func NewWireguardConfigBundle(ips []net.IP, wireguardCidr string, listenPort, mastersCount int) (*WireguardConfigBundle, error)

NewWireguardConfigBundle creates a new Wireguard config bundle.

func (*WireguardConfigBundle) PatchConfig added in v0.9.0

PatchConfig generates config patch for a node and patches the configuration data.

Jump to

Keyboard shortcuts

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