forked from TrueCloudLab/frostfs-api-go
[#172] v2/acl: Rename target keyList
field to keys
According to new neofs-api target filed `key_list` rename to `keys`. Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
80b7033606
commit
5f6720f456
6 changed files with 12 additions and 12 deletions
|
@ -32,7 +32,7 @@ func (t *Target) ToV2() *v2acl.Target {
|
|||
target := new(v2acl.Target)
|
||||
|
||||
target.SetRole(t.role.ToV2())
|
||||
target.SetKeyList(keys)
|
||||
target.SetKeys(keys)
|
||||
|
||||
return target
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ func NewTargetFromV2(target *v2acl.Target) *Target {
|
|||
}
|
||||
|
||||
t.role = RoleFromV2(target.GetRole())
|
||||
v2keys := target.GetKeyList()
|
||||
v2keys := target.GetKeys()
|
||||
t.keys = make([]ecdsa.PublicKey, 0, len(v2keys))
|
||||
for i := range v2keys {
|
||||
key := crypto.UnmarshalPublicKey(v2keys[i])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue