CrossModelRelationsAPI provides access to the CrossModelRelations API facade.

Hierarchy

  • default

Implements

Constructors

Properties

NAME: string = "CrossModelRelations"
VERSION: number = 2
_transport: Transport
NAME: string = "CrossModelRelations"
VERSION: number = 2

Methods

  • PublishIngressNetworkChanges publishes changes to the required ingress addresses to the model hosting the offer in the relation.

    Parameters

    Returns Promise<ErrorResults>

  • PublishRelationChanges publishes relation changes to the model hosting the remote application involved in the relation.

    Parameters

    Returns Promise<ErrorResults>

  • WatchEgressAddressesForRelations creates a watcher that notifies when addresses, from which connections will originate for the relation, change. Each event contains the entire set of addresses which are required for ingress for the relation.

    Parameters

    Returns Promise<StringsWatchResults>

  • WatchRelationChanges starts a RemoteRelationChangesWatcher for each specified relation, returning the watcher IDs and initial values, or an error if the remote relations couldn't be watched.

    Parameters

    Returns Promise<RemoteRelationWatchResults>

Generated using TypeDoc