helpers

package
v1.6.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package helpers provides helpers for talosctl.

Index

Constants

This section is empty.

Variables

View Source
var ArtifactsPath = gendata.ArtifactsPath

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

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

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

func NewWireguardConfigBundle

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

NewWireguardConfigBundle creates a new Wireguard config bundle.

func (*WireguardConfigBundle) PatchConfig

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