Skip to content

Commit

Permalink
Merge pull request #2830 from tonistiigi/remotecache-docs-update
Browse files Browse the repository at this point in the history
remotecache: update spec documentation
  • Loading branch information
tonistiigi authored Apr 27, 2022
2 parents 3eed7fd + dd4eb93 commit a1793ff
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions cache/remotecache/v1/doc.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package cacheimport

// Distibutable build cache
// Distributable build cache
//
// Main manifest is OCI image index
// https://github.com/opencontainers/image-spec/blob/master/image-index.md .
Expand All @@ -13,7 +13,7 @@ package cacheimport
// Cache config file layout:
//
//{
// "layers": [
// "layers": [ <- layers contains references to blobs
// {
// "blob": "sha256:deadbeef", <- digest of layer blob in index
// "parent": -1 <- index of parent layer, -1 if no parent
Expand All @@ -24,20 +24,26 @@ package cacheimport
// }
// ],
//
// "records": [
// "records": [ <- records contains chains of cache keys
// {
// "digest": "sha256:deadbeef", <- base digest for the record
// },
// {
// "digest": "sha256:deadbeef",
// "output": 1, <- optional output index
// "layers": [ <- optional array or layer chains
// "layers": [ <- optional array of layer pointers
// {
// "createdat": "",
// "layer": 1, <- index to the layer
// "layer": 1, <- index to the layers array, layer is loaded with all of its parents
// }
// ],
// "inputs": [ <- dependant records
// "chains": [ <- optional array of layer pointer lists
// {
// "createdat": "",
// "layers": [1], <- indexes to the layers array, all layers are loaded in specified order without parents
// }
// ],
// "inputs": [ <- dependant records, this is how cache keys are linked together
// [ <- index of the dependency (0)
// {
// "selector": "sel", <- optional selector
Expand Down

0 comments on commit a1793ff

Please sign in to comment.