APIv7 provides the Charms API facade for version 7. v7 guarantees SupportedBases will be provided in ResolveCharms

Hierarchy

  • default

Implements

Constructors

Properties

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

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>

  • CharmInfo returns information about the requested charm.

    Parameters

    Returns Promise<Charm>

  • IsMetered returns whether or not the charm is metered. TODO (cderici) only used for metered charms in cmd MeteredDeployAPI, kept for client compatibility, remove in juju 4.0

    Parameters

    Returns Promise<IsMeteredResult>

  • 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