UNPKG

@canonical/jujulib

Version:

Juju API client

41 lines (40 loc) 1.07 kB
/** Juju Secrets version 1. This facade is available on: Models NOTE: This file was generated using the Juju schema from Juju 3.2 at the git SHA 3a098707a1. Do not manually edit this file. */ import { autoBind } from "../../utils.js"; /** SecretsAPI is the backend for the Secrets facade. */ class SecretsV1 { constructor(transport, info) { this.NAME = "Secrets"; this.VERSION = 1; this._transport = transport; this._info = info; // Automatically bind all methods to instances. autoBind(this); } /** ListSecrets lists available secrets. */ listSecrets(params) { return new Promise((resolve, reject) => { const req = { type: "Secrets", request: "ListSecrets", version: 1, params: params, }; this._transport.write(req, resolve, reject); }); } } SecretsV1.NAME = "Secrets"; SecretsV1.VERSION = 1; export default SecretsV1; //# sourceMappingURL=SecretsV1.js.map