working commit

This commit is contained in:
2026-02-05 17:13:35 +02:00
parent e81037d75f
commit 8dce641498
6 changed files with 170 additions and 64 deletions
+5
View File
@@ -4,6 +4,7 @@ import (
"encoding/json"
"fmt"
ocidigest "github.com/opencontainers/go-digest"
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
)
@@ -16,3 +17,7 @@ func ParseOCIManifest(rawManifest []byte) (*ocispec.Manifest, error) {
}
return manifest, err
}
func SHA256DigestFromString(payload string) ocidigest.Digest {
return ocidigest.SHA256.FromString(payload)
}