@canonical/jujulib
Version:
Juju API client
44 lines (43 loc) • 1.24 kB
JavaScript
/**
Juju HostKeyReporter version 1.
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.3 at the git SHA 65fa4c1ee5.
Do not manually edit this file.
*/
import { autoBind } from "../../utils.js";
/**
Facade implements the API required by the hostkeyreporter worker.
*/
class HostKeyReporterV1 {
constructor(transport, info) {
this.NAME = "HostKeyReporter";
this.VERSION = 1;
this._transport = transport;
this._info = info;
// Automatically bind all methods to instances.
autoBind(this);
}
/**
ReportKeys sets the SSH host keys for one or more entities.
*/
reportKeys(params) {
return new Promise((resolve, reject) => {
const req = {
type: "HostKeyReporter",
request: "ReportKeys",
version: 1,
params: params,
};
this._transport.write(req, resolve, reject);
});
}
}
HostKeyReporterV1.NAME = "HostKeyReporter";
HostKeyReporterV1.VERSION = 1;
export default HostKeyReporterV1;
//# sourceMappingURL=HostKeyReporterV1.js.map