API implements the charms interface and is the concrete implementation of the API end point.

Hierarchy

  • default

Implements

Constructors

Properties

NAME: string = "Charms"
VERSION: number = 4
_transport: Transport
NAME: string = "Charms"
VERSION: number = 4

Methods

  • AddCharm adds the given charm URL (which must include revision) to the environment, if it does not exist yet. Local charms are not supported, only charm store and charm hub URLs. See also AddLocalCharm().

    Parameters

    Returns Promise<CharmOriginResult>

  • AddCharmWithAuthorization adds the given charm URL (which must include revision) to the environment, if it does not exist yet. Local charms are not supported, only charm store and charm hub URLs. See also AddLocalCharm().

    The authorization macaroon, args.CharmStoreMacaroon, may be omitted, in which case this call is equivalent to AddCharm.

    Parameters

    Returns Promise<CharmOriginResult>

  • CharmInfo returns information about the requested charm.

    Parameters

    Returns Promise<Charm>

  • List returns a list of charm URLs currently in the state. If supplied parameter contains any names, the result will be filtered to return only the charms with supplied names.

    Parameters

    Returns Promise<CharmsListResult>

Generated using TypeDoc