Documentation ¶
Index ¶
- Variables
- type Device
- func (d *Device) GetDevice(ctx context.Context, name string, filterPublicKeys []string) (*wgtypes.Device, error)
- func (d *Device) GetDevices(ctx context.Context, filterPublicKeys []string) ([]*wgtypes.Device, error)
- func (d *Device) UpdatePrivateKey(ctx context.Context, name string, privateKey string) error
- type Peer
- func (p *Peer) DeletePeers(ctx context.Context, deviceName string, publicKeys []string) error
- func (p *Peer) GetPeers(ctx context.Context, deviceName string, filterPublicKeys []string) ([]wgtypes.Peer, error)
- func (p *Peer) RegisterPeers(ctx context.Context, deviceName string, peers []wgtypes.Peer) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDeviceNotFound = errors.New("device not found")
View Source
var ErrInvalidPrivateKey = errors.New("invalid private key")
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct {
// contains filtered or unexported fields
}
func (*Device) GetDevices ¶
Click to show internal directories.
Click to hide internal directories.