Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bucket init from Cid, add IPFS UnixFS in local bucket, SetHead API, update Powergate #231

Merged
merged 21 commits into from
Jun 11, 2020

Conversation

jsign
Copy link
Contributor

@jsign jsign commented Jun 9, 2020

This PR is adding three features:

  • A new flag for init-ing a bucket with buck init --cid, which will create a bucket with bootstrap data from the provided <cid>. This Cid is a UnixFS DAG in the IPFS network.
  • Adding content to an existing bucket from the IPFS network. buck add <cid> <path>.
  • A new API for setting an IPFS UnixFS DAG at an arbitrary path in an existing bucket.

Also, it updates to newest version of Powergate and lotus-devnet.

Close #188

jsign added 2 commits June 8, 2020 22:33
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
@jsign jsign added this to the Sprint 38 milestone Jun 9, 2020
@jsign jsign self-assigned this Jun 9, 2020
jsign added 6 commits June 9, 2020 18:05
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
@jsign jsign changed the title buckets: reset arbitrary path to Cid buckets: bootstrap from Cid, merge with Cid Jun 10, 2020
@jsign jsign changed the title buckets: bootstrap from Cid, merge with Cid Bootstrap bucket from IPFS UnixFS cid, Add IPFS UnixFS in local bucket, update Powergate Jun 10, 2020
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
jsign added 10 commits June 10, 2020 12:59
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
api/buckets/client/client.go Show resolved Hide resolved
api/buckets/client/client.go Show resolved Hide resolved
api/buckets/client/client_test.go Show resolved Hide resolved
api/buckets/client/client_test.go Show resolved Hide resolved
api/buckets/client/client_test.go Show resolved Hide resolved
api/buckets/service.go Show resolved Hide resolved
api/buckets/service.go Show resolved Hide resolved
cmd/buck/cli/add.go Outdated Show resolved Hide resolved
cmd/buck/cli/add.go Show resolved Hide resolved
cmd/buck/cli/init.go Show resolved Hide resolved
@jsign jsign requested a review from sanderpick June 10, 2020 20:21
@jsign jsign marked this pull request as ready for review June 10, 2020 20:21
go.mod Show resolved Hide resolved
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
go.mod Show resolved Hide resolved
@jsign jsign changed the title Bootstrap bucket from IPFS UnixFS cid, Add IPFS UnixFS in local bucket, update Powergate bucket init from Cid, add IPFS UnixFS in local bucket, SetHead API, update Powergate Jun 10, 2020
Copy link
Member

@sanderpick sanderpick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Didn't see any issues 🔥 Happy to have an extra set of eyes in the buck command.

api/buckets/client/client.go Show resolved Hide resolved
api/buckets/pb/buckets.proto Show resolved Hide resolved
api/buckets/client/client_test.go Show resolved Hide resolved
api/buckets/pb/buckets.proto Show resolved Hide resolved
api/buckets/service.go Show resolved Hide resolved
api/buckets/service.go Show resolved Hide resolved
cmd/buck/cli/add.go Outdated Show resolved Hide resolved
cmd/buck/cli/init.go Show resolved Hide resolved
go.mod Show resolved Hide resolved
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
@jsign jsign merged commit d6c3b71 into master Jun 11, 2020
@jsign jsign deleted the jsign/buckfeed branch June 11, 2020 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Push existing IPFS cid to a bucket
2 participants