ArtifactCache uses local or remote cache
| 22 | |
| 23 | // ArtifactCache uses local or remote cache |
| 24 | type ArtifactCache interface { |
| 25 | // MissingBlobs returns missing blob IDs such as layer IDs in cache |
| 26 | MissingBlobs(ctx context.Context, artifactID string, blobIDs []string) (missingArtifact bool, missingBlobIDs []string, err error) |
| 27 | |
| 28 | // PutArtifact stores artifact information such as image metadata in cache |
| 29 | PutArtifact(ctx context.Context, artifactID string, artifactInfo types.ArtifactInfo) (err error) |
| 30 | |
| 31 | // PutBlob stores blob information such as layer information in local cache |
| 32 | PutBlob(ctx context.Context, blobID string, blobInfo types.BlobInfo) (err error) |
| 33 | |
| 34 | // DeleteBlobs removes blobs by IDs |
| 35 | DeleteBlobs(ctx context.Context, blobIDs []string) error |
| 36 | } |
| 37 | |
| 38 | // LocalArtifactCache always uses local cache |
| 39 | type LocalArtifactCache interface { |
no outgoing calls
no test coverage detected
searching dependent graphs…