kubo/core/commands
Hector Sanjuan 79b388c690 Feat: use datastore.DiskUsage() and add --size-only to "repo stat"
This makes use of the PersistentDatastore DiskUsage method to
obtain the Repo's storage usage (GetStorageUsage()).

Additionally, the --size-only flag has been added to the
"ipfs repo stat" command. This avoids counting the number of objects
in the repository and returns faster.

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-07-08 13:01:46 +02:00
..
dag gx update go-log, sys, go-crypto 2018-06-08 22:36:24 -07:00
e Fix typo in an error.go comment: "is adds" -> "adds". 2018-01-17 15:25:54 -08:00
object gx update 2018-06-26 17:11:33 -07:00
unixfs gx update go-log, sys, go-crypto 2018-06-08 22:36:24 -07:00
active.go gx update go-log, sys, go-crypto 2018-06-08 22:36:24 -07:00
add.go gx update 2018-06-26 17:11:33 -07:00
bitswap.go gx update 2018-06-26 17:11:33 -07:00
block.go gx update 2018-06-26 17:11:33 -07:00
bootstrap.go gx update go-log, sys, go-crypto 2018-06-08 22:36:24 -07:00
cat.go gx update 2018-06-26 17:11:33 -07:00
commands_test.go gx update 2018-06-26 17:11:33 -07:00
commands.go gx update 2018-06-26 17:11:33 -07:00
config.go gx update go-log, sys, go-crypto 2018-06-08 22:36:24 -07:00
dht_test.go gx update 2018-06-26 17:11:33 -07:00
dht.go gx update 2018-06-26 17:11:33 -07:00
diag.go gx update go-log, sys, go-crypto 2018-06-08 22:36:24 -07:00
dns.go gx update go-log, sys, go-crypto 2018-06-08 22:36:24 -07:00
env.go golint: documentation fixes 2018-01-21 11:11:47 -08:00
external.go only construct a node in online mode when running external commands. 2018-07-05 14:32:44 -07:00
files.go gx update 2018-06-26 17:11:33 -07:00
filestore.go gx update 2018-06-26 17:11:33 -07:00
get_test.go gx update 2018-06-26 17:11:33 -07:00
get.go gx update 2018-06-26 17:11:33 -07:00
helptext_test.go gx update 2018-06-26 17:11:33 -07:00
id.go gx update 2018-06-26 17:11:33 -07:00
ipns.go gx update 2018-06-26 17:11:33 -07:00
ipnsps.go gx update 2018-06-26 17:11:33 -07:00
keystore.go gx update 2018-06-26 17:11:33 -07:00
log.go gx update 2018-06-26 17:11:33 -07:00
ls.go gx update 2018-06-26 17:11:33 -07:00
mount_nofuse.go gx update go-log, sys, go-crypto 2018-06-08 22:36:24 -07:00
mount_unix.go gx update go-log, sys, go-crypto 2018-06-08 22:36:24 -07:00
mount_windows.go gx update go-log, sys, go-crypto 2018-06-08 22:36:24 -07:00
name.go gx update go-log, sys, go-crypto 2018-06-08 22:36:24 -07:00
p2p.go gx update 2018-06-26 17:11:33 -07:00
pin.go gx update 2018-06-26 17:11:33 -07:00
ping.go gx update 2018-06-26 17:11:33 -07:00
publish.go gx update 2018-06-26 17:11:33 -07:00
pubsub.go gx update 2018-06-26 17:11:33 -07:00
refs.go gx update go-log, sys, go-crypto 2018-06-08 22:36:24 -07:00
repo.go Feat: use datastore.DiskUsage() and add --size-only to "repo stat" 2018-07-08 13:01:46 +02:00
resolve.go gx update go-log, sys, go-crypto 2018-06-08 22:36:24 -07:00
root_test.go pre-populate required arguments from request body 2018-03-18 13:04:25 -07:00
root.go gx update 2018-06-26 17:11:33 -07:00
shutdown.go gx update go-log, sys, go-crypto 2018-06-08 22:36:24 -07:00
stat.go gx update 2018-06-26 17:11:33 -07:00
swarm.go gx update 2018-06-26 17:11:33 -07:00
sysdiag.go gx update 2018-06-26 17:11:33 -07:00
tar.go gx update go-log, sys, go-crypto 2018-06-08 22:36:24 -07:00
version.go gx update go-log, sys, go-crypto 2018-06-08 22:36:24 -07:00