2026-05-31 02:07:30 +00:00
|
|
|
package bundle
|
|
|
|
|
|
2026-06-02 18:52:33 +00:00
|
|
|
import publicbundle "gitea.maximumdirect.net/eric/distributor/pkg/bundle"
|
2026-05-31 02:07:30 +00:00
|
|
|
|
|
|
|
|
func ValidateDigest(value string) error {
|
2026-06-02 18:52:33 +00:00
|
|
|
return publicbundle.ValidateDigest(value)
|
2026-05-31 02:07:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func FileDigest(data []byte) string {
|
2026-06-01 20:52:23 +00:00
|
|
|
return publicbundle.FileDigest(data)
|
2026-05-31 02:07:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func BundleDigest(files []ManifestFile) string {
|
2026-06-01 20:52:23 +00:00
|
|
|
return publicbundle.BundleDigest(files)
|
2026-05-31 02:07:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func CanonicalFilePayload(files []ManifestFile) string {
|
2026-06-01 20:52:23 +00:00
|
|
|
return publicbundle.CanonicalFilePayload(files)
|
2026-05-31 02:07:30 +00:00
|
|
|
}
|