MCPcopy
hub / github.com/Place1/wg-access-server / SaveDevice

Method SaveDevice

internal/devices/devices.go:90–92  ·  view source on GitHub ↗
(device *storage.Device)

Source from the content-addressed store, hash-verified

88}
89
90func (d *DeviceManager) SaveDevice(device *storage.Device) error {
91 return d.storage.Save(device)
92}
93
94func (d *DeviceManager) sync() error {
95 devices, err := d.ListAllDevices()

Callers 2

AddDeviceMethod · 0.95
syncMetricsFunction · 0.80

Calls 1

SaveMethod · 0.65

Tested by

no test coverage detected