MCPcopy
hub / github.com/containerd/containerd / createConfig

Function createConfig

integration/client/import_test.go:507–518  ·  view source on GitHub ↗
(osName, archName, author string)

Source from the content-addressed store, hash-verified

505}
506
507func 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
520func createManifest(config []byte, layers [][]byte) ([]byte, digest.Digest, *ocispec.Manifest) {
521 manifest := ocispec.Manifest{

Callers 2

TestImportFunction · 0.85
createImagesFunction · 0.85

Calls 1

MarshalMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…