Documentation
¶
Overview ¶
Package blob defines reopenable blob descriptors and helper constructors that can be cached with cache.ReadWriterOf or cache.FailoverOf.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry interface {
Meta() Meta
Open() (io.ReadCloser, error)
}
Entry is a reopenable descriptor of a blob.
func FromHTTPResponse ¶
FromHTTPResponse creates a transient entry backed by an HTTP response body.
func FromReadCloser ¶
func FromReadCloser(rc io.ReadCloser, meta Meta) Entry
FromReadCloser creates a transient entry from an io.ReadCloser.
Click to show internal directories.
Click to hide internal directories.