Expand description
Spin internal application interfaces
This crate contains interfaces to Spin application configuration to be used by crates that implement Spin execution environments: trigger executors and host components, in particular.
Modules§
Structs§
- App
- An
App
holds loaded configuration for a Spin application. - AppComponent
- An
AppComponent
holds configuration for a Spin application component. - AppTrigger
- An
AppTrigger
holds configuration for a Spin application trigger. - Metadata
Key - MetadataKey is a handle to a typed metadata value.
- Variable
- A Variable specifies a custom configuration variable.
Enums§
- Error
- Errors returned by methods in this crate.
Constants§
- APP_
DESCRIPTION_ KEY - MetadataKey for extracting the application description.
- APP_
NAME_ KEY - MetadataKey for extracting the application name.
- APP_
VERSION_ KEY - MetadataKey for extracting the application version.
- OCI_
IMAGE_ DIGEST_ KEY - MetadataKey for extracting the OCI image digest.
Functions§
- retain_
components - Scrubs the locked app to only contain the given list of components Introspects the LockedApp to find and selectively retain the triggers that correspond to those components
Type Aliases§
- Result
- Type alias for a
Result
s withError
. - Validator
Fn - Validation function type for ensuring that applications meet requirements even with components filtered out.