MCPcopy Create free account
hub / github.com/containers/image / Schema2FromComponents

Function Schema2FromComponents

manifest/docker_schema2.go:181–188  ·  view source on GitHub ↗

Schema2FromComponents creates an Schema2 manifest instance from the supplied data.

(config Schema2Descriptor, layers []Schema2Descriptor)

Source from the content-addressed store, hash-verified

179
180// Schema2FromComponents creates an Schema2 manifest instance from the supplied data.
181func Schema2FromComponents(config Schema2Descriptor, layers []Schema2Descriptor) *Schema2 {
182 return &Schema2{
183 SchemaVersion: 2,
184 MediaType: DockerV2Schema2MediaType,
185 ConfigDescriptor: config,
186 LayersDescriptors: layers,
187 }
188}
189
190// Schema2Clone creates a copy of the supplied Schema2 manifest.
191func Schema2Clone(src *Schema2) *Schema2 {

Callers 3

Calls

no outgoing calls

Tested by 2

Used in the wild real call sites across dependent graphs

searching dependent graphs…