Optional
_bakeryReport whether the given error is a redirection error from Juju.
Whether the given error is a redirection error.
The error returned by the login request.
Log in to Juju.
This promise will be rejected if there is an error connecting, or resolved with a new connection instance. Note that the promise will not be resolved or rejected if a callback is provided.
Optional
credentials: CredentialsAn object with the user and password fields for userpass authentication or the macaroons field for bakery authentication. If an empty object is provided a full bakery discharge will be attempted for logging in with macaroons. Any necessary third party discharges are performed using the bakery instance originally provided to connect().
The Juju controller version to target.
Log out from Juju.
Optional
callback: ((code: number, callback: CloseCallback) => void)Called when the logout process completes and the connection is closed, the callback receives the close code and optionally another callback. It is responsibility of the callback to call the provided callback if present.
Generated using TypeDoc
A Juju API client allowing for logging in and get access to facades.
Param
The WebSocket instance already connected to a Juju controller or model.
Param
Connections options. See the connect documentation above for a description of available options.