working commit

This commit is contained in:
2026-02-05 14:37:54 +02:00
parent 2dfb4a88b8
commit e81037d75f
10 changed files with 408 additions and 119 deletions
+2 -2
View File
@@ -7,9 +7,9 @@ import (
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
)
func ParseOCIManifest(source []byte) (*ocispec.Manifest, error) {
func ParseOCIManifest(rawManifest []byte) (*ocispec.Manifest, error) {
manifest := &ocispec.Manifest{}
err := json.Unmarshal(source, &manifest)
err := json.Unmarshal(rawManifest, &manifest)
if err != nil {
err = fmt.Errorf("Manifest parsing error: %v", err)
return manifest, err