kubo/core
Stephen Whitmore 32ceaa61e8 Resolves paths in 'pin rm' without network lookup.
Fixes ipfs/go-ipfs#2155 by turning the hash path arguments into keys
and unpinning directly, rather than running a full core.Resolve on
them. This lets users fail fast when they try to remove pins that
they don't have locally.

Note that this will only work when the path is of the form <hash> or
/ipfs/<hash>. Given e.g. /ipfs/<hash>/foo, foo's key cannot be known
without first resolving <hash>, which may involve talking to the
network.

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-01-16 03:11:36 +01:00
..
commands remove failed merge tag from pin ls help 2016-01-12 12:32:21 -08:00
corehttp use ServeContent for index.html 2016-01-12 08:22:55 -08:00
corenet Reorged imports from jbenet/go-ipfs to ipfs/go-ipfs 2015-03-31 12:52:25 -07:00
corerepo Resolves paths in 'pin rm' without network lookup. 2016-01-16 03:11:36 +01:00
corerouting vendor in new go-datastore 2016-01-12 08:22:55 -08:00
coreunix just flush dir in mkdir flush, not whole tree 2016-01-12 08:22:55 -08:00
mock vendor in new go-datastore 2016-01-12 08:22:55 -08:00
.gitignore ignore testdb 2014-07-05 15:04:04 -07:00
bootstrap_test.go Reorged imports from jbenet/go-ipfs to ipfs/go-ipfs 2015-03-31 12:52:25 -07:00
bootstrap.go use new methods from goprocess/context, remove thirdparty/waitable 2015-09-08 21:37:40 -07:00
builder.go vendor in new go-datastore 2016-01-12 08:22:55 -08:00
core_test.go core tests: Stop assuming internals of Config 2016-01-12 08:22:55 -08:00
core.go vendor in new go-datastore 2016-01-12 08:22:55 -08:00
pathresolver_test.go Add test to detect invalid path 2015-07-04 02:50:15 +07:00
pathresolver.go Resolves paths in 'pin rm' without network lookup. 2016-01-16 03:11:36 +01:00