Files

33 lines
748 B
Go
Raw Permalink Normal View History

package bundle
2026-06-01 20:52:23 +00:00
import publicbundle "gitea.maximumdirect.net/eric/distributor/pkg/bundle"
2026-06-01 20:52:23 +00:00
const ManifestName = publicbundle.ManifestName
2026-06-01 20:52:23 +00:00
const SchemaVersion = publicbundle.SchemaVersion
2026-06-01 20:52:23 +00:00
type Manifest = publicbundle.Manifest
type ManifestFile = publicbundle.ManifestFile
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-06-01 20:52:23 +00:00
func MarshalManifest(manifest Manifest) ([]byte, error) {
return publicbundle.MarshalManifest(manifest)
}
2026-06-01 20:52:23 +00:00
func ValidateManifest(manifest Manifest) error {
return publicbundle.ValidateManifest(manifest)
}
2026-06-01 20:52:23 +00:00
func ValidateSourcePath(path string) error {
return publicbundle.ValidateSourcePath(path)
}