Schema2FromComponents creates an Schema2 manifest instance from the supplied data.
(config Schema2Descriptor, layers []Schema2Descriptor)
| 179 | |
| 180 | // Schema2FromComponents creates an Schema2 manifest instance from the supplied data. |
| 181 | func 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. |
| 191 | func Schema2Clone(src *Schema2) *Schema2 { |
no outgoing calls
searching dependent graphs…