forked from TrueCloudLab/frostfs-api-go
[#293] pkg/eacl: Implement and use generator of Target
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
e0ac55c526
commit
88a3829b39
1 changed files with 18 additions and 0 deletions
18
pkg/acl/eacl/test/generate.go
Normal file
18
pkg/acl/eacl/test/generate.go
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
package eacltest
|
||||||
|
|
||||||
|
import (
|
||||||
|
"github.com/nspcc-dev/neofs-api-go/pkg/acl/eacl"
|
||||||
|
)
|
||||||
|
|
||||||
|
// Target returns random eacl.Target.
|
||||||
|
func Target() *eacl.Target {
|
||||||
|
x := eacl.NewTarget()
|
||||||
|
|
||||||
|
x.SetRole(eacl.RoleSystem)
|
||||||
|
x.SetBinaryKeys([][]byte{
|
||||||
|
{1, 2, 3},
|
||||||
|
{4, 5, 6},
|
||||||
|
})
|
||||||
|
|
||||||
|
return x
|
||||||
|
}
|
Loading…
Reference in a new issue