We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39ad6e0 commit f5ddaefCopy full SHA for f5ddaef
cache/remotecache/v1/chains.go
@@ -81,6 +81,12 @@ func (c *CacheChains) normalize(ctx context.Context) error {
81
return nil
82
}
83
84
+// Marshal converts the cache chains structure into a cache config and a
85
+// collection of providers for reading the results from.
86
+//
87
+// Marshal aims to validate, normalize and sort the output to ensure a
88
+// consistent digest (since cache configs are typically uploaded and stored in
89
+// content-addressable OCI registries).
90
func (c *CacheChains) Marshal(ctx context.Context) (*CacheConfig, DescriptorProvider, error) {
91
if err := c.normalize(ctx); err != nil {
92
return nil, nil, err
0 commit comments