Versions in this module Expand all Collapse all v0 v0.10.0 Jul 10, 2020 Changes in this version + var ErrEmptyContainer = internal.Error("could not get container, it's empty") + var ErrEmptyNodes = internal.Error("container doesn't contains nodes") + var ErrNodesBucketOmitted = internal.Error("nodes-bucket is omitted") + type Component interface + Neighbours func(seed, epoch uint64, full bool) []peers.ID + NetworkState func() *bootstrap.SpreadMap + Query func(ctx context.Context, opts ...QueryOption) (Graph, error) + Update func(epoch uint64, nm *netmap.NetMap) error + func New(p Params) Component + type FilterRule func(netmap.SFGroup, *netmap.Bucket) *netmap.Bucket + type Graph interface + Exclude func(list []multiaddr.Multiaddr) Graph + Filter func(rule FilterRule) Graph + NodeInfo func() ([]bootstrap.NodeInfo, error) + NodeList func() ([]multiaddr.Multiaddr, error) + func ContainerGraph(nm *netmap.NetMap, rule *netmap.PlacementRule, ignore []uint32, cid refs.CID) (Graph, error) + type Key []byte + type NetMap = netmap.NetMap + type Params struct + ChronologyDuration uint64 + Fetcher container.Storage + Log *zap.Logger + Netmap *netmap.NetMap + Peerstore peers.Store + type QueryOption func(*QueryOptions) + func ContainerID(cid refs.CID) QueryOption + func ExcludeNodes(list []multiaddr.Multiaddr) QueryOption + func UsePreviousNetmap(diff int) QueryOption + type QueryOptions struct + CID refs.CID + Excludes []multiaddr.Multiaddr + Previous int