Documentation ¶
Index ¶
- func IsConnected(lastHandshake time.Time) bool
- type DeviceManager
- func (d *DeviceManager) AddDevice(identity *authsession.Identity, name string, publicKey string) (*storage.Device, error)
- func (d *DeviceManager) DeleteDevice(user string, name string) error
- func (d *DeviceManager) GetByPublicKey(publicKey string) (*storage.Device, error)
- func (d *DeviceManager) ListAllDevices() ([]*storage.Device, error)
- func (d *DeviceManager) ListDevices(user string) ([]*storage.Device, error)
- func (d *DeviceManager) SaveDevice(device *storage.Device) error
- func (d *DeviceManager) StartSync(disableMetadataCollection bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsConnected ¶
Types ¶
type DeviceManager ¶
type DeviceManager struct {
// contains filtered or unexported fields
}
func New ¶
func New(wg wgembed.WireGuardInterface, s storage.Storage, cidr, cidrv6 string) *DeviceManager
func (*DeviceManager) AddDevice ¶
func (d *DeviceManager) AddDevice(identity *authsession.Identity, name string, publicKey string) (*storage.Device, error)
func (*DeviceManager) DeleteDevice ¶
func (d *DeviceManager) DeleteDevice(user string, name string) error
func (*DeviceManager) GetByPublicKey ¶
func (d *DeviceManager) GetByPublicKey(publicKey string) (*storage.Device, error)
func (*DeviceManager) ListAllDevices ¶
func (d *DeviceManager) ListAllDevices() ([]*storage.Device, error)
func (*DeviceManager) ListDevices ¶
func (d *DeviceManager) ListDevices(user string) ([]*storage.Device, error)
func (*DeviceManager) SaveDevice ¶
func (d *DeviceManager) SaveDevice(device *storage.Device) error
func (*DeviceManager) StartSync ¶
func (d *DeviceManager) StartSync(disableMetadataCollection bool) error
Click to show internal directories.
Click to hide internal directories.