lotus/node/impl/client
Peter Rabbitson 0444435589 Expose basic text-based datamodel selector on retrieval
Syntaxt of selection is located at
https://pkg.go.dev/github.com/ipld/go-ipld-selector-text-lite#SelectorSpecFromPath

Example use, assuming that:
  - The root of the deal is a plain dag-pb unixfs directory
  - The directory is not sharded
  - The user wants to retrieve the first entry in that directory

  lotus client retrieve --miner f0XXXXX --datamodel-path-selector 'Links/0/Hash' bafyROOTCID ~/output

For a much more elaborate example see the top of ./itests/deals_partial_retrieval_test.go
2021-09-10 09:44:11 +02:00
..
testdata integrate DAG store and CARv2 in deal-making (#6671) 2021-08-16 23:34:32 +01:00
car_helpers.go integrate DAG store and CARv2 in deal-making (#6671) 2021-08-16 23:34:32 +01:00
client_test.go integrate DAG store and CARv2 in deal-making (#6671) 2021-08-16 23:34:32 +01:00
client.go Expose basic text-based datamodel selector on retrieval 2021-09-10 09:44:11 +02:00
import_test.go integrate DAG store and CARv2 in deal-making (#6671) 2021-08-16 23:34:32 +01:00
import.go integrate DAG store and CARv2 in deal-making (#6671) 2021-08-16 23:34:32 +01:00