A connection to a Juju controller or model. This is the object users use to perform Juju API calls, as it provides access to all available facades (conn.facades), to a transport connected to Juju (conn.transport) and to information about the connected Juju server (conn.info).

Param

The Transport instance used to communicate with Juju. The transport is available exposed to users via the transport property of the connection instance. See the Transport docstring for information on how to use the transport, typically calling transport.write.

Param

The facade classes provided in the facades property of the options provided to the connect function. When the connection is instantiated, the matching available facades as declared by Juju are instantiated and access to them is provided via the facades property of the connection.

Param

The result to the Juju login request. It includes information about the Juju server and available facades. This info is made available via the info property of the connection instance.

Hierarchy

  • Connection

Constructors

Properties

Constructors

Properties

facades: {
    [k: string]: Facade;
}

Type declaration

transport: Transport

Generated using TypeDoc