Versions in this module Expand all Collapse all v0 v0.24.1 Oct 10, 2024 Changes in this version + var ErrNotPinned = errors.New("not pinned or pinned indirectly") + func ModeToString(mode Mode) (string, bool) + type Mode int + const Any + const Direct + const Indirect + const Internal + const NotPinned + const Recursive + func StringToMode(s string) (Mode, bool) + type Pinned struct + Key cid.Cid + Mode Mode + Name string + Via cid.Cid + func (p Pinned) Pinned() bool + func (p Pinned) String() string + type Pinner interface + CheckIfPinned func(ctx context.Context, cids ...cid.Cid) ([]Pinned, error) + DirectKeys func(ctx context.Context, detailed bool) <-chan StreamedPin + Flush func(ctx context.Context) error + InternalPins func(ctx context.Context, detailed bool) <-chan StreamedPin + IsPinned func(ctx context.Context, c cid.Cid) (string, bool, error) + IsPinnedWithType func(ctx context.Context, c cid.Cid, mode Mode) (string, bool, error) + Pin func(ctx context.Context, node ipld.Node, recursive bool, name string) error + PinWithMode func(context.Context, cid.Cid, Mode, string) error + RecursiveKeys func(ctx context.Context, detailed bool) <-chan StreamedPin + Unpin func(ctx context.Context, cid cid.Cid, recursive bool) error + Update func(ctx context.Context, from, to cid.Cid, unpin bool) error + type StreamedPin struct + Err error + Pin Pinned