forked from TrueCloudLab/policy-engine
[#34] native: Add container methods
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
3128352693
commit
02e50307df
1 changed files with 17 additions and 2 deletions
|
@ -9,6 +9,13 @@ const (
|
||||||
MethodRangeObject = "RangeObject"
|
MethodRangeObject = "RangeObject"
|
||||||
MethodHashObject = "HashObject"
|
MethodHashObject = "HashObject"
|
||||||
|
|
||||||
|
MethodPutContainer = "PutContainer"
|
||||||
|
MethodDeleteContainer = "DeleteContainer"
|
||||||
|
MethodGetContainer = "GetContainer"
|
||||||
|
MethodListContainers = "ListContainers"
|
||||||
|
MethodSetContainerEACL = "SetContainerEACL"
|
||||||
|
MethodGetContainerEACL = "GetContainerEACL"
|
||||||
|
|
||||||
ResourceFormatNamespaceObjects = "native:object/%s/*"
|
ResourceFormatNamespaceObjects = "native:object/%s/*"
|
||||||
ResourceFormatNamespaceContainerObjects = "native:object/%s/%s/*"
|
ResourceFormatNamespaceContainerObjects = "native:object/%s/%s/*"
|
||||||
ResourceFormatNamespaceContainerObject = "native:object/%s/%s/%s"
|
ResourceFormatNamespaceContainerObject = "native:object/%s/%s/%s"
|
||||||
|
@ -27,8 +34,9 @@ const (
|
||||||
|
|
||||||
ResourceFormatAllContainers = "native:container/*"
|
ResourceFormatAllContainers = "native:container/*"
|
||||||
|
|
||||||
PropertyKeyActorPublicKey = "$Actor:publicKey"
|
PropertyKeyActorPublicKey = "$Actor:publicKey"
|
||||||
PropertyKeyActorRole = "$Actor:role"
|
PropertyKeyActorRole = "$Actor:role"
|
||||||
|
|
||||||
PropertyKeyObjectVersion = "$Object:version"
|
PropertyKeyObjectVersion = "$Object:version"
|
||||||
PropertyKeyObjectID = "$Object:objectID"
|
PropertyKeyObjectID = "$Object:objectID"
|
||||||
PropertyKeyObjectContainerID = "$Object:containerID"
|
PropertyKeyObjectContainerID = "$Object:containerID"
|
||||||
|
@ -38,4 +46,11 @@ const (
|
||||||
PropertyKeyObjectPayloadHash = "$Object:payloadHash"
|
PropertyKeyObjectPayloadHash = "$Object:payloadHash"
|
||||||
PropertyKeyObjectType = "$Object:objectType"
|
PropertyKeyObjectType = "$Object:objectType"
|
||||||
PropertyKeyObjectHomomorphicHash = "$Object:homomorphicHash"
|
PropertyKeyObjectHomomorphicHash = "$Object:homomorphicHash"
|
||||||
|
|
||||||
|
PropertyKeyContainerOwnerID = "$Container:ownerID"
|
||||||
|
|
||||||
|
PropertyValueContainerRoleOwner = "onwer"
|
||||||
|
PropertyValueContainerRoleIR = "ir"
|
||||||
|
PropertyValueContainerRoleContainer = "container"
|
||||||
|
PropertyValueContainerRoleOthers = "others"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue