Function

get

Each secret key of the workload's binding of namespace:package labeled name, sorted by key, as a wasmcloud:secrets handle the plugin owns. Read its value with wasmcloud:secrets/reveal.

Answers only inside on-workload-bind, about the workload being bound; anywhere else, or for a binding that workload does not have, it returns an error. A bind still running after the host timed it out gets an error too. Each call hands over fresh handles.

get: func(namespace: string, package: string, name: option​<string>) -> result​<list​<tuple​<string, secret>>, string>;