From d4d0feb59d84b728eb86e1d5ddd6340f06addb95 Mon Sep 17 00:00:00 2001
From: Denis Kirillov <denis@nspcc.ru>
Date: Wed, 29 Dec 2021 10:41:35 +0300
Subject: [PATCH] [#106] Add public constants for well-known names

Signed-off-by: Denis Kirillov <denis@nspcc.ru>
---
 acl/types.go | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/acl/types.go b/acl/types.go
index 9d6c509..6b7c66d 100644
--- a/acl/types.go
+++ b/acl/types.go
@@ -25,3 +25,29 @@ const (
 	// EACLPublicAppendRule is a basic ACL value for non-final public-append container for which extended ACL CAN be set.
 	EACLPublicAppendRule = 0x0FBF9FFF
 )
+
+const (
+	// PublicBasicName is a well-known name for 0x1FBFBFFF basic ACL.
+	PublicBasicName = "public-read-write"
+
+	// PrivateBasicName is a well-known name for 0x1C8C8CCC basic ACL.
+	PrivateBasicName = "private"
+
+	// ReadOnlyBasicName is a well-known name for 0x1FBF8CFF basic ACL.
+	ReadOnlyBasicName = "public-read"
+
+	// PublicAppendName is a well-known name for 0x1FBF9FFF basic ACL.
+	PublicAppendName = "public-append"
+
+	// EACLPublicBasicName is a well-known name for 0x0FBFBFFF basic ACL.
+	EACLPublicBasicName = "eacl-public-read-write"
+
+	// EACLPrivateBasicName is a well-known name for 0x0C8C8CCC basic ACL.
+	EACLPrivateBasicName = "eacl-private"
+
+	// EACLReadOnlyBasicName is a well-known name for 0x0FBF8CFF basic ACL.
+	EACLReadOnlyBasicName = "eacl-public-read"
+
+	// EACLPublicAppendName is a well-known name for 0x0FBF9FFF basic ACL.
+	EACLPublicAppendName = "eacl-public-append"
+)