Record

workload-info

Identity and configuration of a workload binding to this plugin.

record workload-info {
  id: workload-id,
  name: string,
  namespace: string,
  service: option​<component-id>,
  components: list​<component-id>,
  interfaces: list​<interface-binding>,
}

Fields

NameTypeDescription
idworkload-idUnique id of the workload instance.
namestringHuman-readable workload name.
namespacestringNamespace the workload was deployed under.
serviceoption​<component-id>Id of the workload's service, if it has one. A service is the workload's long-lived item; it can make capability calls just as a component can, so this id also appears as identity.get-component-id on calls the service makes.
componentslist​<component-id>Ids of the workload's components, excluding the service above.
interfaceslist​<interface-binding>Every interface instance the workload matched on this plugin.