devices

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustParseCIDR

func MustParseCIDR(cidr string) (net.IP, *net.IPNet)

func MustParseIP

func MustParseIP(ip string) net.IP

Types

type DeviceManager

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

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 added in v0.4.3

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