Struct wasmcloud_host::HostManifest [−][src]
pub struct HostManifest { /* fields omitted */ }
Expand description
A host manifest contains a declarative profile of the host’s desired state. The manifest can specify custom labels, a list of actors, a list of capability providers, and a list of link definitions. Environment substitution syntax can optionally be used within a manifest file so that information that may change across environments (like public keys) can change without requiring the manifest file to change.
Examples
labels:
sample: "wasmcloud echo"
actors:
- "wasmcloud.azurecr.io/echo:0.2.0"
capabilities:
- image_ref: wasmcloud.azurecr.io/httpserver:0.11.1
link_name: default
links:
- actor: ${ECHO_ACTOR:MBCFOPM6JW2APJLXJD3Z5O4CN7CPYJ2B4FTKLJUR5YR5MITIU7HD3WD5}
provider_id: "VAG3QITQQ2ODAOWB5TTQSDJ53XK3SHBEIFNK4AYJ5RKAX2UNSCAPHA5M"
contract_id: "wasmcloud:httpserver"
link_name: default
values:
PORT: 8080
Implementations
Creates an instance of a host manifest from a file path. The de-serialization
type will be chosen based on the file path extension, selecting YAML for .yaml
or .yml
files, and JSON for all other file extensions. If the path has no extension, the
de-serialization type chosen will be YAML. If expand_env
is true
then environment substitution
syntax will be honored in the manifest file.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for HostManifest
impl Send for HostManifest
impl Sync for HostManifest
impl Unpin for HostManifest
impl UnwindSafe for HostManifest
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self