Versions in this module Expand all Collapse all v1 v1.5.0 Jan 11, 2021 Changes in this version + const Base64 + const DefaultStorageTimeout + const HostStorageInfoPrefix + const HostStorePrefix + const Text + var ContractFilterMap = map[string]map[guardpb.Contract_ContractState]bool + func BytesToString(data []byte, encoding int) (string, error) + func Call(ctx context.Context, cfg *config.Config, sub string) error + func CheckAndGetReedSolomonShardHashes(ctx context.Context, node *core.IpfsNode, api coreiface.CoreAPI, ...) ([]cid.Cid, int64, error) + func CheckAndValidateHostStorageMax(ctx context.Context, cfgRoot string, r repo.Repo, newMax *uint64, ...) (uint64, error) + func ConvertPubKeyFromString(pubKeyStr string) (ic.PubKey, error) + func ConvertToPubKey(pubKeyStr string) (ic.PubKey, error) + func GetHostStorageConfig(ctx context.Context, node *core.IpfsNode) (*nodepb.Node_Settings, error) + func GetHostStorageConfigForPeer(node *core.IpfsNode, peerID string) (*nodepb.Node_Settings, error) + func GetHostStorageConfigHelper(ctx context.Context, node *core.IpfsNode, syncHub bool) (*nodepb.Node_Settings, error) + func GetHostStorageKey(pid string) ds.Key + func GetHostsFromDatastore(ctx context.Context, node *core.IpfsNode, mode string, num int) ([]*hubpb.Host, error) + func NewGoContext(reqCtx context.Context) (context.Context, context.CancelFunc) + func NewKeyHelper(kss ...string) ds.Key + func PidFromString(key string) (peer.ID, error) + func PutHostStorageConfig(node *core.IpfsNode, ns *nodepb.Node_Settings) error + func SaveHostsIntoDatastore(ctx context.Context, node *core.IpfsNode, mode string, nodes []*hubpb.Host) error + func StringToBytes(str string, encoding int) ([]byte, error) + type ByteSize float64 + const EB + const GB + const KB + const MB + const PB + const TB + const YB + const ZB + func (b ByteSize) String() string