Versions in this module Expand all Collapse all v1 v1.5.0 Jan 11, 2021 Changes in this version + var StorageContractsCmd = &cmds.Command + func GetUpdatedGuardContractsForHost(ctx context.Context, n *core.IpfsNode, lastUpdatedTime *time.Time) ([]*guardpb.Contract, error) + func GetUpdatedGuardContractsForRenter(ctx context.Context, n *core.IpfsNode, lastUpdatedTime *time.Time) ([]*guardpb.Contract, error) + func ListContracts(d datastore.Datastore, peerId, role string) ([]*nodepb.Contracts_Contract, error) + func ListHostContracts(ctx context.Context, cfg *config.Config, ...) ([]*guardpb.Contract, bool, error) + func Save(d datastore.Datastore, cs []*nodepb.Contracts_Contract, role string) error + func SyncContracts(ctx context.Context, n *core.IpfsNode, req *cmds.Request, env cmds.Environment, ...) error + type ByTime []*nodepb.Contracts_Contract + func (a ByTime) Len() int + func (a ByTime) Less(i, j int) bool + func (a ByTime) Swap(i, j int)