package
0.0.0-20240618082255-83008eb4fce2
Repository: https://github.com/bittorrent/go-btfs.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
No description provided by the author
CheckAndGetReedSolomonShardHashes checks to see if a root hash is a reed solomon file, if ok, returns the list of shard hashes.
CheckAndValidateHostStorageMax makes sure the current storage max is under the accepted disk space max, if not, corrects this value.
No description provided by the author
No description provided by the author
GetHostsFromDatastore retrieves `num` hosts from the datastore, if not enough hosts are available, return an error instead of partial return.
GetHostStorageConfig checks if locally is storing a config, if yes, returns it, otherwise, queries hub to retrieve the latest default config.
GetHostStorageConfigForPeer retrieves locally saved info about peer (including self).
GetHostStorageConfigHelper checks if locally is storing a config, if yes, returns it, otherwise, queries hub to retrieve the latest default config.
No description provided by the author
NewGoContext creates a new context with remaining timeout from the existing request context, so that request can be cancelled and new goroutine should use this new context.
No description provided by the author
No description provided by the author
PutHostStorageConfig saves an updated storage storage config.
SaveHostsIntoDatastore overwrites (removes all existing) hosts and saves the updated hosts according to mode.
No description provided by the author

# Constants

No description provided by the author
Normally each op has its own timeout, but in case of buggy paths this timeout serves as a catch-all to prevent mem leaks.
No description provided by the author
No description provided by the author
self or from network.
from btfs-hub.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author

# Type aliases

No description provided by the author