temporal-k8s

Temporal Server

Channel Revision Published Runs on
latest/stable 43 28 Jan 2025
Ubuntu 22.04
latest/edge 52 08 Aug 2025
Ubuntu 22.04
1.23/edge 67 20 Apr 2026
Ubuntu 24.04 Ubuntu 22.04
1.23/edge 60 09 Dec 2025
Ubuntu 24.04 Ubuntu 22.04
juju deploy temporal-k8s
Show information

Platform:

charms.temporal_k8s.v0.temporal_host_info

Charm library for the temporal-host-info relation interface.

This library provides the TemporalHostInfoProvider and TemporalHostInfoRequirer classes for charms that need to share Temporal server connection details (host and port) over a Juju relation.


class TemporalHostInfoProvider

Description

A class for managing the temporal-host-info interface provider. None

Methods

TemporalHostInfoProvider. __init__( self , charm: CharmBase , port: int )

Create a new instance of the TemporalHostInfoProvider class.

Description

:param: charm: The charm that is using this interface. :type charm: CharmBase :param: port: The port number to provide to requirers. This is typically the 'frontend' service port. :type port: int

class TemporalHostInfoChangedEvent

Description

Event emitted when temporal-host-info relation data changes. None

Methods

TemporalHostInfoChangedEvent. __init__( self , handle: Handle , host: str , port: int )

TemporalHostInfoChangedEvent. snapshot( self )

Description

Return a snapshot of the event. None

TemporalHostInfoChangedEvent. restore( self , snapshot )

Description

Restore the event from a snapshot. None

class TemporalHostInfoRequirerCharmEvents

Description

List of events that the requirer charm can leverage. None

class TemporalHostInfoRequirer

A class for managing the temporal-host-info interface requirer.

Description

Track this relation in your charm with:

.. code-block:: python

self.host_info = TemporalHostInfoRequirer(self)
# update container with new host info
framework.observe(self.host_info.on.temporal_host_info_changed, self._on_host_info_changed)

def _on_host_info_changed(self, event):
    host = self.host_info.host
    port = self.host_info.port

Methods

TemporalHostInfoRequirer. __init__( self , charm: CharmBase )

Create a new instance of the TemporalHostInfoRequirer class.

Description

:param: charm: The charm that is using this interface. :type charm: CharmBase

TemporalHostInfoRequirer. relation( self )

Description

Return the relation for this interface, if any. None

TemporalHostInfoRequirer. host( self )

Description

Return the host from the relation data. None

TemporalHostInfoRequirer. port( self )

Description

Return the port from the relation data. None