forked from TrueCloudLab/frostfs-api-go
19 lines
269 B
Go
19 lines
269 B
Go
|
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
|
||
|
}
|