Documentation
¶
Overview ¶
Package cache provides a filesystem-backed cache for debuginfod artifacts.
DiskCache wraps a debuginfod.Client and turns its streaming responses into *os.File handles suitable for random-access reads.
On-disk layout under the root directory:
<buildID>/debuginfo <buildID>/executable <buildID>/section/<escaped-name> <buildID>/source/<escaped-seg>/<escaped-seg>/...
Writes are atomic.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiskCache ¶
type DiskCache struct {
// contains filtered or unexported fields
}
DiskCache caches debuginfod artifacts on the local filesystem.
func NewDiskCache ¶
func NewDiskCache(opts DiskCacheOptions) (*DiskCache, error)
type DiskCacheOptions ¶
type Fetcher ¶
Fetcher provides debuginfod artifacts to a DiskCache on a miss. *debuginfod.Client implements Fetcher. Implement it yourself to back the cache with a custom source such as a test stub or an alternative transport.
Click to show internal directories.
Click to hide internal directories.