UNPKG

@canonical/jujulib

Version:

Juju API client

144 lines (132 loc) 3.52 kB
/** Juju SSHClient version 5. This facade is available on: Controller-machine-agent Machine-agent Unit-agent Models NOTE: This file was generated using the Juju schema from Juju 3.6.14 at the git SHA b08ad63. Do not manually edit this file. */ import { autoBind } from "../../utils.js"; /** */ class SSHClientV5 { constructor(transport, info) { this.NAME = "SSHClient"; this.VERSION = 5; this._transport = transport; this._info = info; // Automatically bind all methods to instances. autoBind(this); } /** */ allAddresses(params) { return new Promise((resolve, reject) => { const req = { type: "SSHClient", request: "AllAddresses", version: 5, params: params, }; this._transport.write(req, resolve, reject); }); } /** */ modelCredentialForSSH(params) { return new Promise((resolve, reject) => { const req = { type: "SSHClient", request: "ModelCredentialForSSH", version: 5, params: params, }; this._transport.write(req, resolve, reject); }); } /** */ privateAddress(params) { return new Promise((resolve, reject) => { const req = { type: "SSHClient", request: "PrivateAddress", version: 5, params: params, }; this._transport.write(req, resolve, reject); }); } /** */ proxy(params) { return new Promise((resolve, reject) => { const req = { type: "SSHClient", request: "Proxy", version: 5, params: params, }; this._transport.write(req, resolve, reject); }); } /** */ publicAddress(params) { return new Promise((resolve, reject) => { const req = { type: "SSHClient", request: "PublicAddress", version: 5, params: params, }; this._transport.write(req, resolve, reject); }); } /** */ publicHostKeyForTarget(params) { return new Promise((resolve, reject) => { const req = { type: "SSHClient", request: "PublicHostKeyForTarget", version: 5, params: params, }; this._transport.write(req, resolve, reject); }); } /** */ publicKeys(params) { return new Promise((resolve, reject) => { const req = { type: "SSHClient", request: "PublicKeys", version: 5, params: params, }; this._transport.write(req, resolve, reject); }); } /** */ virtualHostname(params) { return new Promise((resolve, reject) => { const req = { type: "SSHClient", request: "VirtualHostname", version: 5, params: params, }; this._transport.write(req, resolve, reject); }); } } SSHClientV5.NAME = "SSHClient"; SSHClientV5.VERSION = 5; export default SSHClientV5; //# sourceMappingURL=SSHClientV5.js.map