forked from TrueCloudLab/policy-engine
[#876] policy: Add resource\request for container
Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
This commit is contained in:
parent
c80c99b13e
commit
06cbfe8691
2 changed files with 5 additions and 0 deletions
|
@ -90,6 +90,8 @@ type ObjectType byte
|
||||||
const (
|
const (
|
||||||
ObjectResource ObjectType = iota
|
ObjectResource ObjectType = iota
|
||||||
ObjectRequest
|
ObjectRequest
|
||||||
|
ContainerResource
|
||||||
|
ContainerRequest
|
||||||
)
|
)
|
||||||
|
|
||||||
type ConditionType byte
|
type ConditionType byte
|
||||||
|
|
|
@ -16,6 +16,9 @@ const (
|
||||||
MethodSetContainerEACL = "SetContainerEACL"
|
MethodSetContainerEACL = "SetContainerEACL"
|
||||||
MethodGetContainerEACL = "GetContainerEACL"
|
MethodGetContainerEACL = "GetContainerEACL"
|
||||||
|
|
||||||
|
ObjectPrefix = "native:object"
|
||||||
|
ContainerPrefix = "native:container"
|
||||||
|
|
||||||
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"
|
||||||
|
|
Loading…
Reference in a new issue