Documentation
¶
Index ¶
- Constants
- func EnsureNodeKeysLocal(ctx context.Context, verbose bool) (string, error)
- func EnsureWireGuardTools(client *ssh.Client, verbose bool) error
- func EnsureWireGuardToolsLocal(ctx context.Context, verbose bool) error
- func EnsureWireGuardToolsWithOutput(client *ssh.Client, verbose bool, out io.Writer) error
- func RenderConfigTemplate(node Node, peers []Node, config WireGuardConfig) (string, error)
- func ValidateInterfaceName(value string) (string, error)
- type Node
- type Status
- type WireGuardConfig
Constants ¶
View Source
const (
KeyDir = "/etc/tako/wireguard"
)
Variables ¶
This section is empty.
Functions ¶
func EnsureNodeKeysLocal ¶
func EnsureWireGuardToolsWithOutput ¶ added in v0.8.0
EnsureWireGuardToolsWithOutput installs WireGuard tooling, writing progress prose to out (os.Stdout when nil) so machine modes can redirect it.
func RenderConfigTemplate ¶
func RenderConfigTemplate(node Node, peers []Node, config WireGuardConfig) (string, error)
func ValidateInterfaceName ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.