Documentation ¶
Index ¶
- Constants
- Variables
- func BestEffortRoots(filesRoot *mfs.Root) ([]cid.Cid, error)
- func CollectResult(ctx context.Context, gcOut <-chan gc.Result, cb func(cid.Cid)) error
- func ConditionalGC(ctx context.Context, node *core.IpfsNode, offset uint64) error
- func GarbageCollect(n *core.IpfsNode, ctx context.Context) error
- func GarbageCollectAsync(n *core.IpfsNode, ctx context.Context) <-chan gc.Result
- func PeriodicGC(ctx context.Context, node *core.IpfsNode) error
- type GC
- type MultiError
- type SizeStat
- type Stat
Constants ¶
View Source
const NoLimit uint64 = math.MaxUint64
NoLimit represents the value for unlimited storage
Variables ¶
View Source
var ErrMaxStorageExceeded = errors.New("maximum storage limit exceeded. Try to unpin some files")
Functions ¶
func CollectResult ¶ added in v0.4.8
CollectResult collects the output of a garbage collection run and calls the given callback for each object removed. It also collects all errors into a MultiError which is returned after the gc is completed.
func ConditionalGC ¶ added in v0.3.10
func GarbageCollectAsync ¶
Types ¶
type GC ¶ added in v0.3.10
type MultiError ¶ added in v0.4.8
MultiError contains the results of multiple errors.
func NewMultiError ¶ added in v0.4.8
func NewMultiError(errs ...error) *MultiError
NewMultiError creates a new MultiError object from a given slice of errors.
func (*MultiError) Error ¶ added in v0.4.8
func (e *MultiError) Error() string
type SizeStat ¶ added in v0.4.17
SizeStat wraps information about the repository size and its limit.
Click to show internal directories.
Click to hide internal directories.