From 72708296ccb1420a30b70f5020c107800fa38612 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Fri, 3 Jun 2022 17:12:55 +0300 Subject: [PATCH] Upgrade NeoFS SDK Go to v1.0.0-rc.4 and NeoFS API Go to v2.12.2 Signed-off-by: Leonard Lyubich --- cmd/neofs-cli/modules/bearer/create.go | 8 ++--- go.mod | 4 +-- go.sum | Bin 98369 -> 98249 bytes pkg/innerring/processors/container/common.go | 4 --- pkg/services/object/acl/acl.go | 34 ++++++++----------- 5 files changed, 20 insertions(+), 30 deletions(-) diff --git a/cmd/neofs-cli/modules/bearer/create.go b/cmd/neofs-cli/modules/bearer/create.go index 4a50456c..3796b115 100644 --- a/cmd/neofs-cli/modules/bearer/create.go +++ b/cmd/neofs-cli/modules/bearer/create.go @@ -103,10 +103,10 @@ func createToken(cmd *cobra.Command, _ []string) error { } var b bearer.Token - b.SetExpiration(exp) - b.SetNotBefore(nvb) - b.SetIssuedAt(iat) - b.SetOwnerID(ownerID) + b.SetExp(exp) + b.SetNbf(nvb) + b.SetIat(iat) + b.ForUser(ownerID) eaclPath, _ := cmd.Flags().GetString(eaclFlag) if eaclPath != "" { diff --git a/go.mod b/go.mod index c8a462f3..e9bc0412 100644 --- a/go.mod +++ b/go.mod @@ -17,9 +17,9 @@ require ( github.com/nspcc-dev/hrw v1.0.9 github.com/nspcc-dev/neo-go v0.98.3 github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20220321144137-d5a9af5860af // indirect - github.com/nspcc-dev/neofs-api-go/v2 v2.12.2-0.20220530190258-c82dcf7e1610 + github.com/nspcc-dev/neofs-api-go/v2 v2.12.2 github.com/nspcc-dev/neofs-contract v0.15.1 - github.com/nspcc-dev/neofs-sdk-go v1.0.0-rc.3.0.20220531091404-82d762f536a3 + github.com/nspcc-dev/neofs-sdk-go v1.0.0-rc.4 github.com/nspcc-dev/tzhash v1.5.2 github.com/panjf2000/ants/v2 v2.4.0 github.com/paulmach/orb v0.2.2 diff --git a/go.sum b/go.sum index c54d95d6456548c3b43bec29ecac051f08b0e740..f054303f574f8fb7203c0f0a30881624794c06dd 100644 GIT binary patch delta 194 zcmX@uz;^OK>jtSA`U)9_R+(vG`pE`K;f5grnXcYZIevv1X;C>AIaLt`X=ZNu*;$dH ziB+lk897eblMl|4oh(0{kJ(7iX!GV7Q<(KlKqfdP1||iY>8AvSmY5o*c|_*B6lptG zMHG0M`Z=a}WRxYE8x*A)n-`h*O;(&IG1*{_xS5H5dcIz6ehNr?wy8x{dU2I|gmFQ6 su~B8Fe?+Neu0f`;kyBMrdZuBBnNvZEzK@}Ik=Nt}lO;Cm&lP$M0H5AM$p8QV delta 316 zcmX^4pY>n^+Xkr_zPbi_Mg~Sk2ByXahL#3KrWU%%7Dg$_Y38YhW`+g|8HQF~%>%na|G_W)@F)+~uT5fJ;lxAvdmS_yJ-7%}QDz_rS)!4{AS3k|U%)2ru z*~B2Qys+5B)XO3;xWLi8*eOUm%*7-bXuImB&)3V%PXU>poN16^QBaVc xQW{iN= t.NotBefore() && epoch <= t.Expiration() -} - func isOwnerFromKey(id user.ID, key *keys.PublicKey) bool { if key == nil { return false