Expand description
Cross-platform plugin artifact support
This module provides platform detection and artifact type validation for cross-platform plugin packaging as specified in RFC-0003.
§Supported Platforms
- Linux:
.so(shared object) - Windows:
.dll(dynamic link library) - macOS:
.dylib(dynamic library)
§Naming Convention
Artifacts follow the pattern: <plugin-name>-v<version>-<target-triple>.tar.gz
Examples:
myplugin-v1.0.0-x86_64-unknown-linux-gnu.tar.gzmyplugin-v1.0.0-x86_64-pc-windows-gnu.tar.gzmyplugin-v1.0.0-x86_64-apple-darwin.tar.gzmyplugin-v1.0.0-aarch64-apple-darwin.tar.gz
Structs§
- Artifact
Metadata - Information extracted from an artifact filename
Enums§
- Platform
- Supported platform types for plugin artifacts
Constants§
- SUPPORTED_
ARTIFACT_ EXTENSIONS - All supported artifact extensions
- SUPPORTED_
ARTIFACT_ FILENAMES - All supported artifact filenames
Functions§
- get_
valid_ artifact_ filenames - Get all valid artifact filenames for verification
- is_
valid_ artifact_ extension - Check if an extension is a valid artifact extension
- is_
valid_ artifact_ filename - Check if a filename is a valid plugin artifact
- validate_
platform_ artifact - Validate that a path contains a valid artifact for the given platform