{"modulePath":"github.com/GoogleCloudPlatform/container-diff","version":"v0.9.0","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package cache\n\n## Types\n\n```go\ntype FileCache struct {\n\tRootDir string\n\t*image.ProxySource\n}\n```\n\n```go\nfunc NewFileCache(dir string, ref types.ImageReference) (*FileCache, error)\n```\n\n```go\nfunc (c *FileCache) GetBlob(bi types.BlobInfo) (io.ReadCloser, int64, error)\n```\nGetBlob returns a stream for the specified blob, and the blob’s size (or -1 if unknown). The Digest field in BlobInfo is guaranteed to be provided; Size may be -1.\n\n```go\nfunc (c *FileCache) GetLayer(layer types.BlobInfo) (io.ReadCloser, error)\n```\n\n```go\nfunc (c *FileCache) HasLayer(layer types.BlobInfo) bool\n```\n\n```go\nfunc (c *FileCache) Invalidate(layer types.BlobInfo) error\n```\n\n```go\nfunc (c *FileCache) SetLayer(layer types.BlobInfo, r io.Reader) (io.ReadCloser, error)\n```\n\n","path":"github.com/GoogleCloudPlatform/container-diff/pkg/cache","name":"cache","synopsis":"","isRedistributable":true}
