Documentation ¶
Overview ¶
package pin implements structures and methods to keep track of which objects a user wants to keep stored locally.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotPinned = fmt.Errorf("not pinned")
Functions ¶
This section is empty.
Types ¶
type Pinner ¶
type Pinner interface { IsPinned(key.Key) (string, bool, error) IsPinnedWithType(key.Key, string) (string, bool, error) Pin(context.Context, *mdag.Node, bool) error Unpin(context.Context, key.Key, bool) error // PinWithMode is for manually editing the pin structure. Use with // care! If used improperly, garbage collection may not be // successful. PinWithMode(key.Key, PinMode) // RemovePinWithMode is for manually editing the pin structure. // Use with care! If used improperly, garbage collection may not // be successful. RemovePinWithMode(key.Key, PinMode) Flush() error DirectKeys() []key.Key RecursiveKeys() []key.Key InternalPins() []key.Key }
func LoadPinner ¶
LoadPinner loads a pinner and its keysets from the given datastore
Click to show internal directories.
Click to hide internal directories.