forked from TrueCloudLab/frostfs-api-go
[#139] v2/acl: Rename TargetInfo to Target
Corresponds with proto definition. Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
3c7c363002
commit
182a3af9b8
6 changed files with 24 additions and 24 deletions
|
@ -281,7 +281,7 @@ func generateObjectCtx(id string) *session.ObjectSessionContext {
|
|||
}
|
||||
|
||||
func generateEACL(n int, k, v string) *acl.Table {
|
||||
target := new(acl.TargetInfo)
|
||||
target := new(acl.Target)
|
||||
target.SetRole(acl.RoleUser)
|
||||
|
||||
keys := make([][]byte, n)
|
||||
|
@ -300,7 +300,7 @@ func generateEACL(n int, k, v string) *acl.Table {
|
|||
record := new(acl.Record)
|
||||
record.SetOperation(acl.OperationHead)
|
||||
record.SetAction(acl.ActionDeny)
|
||||
record.SetTargets([]*acl.TargetInfo{target})
|
||||
record.SetTargets([]*acl.Target{target})
|
||||
record.SetFilters([]*acl.HeaderFilter{filter})
|
||||
|
||||
table := new(acl.Table)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue