devicerepo

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Factory controller.DeviceRepoFactory = func(config configuration.Config, reuse interfaces.Devices, hubId string) interfaces.Devices {
	return &DeviceRepo{
		config: config,
		hubId:  hubId,
		reuse:  reuse,
	}
}

Functions

This section is empty.

Types

type BulkRequestElementWithLocalDeviceFilter

type BulkRequestElementWithLocalDeviceFilter struct {
	deviceselectionmodel.BulkRequestElement
	LocalDevices []string `json:"local_devices"`
}

type DeviceRepo

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

func (*DeviceRepo) CheckAccess

func (this *DeviceRepo) CheckAccess(token auth.Token, kind string, ids []string) (map[string]bool, error)

func (*DeviceRepo) GetAspectNode

func (this *DeviceRepo) GetAspectNode(token auth.Token, id string) (aspectNode devicemodel.AspectNode, err error)

func (*DeviceRepo) GetBulkDeviceSelection

func (this *DeviceRepo) GetBulkDeviceSelection(token auth.Token, bulk deviceselectionmodel.BulkRequest) (result deviceselectionmodel.BulkResult, err error, code int)

func (*DeviceRepo) GetBulkDeviceSelectionV2

func (this *DeviceRepo) GetBulkDeviceSelectionV2(token auth.Token, bulk deviceselectionmodel.BulkRequestV2) (result deviceselectionmodel.BulkResult, err error, code int)

func (*DeviceRepo) GetDevice

func (this *DeviceRepo) GetDevice(token auth.Token, id string) (devicemodel.Device, error, int)

func (*DeviceRepo) GetDeviceGroup

func (this *DeviceRepo) GetDeviceGroup(token auth.Token, id string) (result devicemodel.DeviceGroup, err error, code int)

func (*DeviceRepo) GetDeviceSelection

func (this *DeviceRepo) GetDeviceSelection(token auth.Token, descriptions deviceselectionmodel.FilterCriteriaAndSet, filterByInteraction devicemodel.Interaction) (result []deviceselectionmodel.Selectable, err error, code int)

deprecated

func (*DeviceRepo) GetHub

func (this *DeviceRepo) GetHub(token string, id string) (result devicemodel.Hub, err error, code int)

func (*DeviceRepo) GetService

func (this *DeviceRepo) GetService(token auth.Token, id string) (devicemodel.Service, error, int)

Jump to

Keyboard shortcuts

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