Skip to content

Commit

Permalink
Tweak comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejholly committed May 16, 2024
1 parent 6190510 commit a917e12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cache/remotecache/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ type image struct {
DiffIDs []digest.Digest `json:"diff_ids"`
} `json:"rootfs"`
Cache []byte `json:"moby.buildkit.cache.v0"`
EarthlyInlineCache []byte `json:"earthly.inlinecache.v0"` // TODO: Use a better name
EarthlyInlineCache []byte `json:"earthly.inlinecache.v0"`
History []struct {
Created *time.Time `json:"created,omitempty"`
CreatedBy string `json:"created_by,omitempty"`
Expand Down
2 changes: 2 additions & 0 deletions cache/remotecache/inline.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ func preprocessLayers(img image, m ocispecs.Manifest) ([]ocispecs.Descriptor, er
return ret, nil
}

// configDescriptor parses and returns the correct manifest for the given manifest type.
func configDescriptor(dt []byte, manifestType string) (ocispecs.Descriptor, error) {
var configDesc ocispecs.Descriptor

Expand Down Expand Up @@ -204,6 +205,7 @@ func configDescriptor(dt []byte, manifestType string) (ocispecs.Descriptor, erro
return configDesc, nil
}

// allDistributionManifests pulls all manifest data & linked manifests using the provider.
func allDistributionManifests(ctx context.Context, provider content.Provider, dt []byte, m map[digest.Digest][]byte) error {
mt, err := imageutil.DetectManifestBlobMediaType(dt)
if err != nil {
Expand Down

0 comments on commit a917e12

Please sign in to comment.