Documentation
¶
Index ¶
- type DeviceStorageManager
- func (manager *DeviceStorageManager) Add(device *registry.Device) error
- func (manager *DeviceStorageManager) Delete(id string) error
- func (manager *DeviceStorageManager) Get(id string) (*registry.Device, error)
- func (manager *DeviceStorageManager) List() ([]*uuid.UUID, error)
- func (manager *DeviceStorageManager) Update(device *registry.Device) error
- func (manager *DeviceStorageManager) UpdateContents(id string, contents []string) error
- type LocationStorageManager
- func (manager *LocationStorageManager) Add(location *registry.Location) error
- func (manager *LocationStorageManager) Delete(id string) error
- func (manager *LocationStorageManager) Get(id string) (*registry.Location, error)
- func (manager *LocationStorageManager) List() ([]*registry.Location, error)
- func (manager *LocationStorageManager) Update(location *registry.Location) error
- type ManufacturerStorageManager
- func (manager *ManufacturerStorageManager) Add(manufacturer *registry.Manufacturer) error
- func (manager *ManufacturerStorageManager) Delete(id string) error
- func (manager *ManufacturerStorageManager) Get(id string) (*registry.Manufacturer, error)
- func (manager *ManufacturerStorageManager) List() ([]*registry.Manufacturer, error)
- func (manager *ManufacturerStorageManager) Update(manufacturer *registry.Manufacturer) error
- type StorageInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceStorageManager ¶
type DeviceStorageManager struct {
StorageInterface[registry.Device]
// contains filtered or unexported fields
}
func NewDeviceStorageManager ¶
func NewDeviceStorageManager() *DeviceStorageManager
func (*DeviceStorageManager) Add ¶
func (manager *DeviceStorageManager) Add(device *registry.Device) error
func (*DeviceStorageManager) Delete ¶
func (manager *DeviceStorageManager) Delete(id string) error
func (*DeviceStorageManager) Get ¶
func (manager *DeviceStorageManager) Get(id string) (*registry.Device, error)
func (*DeviceStorageManager) List ¶
func (manager *DeviceStorageManager) List() ([]*uuid.UUID, error)
func (*DeviceStorageManager) Update ¶
func (manager *DeviceStorageManager) Update(device *registry.Device) error
func (*DeviceStorageManager) UpdateContents ¶
func (manager *DeviceStorageManager) UpdateContents(id string, contents []string) error
type LocationStorageManager ¶
type LocationStorageManager struct {
StorageInterface[registry.Location]
// contains filtered or unexported fields
}
func NewLocationStorageManager ¶
func NewLocationStorageManager() *LocationStorageManager
func (*LocationStorageManager) Add ¶
func (manager *LocationStorageManager) Add(location *registry.Location) error
func (*LocationStorageManager) Delete ¶
func (manager *LocationStorageManager) Delete(id string) error
func (*LocationStorageManager) Get ¶
func (manager *LocationStorageManager) Get(id string) (*registry.Location, error)
type ManufacturerStorageManager ¶
type ManufacturerStorageManager struct {
StorageInterface[registry.Manufacturer]
// contains filtered or unexported fields
}
func NewManufacturerStorageManager ¶
func NewManufacturerStorageManager() *ManufacturerStorageManager
func (*ManufacturerStorageManager) Add ¶
func (manager *ManufacturerStorageManager) Add(manufacturer *registry.Manufacturer) error
func (*ManufacturerStorageManager) Delete ¶
func (manager *ManufacturerStorageManager) Delete(id string) error
func (*ManufacturerStorageManager) Get ¶
func (manager *ManufacturerStorageManager) Get(id string) (*registry.Manufacturer, error)
func (*ManufacturerStorageManager) List ¶
func (manager *ManufacturerStorageManager) List() ([]*registry.Manufacturer, error)
func (*ManufacturerStorageManager) Update ¶
func (manager *ManufacturerStorageManager) Update(manufacturer *registry.Manufacturer) error
Click to show internal directories.
Click to hide internal directories.