Documentation ¶
Index ¶
- func CleanupDirty(tx internal.TxExecutor) error
- func DeletePin(ctx context.Context, tx internal.TxExecutor, root swarm.Address) error
- func HasPin(st storage.Store, root swarm.Address) (bool, error)
- func IterateCollection(st storage.Store, root swarm.Address, ...) error
- func IterateCollectionStats(st storage.Store, iterateFn func(st CollectionStat) (bool, error)) error
- func NewCollection(st internal.Storage) (internal.PutterCloserWithReference, error)
- func Pins(st storage.Store) ([]swarm.Address, error)
- type CollectionStat
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupDirty ¶
func CleanupDirty(tx internal.TxExecutor) error
CleanupDirty will iterate over all the dirty collections and delete them.
func DeletePin ¶
DeletePin will delete the root pin and all the chunks that are part of this collection.
func IterateCollection ¶
func IterateCollectionStats ¶
func NewCollection ¶
func NewCollection(st internal.Storage) (internal.PutterCloserWithReference, error)
NewCollection returns a putter wrapped around the passed storage. The putter will add the chunk to Chunk store if it doesnt exists within this collection. It will create a new UUID for the collection which can be used to iterate on all the chunks that are part of this collection. The root pin is only updated on successful close of this Putter.
Types ¶
type CollectionStat ¶
CollectionStat is used to store some basic stats about the pinning collection
Click to show internal directories.
Click to hide internal directories.