MCPcopy Index your code
hub / github.com/docker/cli / newBuildCacheContext

Function newBuildCacheContext

cli/command/formatter/buildcache.go:93–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91}
92
93func newBuildCacheContext() *buildCacheContext {
94 buildCacheCtx := buildCacheContext{}
95 buildCacheCtx.Header = SubHeaderContext{
96 "ID": cacheIDHeader,
97 "Parent": parentHeader,
98 "CacheType": cacheTypeHeader,
99 "Size": SizeHeader,
100 "CreatedSince": CreatedSinceHeader,
101 "LastUsedSince": lastUsedSinceHeader,
102 "UsageCount": usageCountHeader,
103 "InUse": inUseHeader,
104 "Shared": sharedHeader,
105 "Description": DescriptionHeader,
106 }
107 return &buildCacheCtx
108}
109
110func (c *buildCacheContext) MarshalJSON() ([]byte, error) {
111 return MarshalJSON(c)

Callers 2

BuildCacheWriteFunction · 0.85
verboseWriteTableMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…