Documentation
¶
Index ¶
- Constants
- Variables
- func PreventIdModifier(id string) error
- func RemoveDuplicates[T comparable](slice []T) []T
- type Com
- func (this *Com) DeviceLocalIdToId(token auth.Token, localId string) (id string, err error, code int)
- func (this *Com) DevicesOfTypeExist(token auth.Token, deviceTypeId string) (result bool, err error, code int)
- func (this *Com) GetAspect(token auth.Token, id string) (aspect models.Aspect, err error, code int)
- func (this *Com) GetCharacteristic(token auth.Token, id string) (concept models.Characteristic, err error, code int)
- func (this *Com) GetConcept(token auth.Token, id string) (concept models.Concept, err error, code int)
- func (this *Com) GetDevice(token auth.Token, id string) (device models.Device, err error, code int)
- func (this *Com) GetDeviceByLocalId(token auth.Token, ownerId string, localid string) (device models.Device, err error, code int)
- func (this *Com) GetDeviceClass(token auth.Token, id string) (deviceClass models.DeviceClass, err error, code int)
- func (this *Com) GetDeviceType(token auth.Token, id string) (dt models.DeviceType, err error, code int)
- func (this *Com) GetFunction(token auth.Token, id string) (function models.Function, err error, code int)
- func (this *Com) GetHub(token auth.Token, id string) (hub models.Hub, err error, code int)
- func (this *Com) GetLocation(token auth.Token, id string) (Location models.Location, err error, code int)
- func (this *Com) GetProtocol(token auth.Token, id string) (protocol models.Protocol, err error, code int)
- func (this *Com) GetResourceRights(token auth.Token, kind string, id string) (result model.Resource, err error, code int)
- func (this *Com) GetTechnicalDeviceGroup(token auth.Token, id string) (dt models.DeviceGroup, err error, code int)
- func (this *Com) ListDeviceTypes(token string, options devicerepo.DeviceTypeListOptions) (result []models.DeviceType, err error, code int)
- func (this *Com) ListDevices(token string, options devicerepo.DeviceListOptions) (result []models.Device, err error, code int)
- func (this *Com) ListDevicesByQuery(token auth.Token, query url.Values) (devices []models.Device, err error, code int)
- func (this *Com) PermissionCheck(token auth.Token, id string, permission string, resource string) (err error, code int)
- func (this *Com) PermissionCheckForCharacteristic(token auth.Token, id string, permission string) (err error, code int)
- func (this *Com) PermissionCheckForConcept(token auth.Token, id string, permission string) (err error, code int)
- func (this *Com) PermissionCheckForDevice(token auth.Token, id string, permission string) (err error, code int)
- func (this *Com) PermissionCheckForDeviceGroup(token auth.Token, id string, permission string) (err error, code int)
- func (this *Com) PermissionCheckForDeviceList(token auth.Token, ids []string, rights string) (result map[string]bool, err error, code int)
- func (this *Com) PermissionCheckForDeviceType(token auth.Token, id string, permission string) (err error, code int)
- func (this *Com) PermissionCheckForHub(token auth.Token, id string, permission string) (err error, code int)
- func (this *Com) PermissionCheckForLocation(token auth.Token, id string, permission string) (err error, code int)
- func (this *Com) ResourcesEffectedByUserDelete(token auth.Token, resource string) (deleteResourceIds []string, deleteUserFromResource []client.Resource, ...)
- func (this *Com) SetPermission(token string, topicId string, id string, permissions model.ResourcePermissions) (result model.ResourcePermissions, err error, code int)
- func (this *Com) ValidateAspect(token auth.Token, aspect models.Aspect) (err error, code int)
- func (this *Com) ValidateAspectDelete(token auth.Token, id string) (err error, code int)
- func (this *Com) ValidateCharacteristic(token auth.Token, characteristic models.Characteristic) (err error, code int)
- func (this *Com) ValidateCharacteristicDelete(token auth.Token, id string) (err error, code int)
- func (this *Com) ValidateConcept(token auth.Token, concept models.Concept) (err error, code int)
- func (this *Com) ValidateConceptDelete(token auth.Token, id string) (err error, code int)
- func (this *Com) ValidateDevice(token auth.Token, device models.Device) (err error, code int)
- func (this *Com) ValidateDeviceClass(token auth.Token, deviceClass models.DeviceClass) (err error, code int)
- func (this *Com) ValidateDeviceClassDelete(token auth.Token, id string) (err error, code int)
- func (this *Com) ValidateDeviceGroup(token auth.Token, dg models.DeviceGroup) (err error, code int)
- func (this *Com) ValidateDeviceGroupDelete(token auth.Token, id string) (err error, code int)
- func (this *Com) ValidateDeviceType(token auth.Token, dt models.DeviceType) (err error, code int)
- func (this *Com) ValidateFunction(token auth.Token, function models.Function) (err error, code int)
- func (this *Com) ValidateFunctionDelete(token auth.Token, id string) (err error, code int)
- func (this *Com) ValidateHub(token auth.Token, hub models.Hub) (err error, code int)
- func (this *Com) ValidateLocation(token auth.Token, location models.Location) (err error, code int)
- func (this *Com) ValidateProtocol(token auth.Token, protocol models.Protocol) (err error, code int)
Constants ¶
View Source
const Seperator = "$"
Variables ¶
View Source
var ResourcesEffectedByUserDelete_BATCH_SIZE int64 = 1000
Functions ¶
func PreventIdModifier ¶
func RemoveDuplicates ¶
func RemoveDuplicates[T comparable](slice []T) []T
Types ¶
type Com ¶
type Com struct {
// contains filtered or unexported fields
}
func (*Com) DeviceLocalIdToId ¶
func (*Com) DevicesOfTypeExist ¶
func (*Com) GetCharacteristic ¶
func (*Com) GetConcept ¶
func (*Com) GetDeviceByLocalId ¶ added in v0.0.10
func (*Com) GetDeviceClass ¶
func (*Com) GetDeviceType ¶
func (*Com) GetFunction ¶
func (*Com) GetLocation ¶
func (*Com) GetProtocol ¶
func (*Com) GetResourceRights ¶ added in v0.0.14
func (*Com) GetTechnicalDeviceGroup ¶
func (*Com) ListDeviceTypes ¶ added in v0.0.32
func (this *Com) ListDeviceTypes(token string, options devicerepo.DeviceTypeListOptions) (result []models.DeviceType, err error, code int)
func (*Com) ListDevices ¶ added in v0.0.16
func (this *Com) ListDevices(token string, options devicerepo.DeviceListOptions) (result []models.Device, err error, code int)
func (*Com) ListDevicesByQuery ¶ added in v0.0.32
func (*Com) PermissionCheck ¶
func (*Com) PermissionCheckForCharacteristic ¶
func (*Com) PermissionCheckForConcept ¶
func (*Com) PermissionCheckForDevice ¶
func (*Com) PermissionCheckForDeviceGroup ¶
func (*Com) PermissionCheckForDeviceList ¶
func (*Com) PermissionCheckForDeviceType ¶
func (*Com) PermissionCheckForHub ¶
func (*Com) PermissionCheckForLocation ¶
func (*Com) ResourcesEffectedByUserDelete ¶
func (*Com) SetPermission ¶ added in v0.0.32
func (this *Com) SetPermission(token string, topicId string, id string, permissions model.ResourcePermissions) (result model.ResourcePermissions, err error, code int)
func (*Com) ValidateAspect ¶
func (*Com) ValidateAspectDelete ¶
func (*Com) ValidateCharacteristic ¶
func (*Com) ValidateCharacteristicDelete ¶
func (*Com) ValidateConcept ¶
func (*Com) ValidateConceptDelete ¶
func (*Com) ValidateDevice ¶
func (*Com) ValidateDeviceClass ¶
func (*Com) ValidateDeviceClassDelete ¶
func (*Com) ValidateDeviceGroup ¶
func (*Com) ValidateDeviceGroupDelete ¶ added in v0.0.29
func (*Com) ValidateDeviceType ¶
func (*Com) ValidateFunction ¶
func (*Com) ValidateFunctionDelete ¶
func (*Com) ValidateHub ¶
func (*Com) ValidateLocation ¶
Click to show internal directories.
Click to hide internal directories.