Skip to content

Commit

Permalink
Merge pull request #65 from 0chain/fix/allocation
Browse files Browse the repository at this point in the history
Fetch allocation by allocationID instead of allocationTx
  • Loading branch information
Kishan-Dhakan authored Jun 13, 2023
2 parents 0d63a07 + 8d89541 commit a13d59f
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
1 change: 1 addition & 0 deletions cmd.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/usr/local/bin/s3mgrt migrate --access-key AKIA4MPQDEZ4ODBRWUOU --secret-key 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 --allocation $alloc --bucket cloud-mig --skip 1 --resume true
16 changes: 14 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,20 @@ var (
bSilent bool

rootCmd = &cobra.Command{
Use: "s3migration",
Short: "S3-Migration to migrate s3 buckets to dStorage allocation",
Use: "s3migration",
Short: "S3-Migration to " +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"migrate s3 buckets to dStorage allocation",
Long: `S3-Migration uses 0chain-gosdk to communicate with 0chain network. It uses AWS SDK for Go program
to communicate with s3.`,
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.20

require (
github.com/0chain/errors v1.0.3
github.com/0chain/gosdk v1.8.17-0.20230601002348-0ca1e8ca3445
github.com/0chain/gosdk v1.8.17-0.20230613172735-1ed7418612be
github.com/aws/aws-sdk-go-v2 v1.17.1
github.com/aws/aws-sdk-go-v2/config v1.17.10
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.11.37
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ github.com/0chain/common v0.0.6-0.20230127095721-8df4d1d72565 h1:z+DtCR8mBsjPnEs
github.com/0chain/common v0.0.6-0.20230127095721-8df4d1d72565/go.mod h1:UyDC8Qyl5z9lGkCnf9RHJPMektnFX8XtCJZHXCCVj8E=
github.com/0chain/errors v1.0.3 h1:QQZPFxTfnMcRdt32DXbzRQIfGWmBsKoEdszKQDb0rRM=
github.com/0chain/errors v1.0.3/go.mod h1:xymD6nVgrbgttWwkpSCfLLEJbFO6iHGQwk/yeSuYkIc=
github.com/0chain/gosdk v1.8.17-0.20230601002348-0ca1e8ca3445 h1:B8YojfxAGcgU9iEe8Tet/9k/oyvJ4xGtBosJz2BapcA=
github.com/0chain/gosdk v1.8.17-0.20230601002348-0ca1e8ca3445/go.mod h1:IN4Tejoe8O4ktC6bJWVvPhj3r0frMYviShjGINo41KY=
github.com/0chain/gosdk v1.8.17-0.20230613172735-1ed7418612be h1:BkJPrh+HgMoDRtNrOrbRxn6b23TZkAci2APPxhnb9Do=
github.com/0chain/gosdk v1.8.17-0.20230613172735-1ed7418612be/go.mod h1:YWr9ZGV76N9LWEO3AIys5ao3GI9kVDcrVHDIlV3RJKU=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
github.com/Luzifer/go-openssl/v3 v3.1.0 h1:QqKqo6kYXGGUsvtUoCpRZm8lHw+jDfhbzr36gVj+/gw=
Expand Down

0 comments on commit a13d59f

Please sign in to comment.