policy-engine/schema/native/consts.go
Airat Arifullin b5b5ed0f5f [#81] schema: Introduce the tree service verbs
Signed-off-by: Airat Arifullin <aarifullin@yadro.com>
2024-06-19 18:13:20 +03:00

78 lines
2.8 KiB
Go

package native
const (
MethodAddTreeNode = "AddTreeNode"
MethodAddTreeNodeByPath = "AddTreeNodeByPath"
MethodRemoveTreeNode = "RemoveTreeNode"
MethodMoveTreeNode = "MoveTreeNode"
MethodGetTreeNodeByPath = "GetTreeNodeByPath"
MethodGetSubtree = "GetSubtree"
MethodListTrees = "ListTrees"
MethodGetObject = "GetObject"
MethodPutObject = "PutObject"
MethodHeadObject = "HeadObject"
MethodDeleteObject = "DeleteObject"
MethodSearchObject = "SearchObject"
MethodRangeObject = "RangeObject"
MethodHashObject = "HashObject"
MethodPutContainer = "PutContainer"
MethodDeleteContainer = "DeleteContainer"
MethodGetContainer = "GetContainer"
MethodListContainers = "ListContainers"
MethodSetContainerEACL = "SetContainerEACL"
MethodGetContainerEACL = "GetContainerEACL"
ObjectPrefix = "native:object"
ContainerPrefix = "native:container"
TreePrefix = "native:tree"
ResourceFormatNamespaceObjects = "native:object/%s/*"
ResourceFormatNamespaceContainerObjects = "native:object/%s/%s/*"
ResourceFormatNamespaceContainerObject = "native:object/%s/%s/%s"
ResourceFormatRootObjects = "native:object//*"
ResourceFormatRootContainerObjects = "native:object//%s/*"
ResourceFormatRootContainerObject = "native:object//%s/%s"
ResourceFormatAllObjects = "native:object/*"
ResourceFormatNamespaceContainer = "native:container/%s/%s"
ResourceFormatNamespaceContainers = "native:container/%s/*"
ResourceFormatRootContainer = "native:container//%s"
ResourceFormatRootContainers = "native:container//*"
ResourceFormatAllContainers = "native:container/*"
ResourceFormatNamespaceTrees = "native:tree/%s/*"
ResourceFormatNamespaceContainerTrees = "native:tree/%s/%s/*"
ResourceFormatNamespaceContainerTree = "native:tree/%s/%s/%s"
ResourceFormatRootTrees = "native:tree//*"
ResourceFormatRootContainerTrees = "native:tree//%s/*"
ResourceFormatRootContainerTree = "native:tree//%s/%s"
ResourceFormatAllTrees = "native:tree/*"
PropertyKeyActorPublicKey = "$Actor:publicKey"
PropertyKeyActorRole = "$Actor:role"
PropertyKeyObjectVersion = "$Object:version"
PropertyKeyObjectID = "$Object:objectID"
PropertyKeyObjectContainerID = "$Object:containerID"
PropertyKeyObjectOwnerID = "$Object:ownerID"
PropertyKeyObjectCreationEpoch = "$Object:creationEpoch"
PropertyKeyObjectPayloadLength = "$Object:payloadLength"
PropertyKeyObjectPayloadHash = "$Object:payloadHash"
PropertyKeyObjectType = "$Object:objectType"
PropertyKeyObjectHomomorphicHash = "$Object:homomorphicHash"
PropertyKeyContainerOwnerID = "$Container:ownerID"
PropertyValueContainerRoleOwner = "owner"
PropertyValueContainerRoleIR = "ir"
PropertyValueContainerRoleContainer = "container"
PropertyValueContainerRoleOthers = "others"
)