From 06cbfe8691ad5a46e87695d2d3f3871a51f0f687 Mon Sep 17 00:00:00 2001 From: Anton Nikiforov Date: Mon, 22 Jan 2024 13:47:24 +0300 Subject: [PATCH] [#876] policy: Add resource\request for container Signed-off-by: Anton Nikiforov --- pkg/chain/chain.go | 2 ++ schema/native/consts.go | 3 +++ 2 files changed, 5 insertions(+) diff --git a/pkg/chain/chain.go b/pkg/chain/chain.go index fec4370..ec718a5 100644 --- a/pkg/chain/chain.go +++ b/pkg/chain/chain.go @@ -90,6 +90,8 @@ type ObjectType byte const ( ObjectResource ObjectType = iota ObjectRequest + ContainerResource + ContainerRequest ) type ConditionType byte diff --git a/schema/native/consts.go b/schema/native/consts.go index eab9ec0..d6babb1 100644 --- a/schema/native/consts.go +++ b/schema/native/consts.go @@ -16,6 +16,9 @@ const ( MethodSetContainerEACL = "SetContainerEACL" MethodGetContainerEACL = "GetContainerEACL" + ObjectPrefix = "native:object" + ContainerPrefix = "native:container" + ResourceFormatNamespaceObjects = "native:object/%s/*" ResourceFormatNamespaceContainerObjects = "native:object/%s/%s/*" ResourceFormatNamespaceContainerObject = "native:object/%s/%s/%s"