From b5b5ed0f5f9e39be7d732fbcc160c9ae1b952f2d Mon Sep 17 00:00:00 2001 From: Airat Arifullin Date: Mon, 17 Jun 2024 14:01:04 +0300 Subject: [PATCH] [#81] schema: Introduce the tree service verbs Signed-off-by: Airat Arifullin --- schema/native/consts.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/schema/native/consts.go b/schema/native/consts.go index 0f138a6..276373d 100644 --- a/schema/native/consts.go +++ b/schema/native/consts.go @@ -1,6 +1,14 @@ package native const ( + MethodAddTreeNode = "AddTreeNode" + MethodAddTreeNodeByPath = "AddTreeNodeByPath" + MethodRemoveTreeNode = "RemoveTreeNode" + MethodMoveTreeNode = "MoveTreeNode" + MethodGetTreeNodeByPath = "GetTreeNodeByPath" + MethodGetSubtree = "GetSubtree" + MethodListTrees = "ListTrees" + MethodGetObject = "GetObject" MethodPutObject = "PutObject" MethodHeadObject = "HeadObject" @@ -18,6 +26,7 @@ const ( ObjectPrefix = "native:object" ContainerPrefix = "native:container" + TreePrefix = "native:tree" ResourceFormatNamespaceObjects = "native:object/%s/*" ResourceFormatNamespaceContainerObjects = "native:object/%s/%s/*" @@ -37,6 +46,16 @@ const ( 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"