Record

interface-binding

One interface instance the workload matched on this plugin — e.g. the store interface of acme:kv@0.1.0, labeled cache, with its manifest config.

record interface-binding {
  namespace: string,
  package: string,
  interfaces: list​<string>,
  version: option​<version>,
  name: option​<string>,
  external-id: option​<string>,
  config: list​<tuple​<string, string>>,
}

Fields

NameTypeDescription
namespacestringInterface namespace (e.g. acme).
packagestringPackage within the namespace (e.g. kv).
interfaceslist​<string>The matched interface names within the package (e.g. store).
versionoption​<version>Version of the instance, if one was requested.
nameoption​<string>Instance label when the workload names multiple instances of the same namespace:package, if any. Component-facing: what the component calls this import.
external-idoption​<string>Platform-facing id the binding was declared with, if any — what the platform's configuration calls the same instance.
configlist​<tuple​<string, string>>Interface-level configuration from the workload manifest, as key/value pairs sorted by key.