Files
mstore/pkg/auxoci/ociaux.go
T
2026-02-04 21:43:26 +02:00

19 lines
375 B
Go

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
}