From 02e50307dfed42d4fd13f5c97fc809e3657818bc Mon Sep 17 00:00:00 2001 From: Dmitrii Stepanov Date: Mon, 18 Dec 2023 13:16:18 +0300 Subject: [PATCH] [#34] native: Add container methods Signed-off-by: Dmitrii Stepanov --- schema/native/consts.go | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/schema/native/consts.go b/schema/native/consts.go index 6277d53..eab9ec0 100644 --- a/schema/native/consts.go +++ b/schema/native/consts.go @@ -9,6 +9,13 @@ const ( MethodRangeObject = "RangeObject" MethodHashObject = "HashObject" + MethodPutContainer = "PutContainer" + MethodDeleteContainer = "DeleteContainer" + MethodGetContainer = "GetContainer" + MethodListContainers = "ListContainers" + MethodSetContainerEACL = "SetContainerEACL" + MethodGetContainerEACL = "GetContainerEACL" + ResourceFormatNamespaceObjects = "native:object/%s/*" ResourceFormatNamespaceContainerObjects = "native:object/%s/%s/*" ResourceFormatNamespaceContainerObject = "native:object/%s/%s/%s" @@ -27,8 +34,9 @@ const ( ResourceFormatAllContainers = "native:container/*" - PropertyKeyActorPublicKey = "$Actor:publicKey" - PropertyKeyActorRole = "$Actor:role" + PropertyKeyActorPublicKey = "$Actor:publicKey" + PropertyKeyActorRole = "$Actor:role" + PropertyKeyObjectVersion = "$Object:version" PropertyKeyObjectID = "$Object:objectID" PropertyKeyObjectContainerID = "$Object:containerID" @@ -38,4 +46,11 @@ const ( PropertyKeyObjectPayloadHash = "$Object:payloadHash" PropertyKeyObjectType = "$Object:objectType" PropertyKeyObjectHomomorphicHash = "$Object:homomorphicHash" + + PropertyKeyContainerOwnerID = "$Container:ownerID" + + PropertyValueContainerRoleOwner = "onwer" + PropertyValueContainerRoleIR = "ir" + PropertyValueContainerRoleContainer = "container" + PropertyValueContainerRoleOthers = "others" )