Apache Guacd!

  • By David
Channel Revision Published Runs on
latest/stable 3 16 Nov 2021
Ubuntu 20.04
latest/edge 3 16 Nov 2021
Ubuntu 20.04
juju deploy apache-guacd
Show information

Platform:

charms.apache_guacd.v0.guacd

Guacd library.

This library allows the integration with Apache Guacd charm. Is is published as part of the davigar15-apache-guacd charm.

The charm that requires guacd should include the following content in its metadata.yaml:

# ...
requires:
    guacd:
        interface: guacd
        limit: 1
# ...

A typical example of including this library might be:

# ...
from ops.framework import StoredState
from charms.davigar15_apache_guacd.v0.guacd import GuacdEvents, GuacdRequires

class SomeApplication(CharmBase):
  on = GuacdEvents()
  _stored = StoredState()

  def __init__(self, *args):
    # ...
    self.guacd = GuacdRequires(self, self._stored)
    self.framework.observe(self.on.guacd_changed, self._guacd_changed)
    # ...

  def _guacd_changed(self, _):
    guacd_hostname = self.guacd.hostname
    guacd_port = self.guacd.port
    # ...

def pod_ip()

Description

Pod's IP address. None

class GuacdChangedEvent

Description

Event to announce a change in the Guacd service. None

class GuacdEvents

Description

Guacd Events. None

class GuacdRequires

Description

Requires-side of the guacd interface. None

Methods

GuacdRequires. __init__( self , charm , _stored , relation_name )

GuacdRequires. hostname( self )

Description

Guacd hostname. None

GuacdRequires. port( self )

Description

Guacd port. None

class GuacdProvides

Description

Provides-side of the guacd interface. None

Methods

GuacdProvides. __init__( self , charm , relation_name )