devices

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

View Source
const (
	QueryEqualOperation             = client.QueryEqualOperation
	QueryUnequalOperation           = client.QueryUnequalOperation
	QueryAnyValueInFeatureOperation = client.QueryAnyValueInFeatureOperation
)

Variables

View Source
var Factory = &FactoryType{}

Functions

This section is empty.

Types

type Auth

type Auth interface {
	Ensure() (token auth.AuthToken, err error)
}

type ConditionConfig

type ConditionConfig = client.ConditionConfig

type Devices

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

func New

func New(config config.Config) (*Devices, error)

func NewWithAuth

func NewWithAuth(config config.Config, auth Auth) *Devices

func (*Devices) GetConcept

func (this *Devices) GetConcept(conceptId string) (result model.Concept, err error, code int)

func (*Devices) GetDeviceGroup

func (this *Devices) GetDeviceGroup(token auth.AuthToken, groupId string) (result model.DeviceGroup, err error, code int)

func (*Devices) GetDeviceInfosOfDevices

func (this *Devices) GetDeviceInfosOfDevices(deviceIds []string) (devices []model.Device, deviceTypeIds []string, err error, code int)

func (*Devices) GetDeviceInfosOfGroup

func (this *Devices) GetDeviceInfosOfGroup(groupId string) (devices []model.Device, deviceTypeIds []string, err error, code int)

func (*Devices) GetDeviceTypeSelectables

func (this *Devices) GetDeviceTypeSelectables(criteria []model.FilterCriteria) (result []model.DeviceTypeSelectable, err error, code int)

func (*Devices) GetDevicesWithIds

func (this *Devices) GetDevicesWithIds(token auth.AuthToken, ids []string) (result []model.Device, err error, code int)

func (*Devices) GetFunction

func (this *Devices) GetFunction(functionId string) (result model.Function, err error, code int)

func (*Devices) GetService

func (this *Devices) GetService(serviceId string) (result models.Service, err error, code int)

func (*Devices) Search

func (this *Devices) Search(token auth.AuthToken, query QueryMessage, result interface{}) (err error, code int)

type FactoryType

type FactoryType struct{}

func (*FactoryType) New

func (this *FactoryType) New(config config.Config) (interfaces.Devices, error)

type QueryCheckIds

type QueryCheckIds = client.QueryCheckIds

type QueryFind

type QueryFind = client.QueryFind

type QueryListCommons

type QueryListCommons = client.QueryListCommons

type QueryListIds

type QueryListIds = client.QueryListIds

type QueryMessage

type QueryMessage = client.QueryMessage

type QueryOperationType

type QueryOperationType = client.QueryOperationType

type Selection

type Selection = client.Selection

Jump to

Keyboard shortcuts

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