forked from TrueCloudLab/frostfs-node
[#88] object/eacl: Use String() methods to calculate ID values
Replace hex encoding of IDs with String() call (base58) in eACL processing. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
5318abcf38
commit
2541ed4b8f
1 changed files with 3 additions and 6 deletions
|
@ -1,7 +1,6 @@
|
|||
package v2
|
||||
|
||||
import (
|
||||
"encoding/hex"
|
||||
"strconv"
|
||||
|
||||
"github.com/nspcc-dev/neofs-api-go/pkg/container"
|
||||
|
@ -23,18 +22,16 @@ func (s *sysObjHdr) GetValue() string {
|
|||
return s.v
|
||||
}
|
||||
|
||||
// TODO: replace value conversions to neofs-api-go
|
||||
|
||||
func idValue(id *objectSDK.ID) string {
|
||||
return hex.EncodeToString(id.ToV2().GetValue())
|
||||
return id.String()
|
||||
}
|
||||
|
||||
func cidValue(id *container.ID) string {
|
||||
return hex.EncodeToString(id.ToV2().GetValue())
|
||||
return id.String()
|
||||
}
|
||||
|
||||
func ownerIDValue(id *owner.ID) string {
|
||||
return hex.EncodeToString(id.ToV2().GetValue())
|
||||
return id.String()
|
||||
}
|
||||
|
||||
func u64Value(v uint64) string {
|
||||
|
|
Loading…
Reference in a new issue