From 38985e4ec86bce6390874d9a55e473d9aa6b4f07 Mon Sep 17 00:00:00 2001 From: Dmitrii Stepanov Date: Tue, 14 Nov 2023 12:27:39 +0300 Subject: [PATCH] [#19] schema: Add native schema consts Signed-off-by: Dmitrii Stepanov --- schema/native/consts.go | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 schema/native/consts.go diff --git a/schema/native/consts.go b/schema/native/consts.go new file mode 100644 index 0000000..1074d71 --- /dev/null +++ b/schema/native/consts.go @@ -0,0 +1,41 @@ +package native + +const ( + MethodGetObject = "GetObject" + MethodPutObject = "PutObject" + MethodHeadObject = "HeadObject" + MethodDeleteObject = "DeleteObject" + MethodSearchObject = "SearchObject" + MethodRangeObject = "RangeObject" + MethodHashObject = "HashObject" + + ResourceFormatNamespaceObjects = "native:object/%s/*" + ResourceFormatNamespaceContainerObjects = "native:object/%s/%s/*" + ResourceFormatNamespaceContainerObject = "native:object/%s/%s/%s" + + ResourceFormatRootObjects = "native:object/root/*" + ResourceFormatRootContainerObjects = "native:object/root/%s/*" + ResourceFormatRootContainerObject = "native:object/root/%s/%s" + + ResourceFormatAllObjects = "native:object/*" + + ResourceFormatNamespaceContainer = "native:container/%s/%s" + ResourceFormatNamespaceContainers = "native:container/%s/*" + + ResourceFormatRootContainer = "native:container/root/%s" + ResourceFormatRootContainers = "native:container/root/*" + + ResourceFormatAllContainers = "native:container/*" + + 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" +)