Juju interface for basic-auth-service
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
interface.yaml
provides.py
requires.py

README.md

Juju interface for basic-auth-service

This is a Juju interface interface for the basic-auth-service application.

It can be used to relate an application with the with the basic-auth-service charm, and it provides hostnames and ports for the related units.

The interface provides the following states:

  • basic-auth-check.available: the relation has been established
  • basic-auth-check.changed: relation configuration has changed

An example of use in a service related to basic-auth-service is

@when('basic-auth-check.changed')
def basic_auth_check_available(basic_auth_check):
    for hostname, port in basic_auth_check.backends():
        configure_my_service(hostname, int(port))