[#106] Add stringer and tests

Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
Denis Kirillov 2021-12-29 11:05:21 +03:00 committed by Alex Vanin
parent bd110d8b41
commit b5235bdf34
2 changed files with 88 additions and 0 deletions

View file

@ -6,6 +6,12 @@ import (
"strings"
)
type BasicACL uint32
func (a BasicACL) String() string {
return fmt.Sprintf("0x%x", uint32(a))
}
const (
// PublicBasicRule is a basic ACL value for final public-read-write container for which extended ACL CANNOT be set.
PublicBasicRule = 0x1FBFBFFF