Files
Dušan Borovčanin 168e8b90cb
Property Based Tests / api-test (push) Has been cancelled
Continuous Delivery / lint-and-build (push) Has been cancelled
Deploy GitHub Pages / swagger-ui (push) Has been cancelled
CI Pipeline / Lint Proto (push) Has been cancelled
CI Pipeline / Detect Changes (push) Has been cancelled
Continuous Delivery / Build and Push Docker Images (push) Has been cancelled
CI Pipeline / lint-and-build (push) Has been cancelled
CI Pipeline / Test ${{ matrix.module }} (push) Has been cancelled
CI Pipeline / Upload Coverage (push) Has been cancelled
NOISSUE - Move rules engine, alarms, reports, journal and notifications to EE (#3552)
Signed-off-by: dusan <borovcanindusan1@gmail.com>
2026-07-30 17:55:57 +02:00

90 lines
2.2 KiB
Go

// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package atom
const (
atomActionRead = "read"
atomActionWrite = "write"
atomActionDelete = "delete"
atomActionManage = "manage"
atomActionPublish = "publish"
atomActionSubscribe = "subscribe"
atomActionExecute = "execute"
atomActionList = "list"
atomActionAlarmRead = "alarm_read"
atomActionAlarmUpdate = "alarm_update"
atomActionAlarmDelete = "alarm_delete"
atomActionAlarmAssign = "alarm_assign"
atomActionAlarmAcknowledge = "alarm_acknowledge"
atomActionAlarmResolve = "alarm_resolve"
)
const (
atomStatusActive = "active"
atomStatusInactive = "inactive"
atomStatusEnabled = "enabled"
atomStatusDisabled = "disabled"
atomStatusFrozen = "frozen"
atomStatusSuspended = "suspended"
atomStatusDeleted = "deleted"
)
const (
atomKindDevice = "device"
atomKindGroup = "group"
atomKindHuman = "human"
)
const (
atomObjectKindEntity = "entity"
atomObjectKindGroup = "group"
atomObjectKindResource = "resource"
atomObjectKindTenant = "tenant"
)
const atomScopeModeObject = "object"
const (
atomObjectTypeResourceChannel = "resource:channel"
atomObjectTypeResourceRule = "resource:rule"
atomObjectTypeResourceReport = "resource:report"
)
const atomDecisionAllow = "allow"
const (
atomInputKeyAction = "action"
atomInputKeyCredentialID = "credentialId"
atomInputKeyEntityID = "entityId"
atomInputKeyInput = "input"
atomInputKeyKind = "kind"
atomInputKeyName = "name"
atomInputKeyObjectKind = "objectKind"
atomInputKeySubjectID = "subjectId"
)
const (
atomContextDomainID = "domain_id"
atomContextLegacyObjectType = "legacy_object_type"
)
const (
atomAttributeCreatedAt = "created_at"
atomAttributeMetadata = "metadata"
atomAttributeRoute = "route"
atomAttributeSource = "source"
atomAttributeStatus = "status"
atomAttributeTags = "tags"
atomAttributeUpdatedAt = "updated_at"
atomAttributeUpdatedBy = "updated_by"
)
const atomAttributeSourceMagistrala = "magistrala"
const (
atomGraphQLPath = "/graphql"
atomAuthIntrospectPath = "/auth/introspect"
)