componentized/directory

componentized:constants-config

component

Config values for the wasi:config/store interface, served from a list of key value pairs.

Imports

Exports

WIT

package root:component;

world root {
  import componentized:constants/config-values@0.1.0;

  export wasi:config/store@0.2.0-rc.1;
}
package componentized:constants@0.1.0 {
  interface config-values {
    values: func() -> list<tuple<string, string>>;
  }
}


package wasi:config@0.2.0-rc.1 {
  interface store {
    variant error {
      upstream(string),
      io(string),
    }

    get: func(key: string) -> result<option<string>, error>;

    get-all: func() -> result<list<tuple<string, string>>, error>;
  }
}