Documentation ¶
Index ¶
- Variables
- type WGCtrl
- func (w *WGCtrl) DeletePeers(ctx context.Context, deviceName string, publicKeys []string) error
- func (w *WGCtrl) GetDevices(ctx context.Context, filterPublicKeys []string) ([]*wgtypes.Device, error)
- func (w *WGCtrl) GetSingleDevice(ctx context.Context, name string, filterPublicKeys []string) ([]*wgtypes.Device, error)
- func (w *WGCtrl) RegisterPeers(ctx context.Context, deviceName string, peers []wgtypes.PeerConfig) error
- func (w *WGCtrl) UpdatePrivateKey(ctx context.Context, deviceName string, device *wgtypes.Device, ...) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidPrivateKey = errors.New("invalid private key")
Functions ¶
This section is empty.
Types ¶
type WGCtrl ¶
type WGCtrl struct {
// contains filtered or unexported fields
}
func (*WGCtrl) DeletePeers ¶
FIXME unify with RegisterPeers?
func (*WGCtrl) GetDevices ¶
func (*WGCtrl) GetSingleDevice ¶
func (*WGCtrl) RegisterPeers ¶
Click to show internal directories.
Click to hide internal directories.