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) DeleteDevicesForUser(user 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) ListUsers() ([]*User, error)
- func (d *DeviceManager) Ping() error
- func (d *DeviceManager) SaveDevice(device *storage.Device) error
- func (d *DeviceManager) StartSync(disableMetadataCollection, enableInactiveDeviceDeletion bool, ...) error
- type User
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, presharedKey string) (*storage.Device, error)
func (*DeviceManager) DeleteDevice ¶
func (d *DeviceManager) DeleteDevice(user string, name string) error
func (*DeviceManager) DeleteDevicesForUser ¶ added in v0.9.0
func (d *DeviceManager) DeleteDevicesForUser(user 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) ListUsers ¶ added in v0.9.0
func (d *DeviceManager) ListUsers() ([]*User, error)
func (*DeviceManager) Ping ¶ added in v0.9.0
func (d *DeviceManager) Ping() error
func (*DeviceManager) SaveDevice ¶
func (d *DeviceManager) SaveDevice(device *storage.Device) error
Click to show internal directories.
Click to hide internal directories.