working commit

This commit is contained in:
2026-02-04 21:43:26 +02:00
parent 55e8abcdd3
commit 3900d93559
7 changed files with 340 additions and 68 deletions
+18
View File
@@ -0,0 +1,18 @@
package auxoci
import (
"encoding/json"
"fmt"
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
)
func ParseOCIManifest(source []byte) (*ocispec.Manifest, error) {
manifest := &ocispec.Manifest{}
err := json.Unmarshal(source, &manifest)
if err != nil {
err = fmt.Errorf("Manifest parsing error: %v", err)
return manifest, err
}
return manifest, err
}