package
0.0.0-20250222174224-cad8d4123c40
Repository: https://github.com/perkeep/perkeep.git
Documentation: pkg.go.dev

# Functions

FromFetcher fetches br from fetcher and slurps its contents to memory.
FromReader slurps the given blob from r to memory.
HashFuncs returns the names of the supported hash functions.
MustParse parse s as a blobref and panics on failure.
NewBlob constructs a Blob from its Ref, size and a function that returns the contents of the blob.
NewHash returns a new hash.Hash of the currently recommended hash type.
No description provided by the author
No description provided by the author
Parse parse s as a blobref and returns the ref and whether it was parsed successfully.
ParseBytes is like Parse, but parses from a byte slice.
ParseKnown is like Parse, but only parse blobrefs known to this server.
ParseOrZero parses as a blobref.
ReaderAt returns an io.ReaderAt of br, fetching against sf.
RefFromBytes returns a blobref from the given string, for the currently recommended hash function.
RefFromHash returns a blobref representing the given hash.
RefFromString returns a blobref from the given string, for the currently recommended hash function.
TypeAlphabet returns the valid characters in the given blobref type.
No description provided by the author

# Constants

Pattern is the regular expression which matches a blobref.

# Variables

No description provided by the author
No description provided by the author
ErrUnimplemented is returned by optional interfaces when their wrapped values don't implemented the optional interface.

# Structs

Blob represents a blob.
ChanPeeker wraps a channel receiving SizedRefs and adds a 1 element buffer on it, with Peek and Take methods.
No description provided by the author
Ref is a reference to a Perkeep blob.
SizedRef is like a Ref but includes a size.

# Interfaces

Fetcher is the minimal interface for retrieving a blob from storage.
A SubFetcher is a Fetcher that can retrieve part of a blob.

# Type aliases

ByRef sorts blob references.
SizedByRef sorts SizedRefs by their blobref.