devices

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsConnected

func IsConnected(lastHandshake time.Time) bool

Types

type DeviceManager

type DeviceManager struct {
	// contains filtered or unexported fields
}

func New

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

Jump to

Keyboard shortcuts

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