Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrOwnerMissing = errors.New("cache owner has no mirror")
ErrOwnerMissing is returned for a binding whose owner no longer has a mirror (it was evicted), so the binding must be discovered again.
Functions ¶
Types ¶
type Binding ¶
type Binding struct {
Version int `json:"version"`
Owner string `json:"owner"`
Repository string `json:"repository,omitempty"`
}
Binding is <root>/<key>/repository.json: the cache key whose mirror holds key's objects, and the (redacted) URL of the repository key caches. Bindings written before Repository was recorded leave it empty.
Click to show internal directories.
Click to hide internal directories.