(osName, archName, author string)
| 505 | } |
| 506 | |
| 507 | func createConfig(osName, archName, author string) ([]byte, digest.Digest) { |
| 508 | image := ocispec.Image{ |
| 509 | Platform: ocispec.Platform{ |
| 510 | OS: osName, |
| 511 | Architecture: archName, |
| 512 | }, |
| 513 | Author: author, |
| 514 | } |
| 515 | b, _ := json.Marshal(image) |
| 516 | |
| 517 | return b, digest.FromBytes(b) |
| 518 | } |
| 519 | |
| 520 | func createManifest(config []byte, layers [][]byte) ([]byte, digest.Digest, *ocispec.Manifest) { |
| 521 | manifest := ocispec.Manifest{ |
no test coverage detected
searching dependent graphs…