(key string)
| 65 | } |
| 66 | |
| 67 | func (c RunLogCache) Open(key string) (*zip.ReadCloser, error) { |
| 68 | r, err := zip.OpenReader(c.filepath(key)) |
| 69 | if err != nil { |
| 70 | return nil, fmt.Errorf("opening cache entry: %v", err) |
| 71 | } |
| 72 | |
| 73 | return r, nil |
| 74 | } |
| 75 | |
| 76 | func (c RunLogCache) filepath(key string) string { |
| 77 | return filepath.Join(c.cacheDir, fmt.Sprintf("run-log-%s.zip", key)) |