pretty

package
v0.0.0-...-fb1162f Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ini

func Ini(iniFile *ini.File, peers ...Peer) error

func Yaml

func Yaml(w io.Writer, peers ...wgtypes.Peer) error

Types

type Peer

type Peer struct {
	PublicKey  string `yaml:"PublicKey,omitempty"`
	AllowedIPs string `yaml:"AllowedIPs,omitempty"`
	Endpoint   string `yaml:"Endpoint,omitempty"`
}

func New

func New(p wgtypes.Peer) Peer

func (Peer) ToConfig

func (p Peer) ToConfig() (wgtypes.PeerConfig, error)

Jump to

Keyboard shortcuts

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