working commit
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user