[#540] cli: refactor client parameters usage
All checks were successful
Build / Build Components (1.19) (pull_request) Successful in 1m59s
Build / Build Components (1.20) (pull_request) Successful in 1m48s
Tests and linters / Lint (pull_request) Successful in 2m16s
Tests and linters / Tests (1.20) (pull_request) Successful in 2m51s
Tests and linters / Staticcheck (pull_request) Successful in 2m46s
Vulncheck / Vulncheck (pull_request) Successful in 1m2s
Tests and linters / Tests (1.19) (pull_request) Successful in 18m37s
Tests and linters / Tests with -race (pull_request) Successful in 21m41s
All checks were successful
Build / Build Components (1.19) (pull_request) Successful in 1m59s
Build / Build Components (1.20) (pull_request) Successful in 1m48s
Tests and linters / Lint (pull_request) Successful in 2m16s
Tests and linters / Tests (1.20) (pull_request) Successful in 2m51s
Tests and linters / Staticcheck (pull_request) Successful in 2m46s
Vulncheck / Vulncheck (pull_request) Successful in 1m2s
Tests and linters / Tests (1.19) (pull_request) Successful in 18m37s
Tests and linters / Tests with -race (pull_request) Successful in 21m41s
Signed-off-by: Airat Arifullin a.arifullin@yadro.com
This commit is contained in:
parent
b8052c794e
commit
a4444a71be
3 changed files with 8 additions and 7 deletions
|
@ -13,6 +13,7 @@ import (
|
|||
"git.frostfs.info/TrueCloudLab/frostfs-node/cmd/frostfs-cli/internal/commonflags"
|
||||
"git.frostfs.info/TrueCloudLab/frostfs-node/cmd/frostfs-cli/internal/key"
|
||||
commonCmd "git.frostfs.info/TrueCloudLab/frostfs-node/cmd/internal/common"
|
||||
"git.frostfs.info/TrueCloudLab/frostfs-sdk-go/client"
|
||||
"git.frostfs.info/TrueCloudLab/frostfs-sdk-go/container"
|
||||
"git.frostfs.info/TrueCloudLab/frostfs-sdk-go/container/acl"
|
||||
"git.frostfs.info/TrueCloudLab/frostfs-sdk-go/netmap"
|
||||
|
@ -99,13 +100,13 @@ It will be stored in sidechain when inner ring will accepts it.`,
|
|||
_, err = internalclient.SyncContainerSettings(cmd.Context(), syncContainerPrm)
|
||||
commonCmd.ExitOnErr(cmd, "syncing container's settings rpc error: %w", err)
|
||||
|
||||
var putPrm internalclient.PutContainerPrm
|
||||
putPrm.SetClient(cli)
|
||||
putPrm.SetContainer(cnr)
|
||||
|
||||
if tok != nil {
|
||||
putPrm.WithinSession(*tok)
|
||||
putPrm := internalclient.PutContainerPrm{
|
||||
PrmContainerPut: client.PrmContainerPut{
|
||||
Container: &cnr,
|
||||
Session: tok,
|
||||
},
|
||||
}
|
||||
putPrm.SetClient(cli)
|
||||
|
||||
res, err := internalclient.PutContainer(cmd.Context(), putPrm)
|
||||
commonCmd.ExitOnErr(cmd, "put container rpc error: %w", err)
|
||||
|
|
2
go.mod
2
go.mod
|
@ -6,7 +6,7 @@ require (
|
|||
git.frostfs.info/TrueCloudLab/frostfs-api-go/v2 v2.15.1-0.20230726155259-7a5ee927c8a2
|
||||
git.frostfs.info/TrueCloudLab/frostfs-contract v0.0.0-20230627134746-36f3d39c406a
|
||||
git.frostfs.info/TrueCloudLab/frostfs-observability v0.0.0-20230531082742-c97d21411eb6
|
||||
git.frostfs.info/TrueCloudLab/frostfs-sdk-go v0.0.0-20230731113339-0fe0d716784b
|
||||
git.frostfs.info/TrueCloudLab/frostfs-sdk-go v0.0.0-20230801095957-13d0b170d2ad
|
||||
git.frostfs.info/TrueCloudLab/hrw v1.2.1
|
||||
git.frostfs.info/TrueCloudLab/tzhash v1.8.0
|
||||
github.com/cheggaaa/pb v1.0.29
|
||||
|
|
BIN
go.sum
BIN
go.sum
Binary file not shown.
Loading…
Reference in a new issue