Documentation ¶
Index ¶
- Constants
- Variables
- type Client
- func (c *Client) GetAspect(id string) (models.Aspect, error, int)
- func (c *Client) GetAspectNode(id string) (models.AspectNode, error, int)
- func (c *Client) GetAspectNodes() ([]models.AspectNode, error, int)
- func (c *Client) GetAspectNodesByIdList(ids []string) (result []models.AspectNode, err error, code int)
- func (c *Client) GetAspectNodesMeasuringFunctions(id string, ancestors bool, descendants bool) (result []models.Function, err error, errCode int)
- func (c *Client) GetAspectNodesWithFunction(function string, ancestors bool, descendants bool) ([]models.AspectNode, error, int)
- func (c *Client) GetAspectNodesWithMeasuringFunction(ancestors bool, descendants bool) ([]models.AspectNode, error, int)
- func (c *Client) GetAspects() ([]models.Aspect, error, int)
- func (c *Client) GetAspectsWithMeasuringFunction(ancestors bool, descendants bool) ([]models.Aspect, error, int)
- func (c *Client) GetCharacteristic(id string) (result models.Characteristic, err error, errCode int)
- func (c *Client) GetCharacteristics(leafsOnly bool) (result []models.Characteristic, err error, errCode int)
- func (c *Client) GetConceptWithCharacteristics(id string) (models.ConceptWithCharacteristics, error, int)
- func (c *Client) GetConceptWithoutCharacteristics(id string) (models.Concept, error, int)
- func (c *Client) GetDeviceClass(id string) (result models.DeviceClass, err error, errCode int)
- func (c *Client) GetDeviceClasses() ([]models.DeviceClass, error, int)
- func (c *Client) GetDeviceClassesControllingFunctions(id string) (result []models.Function, err error, errCode int)
- func (c *Client) GetDeviceClassesFunctions(id string) (result []models.Function, err error, errCode int)
- func (c *Client) GetDeviceClassesWithControllingFunctions() ([]models.DeviceClass, error, int)
- func (c *Client) GetDeviceTypeSelectables(query []model.FilterCriteria, pathPrefix string, interactionsFilter []string, ...) (result []model.DeviceTypeSelectable, err error, code int)
- func (c *Client) GetDeviceTypeSelectablesV2(query []model.FilterCriteria, pathPrefix string, includeModified bool, ...) (result []model.DeviceTypeSelectable, err error, code int)
- func (c *Client) GetFunction(id string) (result models.Function, err error, errCode int)
- func (c *Client) GetFunctionsByType(rdfType string) (result []models.Function, err error, errCode int)
- func (c *Client) GetLocation(id string, token string) (location models.Location, err error, errCode int)
- func (c *Client) GetPermissionsClient() permissions.Client
- func (c *Client) GetService(id string) (result models.Service, err error, code int)
- func (c *Client) GetUsedInDeviceType(query model.UsedInDeviceTypeQuery) (result model.UsedInDeviceTypeResponse, err error, errCode int)
- func (c *Client) ListDeviceGroups(token string, options model.DeviceGroupListOptions) (result []models.DeviceGroup, total int64, err error, errCode int)
- func (c *Client) ListDeviceTypes(token string, limit int64, offset int64, sort string, ...) (result []models.DeviceType, err error, errCode int)
- func (c *Client) ListDeviceTypesV2(token string, limit int64, offset int64, sort string, ...) (result []models.DeviceType, err error, errCode int)
- func (c *Client) ListDeviceTypesV3(token string, options model.DeviceTypeListOptions) (result []models.DeviceType, err error, errCode int)
- func (c *Client) ListDevices(token string, options DeviceListOptions) (result []models.Device, err error, errCode int)
- func (c *Client) ListExtendedDevices(token string, options model.ExtendedDeviceListOptions) (result []models.ExtendedDevice, total int64, err error, errCode int)
- func (c *Client) ListExtendedHubs(token string, options model.HubListOptions) (result []models.ExtendedHub, total int64, err error, errCode int)
- func (c *Client) ListHubDeviceIds(id string, token string, action model.AuthAction, asLocalId bool) (result []string, err error, errCode int)
- func (c *Client) ListHubs(token string, options model.HubListOptions) (result []models.Hub, err error, errCode int)
- func (c *Client) ListProtocols(token string, limit int64, offset int64, sort string) (result []models.Protocol, err error, errCode int)
- func (c *Client) ReadDevice(id string, token string, action model.AuthAction) (result models.Device, err error, errCode int)
- func (c *Client) ReadDeviceByLocalId(ownerId string, localId string, token string, action model.AuthAction) (result models.Device, err error, errCode int)
- func (c *Client) ReadDeviceGroup(id string, token string, filterGenericDuplicateCriteria bool) (result models.DeviceGroup, err error, errCode int)
- func (c *Client) ReadDeviceType(id string, token string) (result models.DeviceType, err error, errCode int)
- func (c *Client) ReadExtendedDevice(id string, token string, action model.AuthAction, fullDt bool) (result models.ExtendedDevice, err error, errCode int)
- func (c *Client) ReadExtendedDeviceByLocalId(ownerId string, localId string, token string, action model.AuthAction, ...) (result models.ExtendedDevice, err error, errCode int)
- func (c *Client) ReadExtendedHub(id string, token string, action model.AuthAction) (result models.ExtendedHub, err error, errCode int)
- func (c *Client) ReadHub(id string, token string, action model.AuthAction) (result models.Hub, err error, errCode int)
- func (c *Client) ReadProtocol(id string, token string) (result models.Protocol, err error, errCode int)
- func (c *Client) ValidateAspect(aspect models.Aspect) (err error, code int)
- func (c *Client) ValidateAspectDelete(id string) (err error, code int)
- func (c *Client) ValidateCharacteristicDelete(id string) (err error, code int)
- func (c *Client) ValidateCharacteristics(characteristic models.Characteristic) (err error, code int)
- func (c *Client) ValidateConcept(concept models.Concept) (err error, code int)
- func (c *Client) ValidateConceptDelete(id string) (err error, code int)
- func (c *Client) ValidateDevice(token string, device models.Device) (err error, code int)
- func (c *Client) ValidateDeviceClass(deviceclass models.DeviceClass) (err error, code int)
- func (c *Client) ValidateDeviceClassDelete(id string) (err error, code int)
- func (c *Client) ValidateDeviceGroup(token string, deviceGroup models.DeviceGroup) (err error, code int)
- func (c *Client) ValidateDeviceGroupDelete(token string, id string) (err error, code int)
- func (c *Client) ValidateDeviceType(deviceType models.DeviceType, options model.ValidationOptions) (err error, code int)
- func (c *Client) ValidateFunction(function models.Function) (err error, code int)
- func (c *Client) ValidateFunctionDelete(id string) (err error, code int)
- func (c *Client) ValidateHub(token string, hub models.Hub) (err error, code int)
- func (c *Client) ValidateLocation(location models.Location) (err error, code int)
- func (c *Client) ValidateProtocol(protocol models.Protocol) (err error, code int)
- type DeviceGroupListOptions
- type DeviceListOptions
- type DeviceTypeListOptions
- type DeviceTypeValidationOptions
- type ExtendedDeviceListOptions
- type FilterCriteria
- type HubListOptions
- type Interface
Constants ¶
View Source
const ADMINISTRATE = model.ADMINISTRATE
View Source
const EXECUTE = model.EXECUTE
View Source
const READ = model.READ
View Source
const WRITE = model.WRITE
Variables ¶
View Source
var ConnectionStateOffline = &connectionStateOffline
View Source
var ConnectionStateOnline = &connectionStateOnline
View Source
var ConnectionStateUnknown = &connectionStateUnknown
View Source
var Event = models.EVENT
View Source
var EventAndRequest = models.EVENT_AND_REQUEST
View Source
var Request = models.REQUEST
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetAspectNode ¶
func (*Client) GetAspectNodes ¶
func (c *Client) GetAspectNodes() ([]models.AspectNode, error, int)
func (*Client) GetAspectNodesByIdList ¶
func (*Client) GetAspectNodesMeasuringFunctions ¶
func (*Client) GetAspectNodesWithFunction ¶
func (*Client) GetAspectNodesWithMeasuringFunction ¶
func (*Client) GetAspectsWithMeasuringFunction ¶
func (*Client) GetCharacteristic ¶
func (*Client) GetCharacteristics ¶ added in v0.1.15
func (*Client) GetConceptWithCharacteristics ¶
func (*Client) GetConceptWithoutCharacteristics ¶
func (*Client) GetDeviceClass ¶
func (*Client) GetDeviceClasses ¶
func (c *Client) GetDeviceClasses() ([]models.DeviceClass, error, int)
func (*Client) GetDeviceClassesControllingFunctions ¶
func (*Client) GetDeviceClassesFunctions ¶
func (*Client) GetDeviceClassesWithControllingFunctions ¶
func (c *Client) GetDeviceClassesWithControllingFunctions() ([]models.DeviceClass, error, int)
func (*Client) GetDeviceTypeSelectables ¶
func (c *Client) GetDeviceTypeSelectables(query []model.FilterCriteria, pathPrefix string, interactionsFilter []string, includeModified bool) (result []model.DeviceTypeSelectable, err error, code int)
func (*Client) GetDeviceTypeSelectablesV2 ¶
func (c *Client) GetDeviceTypeSelectablesV2(query []model.FilterCriteria, pathPrefix string, includeModified bool, servicesMustMatchAllCriteria bool) (result []model.DeviceTypeSelectable, err error, code int)
func (*Client) GetFunction ¶
func (*Client) GetFunctionsByType ¶
func (*Client) GetLocation ¶
func (*Client) GetPermissionsClient ¶ added in v0.1.15
func (c *Client) GetPermissionsClient() permissions.Client
func (*Client) GetService ¶
func (*Client) GetUsedInDeviceType ¶ added in v0.0.6
func (c *Client) GetUsedInDeviceType(query model.UsedInDeviceTypeQuery) (result model.UsedInDeviceTypeResponse, err error, errCode int)
func (*Client) ListDeviceGroups ¶ added in v0.1.25
func (c *Client) ListDeviceGroups(token string, options model.DeviceGroupListOptions) (result []models.DeviceGroup, total int64, err error, errCode int)
func (*Client) ListDeviceTypes ¶
func (*Client) ListDeviceTypesV2 ¶
func (*Client) ListDeviceTypesV3 ¶ added in v0.1.12
func (c *Client) ListDeviceTypesV3(token string, options model.DeviceTypeListOptions) (result []models.DeviceType, err error, errCode int)
func (*Client) ListDevices ¶ added in v0.0.20
func (*Client) ListExtendedDevices ¶ added in v0.1.0
func (c *Client) ListExtendedDevices(token string, options model.ExtendedDeviceListOptions) (result []models.ExtendedDevice, total int64, err error, errCode int)
func (*Client) ListExtendedHubs ¶ added in v0.1.0
func (c *Client) ListExtendedHubs(token string, options model.HubListOptions) (result []models.ExtendedHub, total int64, err error, errCode int)
func (*Client) ListHubDeviceIds ¶
func (*Client) ListProtocols ¶
func (*Client) ReadDevice ¶
func (*Client) ReadDeviceByLocalId ¶
func (*Client) ReadDeviceGroup ¶
func (*Client) ReadDeviceType ¶
func (*Client) ReadExtendedDevice ¶ added in v0.1.0
func (c *Client) ReadExtendedDevice(id string, token string, action model.AuthAction, fullDt bool) (result models.ExtendedDevice, err error, errCode int)
func (*Client) ReadExtendedDeviceByLocalId ¶ added in v0.1.0
func (*Client) ReadExtendedHub ¶ added in v0.1.0
func (c *Client) ReadExtendedHub(id string, token string, action model.AuthAction) (result models.ExtendedHub, err error, errCode int)
func (*Client) ReadProtocol ¶
func (*Client) ValidateAspect ¶
func (*Client) ValidateAspectDelete ¶
func (*Client) ValidateCharacteristicDelete ¶
func (*Client) ValidateCharacteristics ¶
func (c *Client) ValidateCharacteristics(characteristic models.Characteristic) (err error, code int)
func (*Client) ValidateConcept ¶
func (*Client) ValidateConceptDelete ¶
func (*Client) ValidateDevice ¶
func (*Client) ValidateDeviceClass ¶
func (c *Client) ValidateDeviceClass(deviceclass models.DeviceClass) (err error, code int)
func (*Client) ValidateDeviceClassDelete ¶
func (*Client) ValidateDeviceGroup ¶
func (*Client) ValidateDeviceGroupDelete ¶ added in v0.1.18
func (*Client) ValidateDeviceType ¶
func (c *Client) ValidateDeviceType(deviceType models.DeviceType, options model.ValidationOptions) (err error, code int)
func (*Client) ValidateFunction ¶
func (*Client) ValidateFunctionDelete ¶
func (*Client) ValidateHub ¶
func (*Client) ValidateLocation ¶
type DeviceGroupListOptions ¶ added in v0.1.25
type DeviceGroupListOptions = model.DeviceGroupListOptions
type DeviceListOptions ¶ added in v0.0.20
type DeviceListOptions = model.DeviceListOptions
type DeviceTypeListOptions ¶ added in v0.1.12
type DeviceTypeListOptions = model.DeviceTypeListOptions
type DeviceTypeValidationOptions ¶ added in v0.0.5
type DeviceTypeValidationOptions = model.ValidationOptions
type ExtendedDeviceListOptions ¶ added in v0.1.23
type ExtendedDeviceListOptions = model.ExtendedDeviceListOptions
type FilterCriteria ¶ added in v0.1.25
type FilterCriteria = model.FilterCriteria
type HubListOptions ¶ added in v0.1.0
type HubListOptions = model.HubListOptions
Click to show internal directories.
Click to hide internal directories.