# Functions
Combine a list of Fetchers into a single Fetcher implementation.
FetchAsStream gets a reference as a stream.
IsBrokenReferenceError returns true, if err is a BrokenReferenceError error.
WithCancel returns a Context and a cancel function similar to context.WithCancel.
# Variables
Artifact is a Fetcher for downloading from an (taskId, artifact) tuple.
ErrStreamReset returned from io.Reader when the fetch process is reset.
Index is a Fetcher for downloading from an (index, artifact) tuple.
URL is Fetcher for downloading files from a URL.
URLHash is Fetcher for downloading files from a URL with a given hash.
# Structs
BrokenReferenceError is used to communicate references that are broken.
FileReseter implements WriteReseter for an *os.File instance.
# Interfaces
Context for fetching resource from a reference.
A Fetcher specifies a schema for references that it knows how to fetch.
File interface as implemented by *os.File.
A Reference to a blob that can be fetched.
WriteReseter is a io.Writer with Reset() method that discards everything written and starts over from scratch.
# Type aliases
A StreamHandler is a function that handles a stream, the stream maybe a aborted in which case io.Reader will return ErrStreamReset and the Context will be canceled.