macula_registry_manifest (macula v0.20.5)
View SourceMacula Registry Package Manifest
Handles parsing and validation of package manifests: - Manifest structure validation - Capability specification parsing - SemVer version validation - Dependency resolution
All functions are stateless.
Summary
Functions
Check if a capability pattern matches a specific capability Pattern can include wildcards: * matches any single segment, ** matches any segments
Compare two SemVer versions Returns: lt (less than), eq (equal), gt (greater than)
Deserialize manifest from binary (MessagePack)
Get capabilities from manifest
Get dependencies from manifest
Get package name from manifest
Get package version from manifest
Parse a manifest from a map (with atom or binary keys)
Serialize manifest to binary (MessagePack)
Validate a parsed manifest
Validate SemVer version string
Types
Functions
-spec capability_matches(capability(), capability()) -> boolean().
Check if a capability pattern matches a specific capability Pattern can include wildcards: * matches any single segment, ** matches any segments
Compare two SemVer versions Returns: lt (less than), eq (equal), gt (greater than)
Deserialize manifest from binary (MessagePack)
-spec get_capabilities(manifest()) -> [capability()].
Get capabilities from manifest
-spec get_dependencies(manifest()) -> [dependency()].
Get dependencies from manifest
Get package name from manifest
Get package version from manifest
Parse a manifest from a map (with atom or binary keys)
Serialize manifest to binary (MessagePack)
Validate a parsed manifest
-spec validate_version(binary()) -> ok | {error, invalid_version}.
Validate SemVer version string