33 lines
748 B
Go
33 lines
748 B
Go
package bundle
|
|
|
|
import publicbundle "gitea.maximumdirect.net/eric/distributor/pkg/bundle"
|
|
|
|
const ManifestName = publicbundle.ManifestName
|
|
|
|
const SchemaVersion = publicbundle.SchemaVersion
|
|
|
|
type Manifest = publicbundle.Manifest
|
|
|
|
type ManifestFile = publicbundle.ManifestFile
|
|
|
|
type Bundle struct {
|
|
RootRelativePath string
|
|
Manifest Manifest
|
|
}
|
|
|
|
func ParseManifest(data []byte) (Manifest, error) {
|
|
return publicbundle.ParseManifest(data)
|
|
}
|
|
|
|
func MarshalManifest(manifest Manifest) ([]byte, error) {
|
|
return publicbundle.MarshalManifest(manifest)
|
|
}
|
|
|
|
func ValidateManifest(manifest Manifest) error {
|
|
return publicbundle.ValidateManifest(manifest)
|
|
}
|
|
|
|
func ValidateSourcePath(path string) error {
|
|
return publicbundle.ValidateSourcePath(path)
|
|
}
|