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 ¶
ArtifactPath returns path to the artifact by name.
func DefaultImage ¶
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 ¶
func (w *WireguardConfigBundle) PatchConfig(ip fmt.Stringer, cfg config.Provider) (config.Provider, error)
PatchConfig generates config patch for a node and patches the configuration data.
Click to show internal directories.
Click to hide internal directories.