2026-05-31 02:07:30 +00:00
|
|
|
package bundle
|
|
|
|
|
|
2026-06-01 20:52:23 +00:00
|
|
|
import publicbundle "gitea.maximumdirect.net/eric/distributor/pkg/bundle"
|
2026-05-31 02:07:30 +00:00
|
|
|
|
2026-06-01 20:52:23 +00:00
|
|
|
const ManifestName = publicbundle.ManifestName
|
2026-05-31 02:07:30 +00:00
|
|
|
|
2026-06-01 20:52:23 +00:00
|
|
|
const SchemaVersion = publicbundle.SchemaVersion
|
2026-05-31 02:07:30 +00:00
|
|
|
|
2026-06-01 20:52:23 +00:00
|
|
|
type Manifest = publicbundle.Manifest
|
|
|
|
|
|
|
|
|
|
type ManifestFile = publicbundle.ManifestFile
|
2026-05-31 02:07:30 +00:00
|
|
|
|
|
|
|
|
type Bundle struct {
|
|
|
|
|
RootRelativePath string
|
|
|
|
|
Manifest Manifest
|
|
|
|
|
}
|
|
|
|
|
|
2026-06-01 20:52:23 +00:00
|
|
|
func ParseManifest(data []byte) (Manifest, error) {
|
|
|
|
|
return publicbundle.ParseManifest(data)
|
2026-05-31 02:07:30 +00:00
|
|
|
}
|
|
|
|
|
|
2026-06-01 20:52:23 +00:00
|
|
|
func MarshalManifest(manifest Manifest) ([]byte, error) {
|
|
|
|
|
return publicbundle.MarshalManifest(manifest)
|
2026-05-31 02:07:30 +00:00
|
|
|
}
|
|
|
|
|
|
2026-06-01 20:52:23 +00:00
|
|
|
func ValidateManifest(manifest Manifest) error {
|
|
|
|
|
return publicbundle.ValidateManifest(manifest)
|
2026-05-31 02:07:30 +00:00
|
|
|
}
|
|
|
|
|
|
2026-06-01 20:52:23 +00:00
|
|
|
func ValidateSourcePath(path string) error {
|
|
|
|
|
return publicbundle.ValidateSourcePath(path)
|
2026-05-31 02:07:30 +00:00
|
|
|
}
|