wasmcloud-component 0.2.0

wasmCloud component library giving access to interfaces provided by wasmCloud host runtime
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package wasmcloud:bus@2.0.0;

interface lattice {
    /// Interface target. This represents an interface, which can be selected by `set-link-name`.
    resource call-target-interface {
        constructor(namespace: string, %package: string, %interface: string);
    }

    /// Set a link name to use for all interfaces specified. This is advanced functionality only
    /// available within wasmcloud and, as such, is exposed here as part of the wasmcloud:bus package.
    /// This is used when you are linking multiple of the same interfaces
    /// (i.e. a keyvalue implementation for caching and another one for secrets) to a component.
    /// 
    /// Will return an error if a link does not exist at call time with the specified name and interfaces.
    set-link-name: func(name: string, interfaces: list<call-target-interface>) -> result<_, string>;
}