[#225] container: Refactor and document basic ACL

Replace basic ACL functionality from `acl` package to the `container`
one. Create `BasicACL` type and provide convenient interface to work
with it.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2022-06-16 09:17:41 +03:00 committed by fyrchik
parent af7e20073b
commit e82a2d86ef
13 changed files with 961 additions and 247 deletions

View file

@ -31,7 +31,7 @@ func Container() *container.Container {
x.SetVersion(&ver)
x.SetAttributes(Attributes())
x.SetOwnerID(usertest.ID())
x.SetBasicACL(123)
x.SetBasicACL(container.BasicACLPublicRW)
p := netmaptest.PlacementPolicy()
x.SetPlacementPolicy(&p)