forked from TrueCloudLab/policy-engine
[#81] schema: Introduce the tree service verbs
Signed-off-by: Airat Arifullin <aarifullin@yadro.com>
This commit is contained in:
parent
ac965e8d17
commit
b5b5ed0f5f
1 changed files with 19 additions and 0 deletions
|
@ -1,6 +1,14 @@
|
||||||
package native
|
package native
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
MethodAddTreeNode = "AddTreeNode"
|
||||||
|
MethodAddTreeNodeByPath = "AddTreeNodeByPath"
|
||||||
|
MethodRemoveTreeNode = "RemoveTreeNode"
|
||||||
|
MethodMoveTreeNode = "MoveTreeNode"
|
||||||
|
MethodGetTreeNodeByPath = "GetTreeNodeByPath"
|
||||||
|
MethodGetSubtree = "GetSubtree"
|
||||||
|
MethodListTrees = "ListTrees"
|
||||||
|
|
||||||
MethodGetObject = "GetObject"
|
MethodGetObject = "GetObject"
|
||||||
MethodPutObject = "PutObject"
|
MethodPutObject = "PutObject"
|
||||||
MethodHeadObject = "HeadObject"
|
MethodHeadObject = "HeadObject"
|
||||||
|
@ -18,6 +26,7 @@ const (
|
||||||
|
|
||||||
ObjectPrefix = "native:object"
|
ObjectPrefix = "native:object"
|
||||||
ContainerPrefix = "native:container"
|
ContainerPrefix = "native:container"
|
||||||
|
TreePrefix = "native:tree"
|
||||||
|
|
||||||
ResourceFormatNamespaceObjects = "native:object/%s/*"
|
ResourceFormatNamespaceObjects = "native:object/%s/*"
|
||||||
ResourceFormatNamespaceContainerObjects = "native:object/%s/%s/*"
|
ResourceFormatNamespaceContainerObjects = "native:object/%s/%s/*"
|
||||||
|
@ -37,6 +46,16 @@ const (
|
||||||
|
|
||||||
ResourceFormatAllContainers = "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"
|
PropertyKeyActorPublicKey = "$Actor:publicKey"
|
||||||
PropertyKeyActorRole = "$Actor:role"
|
PropertyKeyActorRole = "$Actor:role"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue