magma-orc8r-certifier
- Canonical Telco
Channel | Revision | Published | Runs on |
---|---|---|---|
latest/stable | 65 | 30 May 2023 | |
latest/stable | 55 | 07 Mar 2023 | |
latest/beta | 40 | 20 Oct 2022 | |
latest/edge | 64 | 05 May 2023 | |
latest/edge | 56 | 14 Mar 2023 | |
1.8/stable | 65 | 30 May 2023 | |
1.8/candidate | 65 | 30 May 2023 | |
1.8/beta | 65 | 30 May 2023 | |
1.8/edge | 65 | 30 May 2023 | |
1.6/stable | 55 | 24 Feb 2023 | |
1.6/candidate | 55 | 24 Feb 2023 | |
1.6/beta | 55 | 24 Feb 2023 | |
1.6/edge | 55 | 24 Feb 2023 |
juju deploy magma-orc8r-certifier
Deploy Kubernetes operators easily with Juju, the Universal Operator Lifecycle Manager. Need a Kubernetes cluster? Install MicroK8s to create a full CNCF-certified Kubernetes system in under 60 seconds.
Platform:
charms.magma_orc8r_certifier.v0.cert_certifier
-
- Last updated 11 Jan 2023
- Revision Library version 0.4
Cert Certifier Library.
Getting started
charmcraft fetch-lib charms.magma_orc8r_certifier.v0.cert_certifier
Requirer Charm
class CertCertifierRequires(Object):
on = CertCertifierRequirerCharmEvents()
def __init__(self, charm, relationship_name: str):
self.relationship_name = relationship_name
self.charm = charm
super().__init__(charm, relationship_name)
self.framework.observe(
charm.on[relationship_name].relation_joined, self._on_relation_changed
)
self.framework.observe(
charm.on[relationship_name].relation_changed, self._on_relation_changed
)
def _on_relation_changed(self, event):
relation_data = event.relation.data
certificate = relation_data[event.unit].get("certificate")
self.on.certificate_available.emit(certificate=certificate)
Index
class CertificateRequestEvent
Description
Dataclass for Certificate request events. None
Methods
CertificateRequestEvent. __init__( self , handle , relation_id: int )
Description
Sets relation id. None
CertificateRequestEvent. snapshot( self )
Description
Returns event data. None
CertificateRequestEvent. restore( self , snapshot )
Description
Restores event data. None
class CertificateAvailableEvent
Description
Dataclass for Certificate available events. None
Methods
CertificateAvailableEvent. __init__( self , handle , certificate: str )
Description
Sets certificate. None
CertificateAvailableEvent. snapshot( self )
Description
Returns event data. None
CertificateAvailableEvent. restore( self , snapshot )
Description
Restores event data. None
class CertCertifierProviderCharmEvents
Description
All custom events for the CertCertifierProvider. None
class CertCertifierRequirerCharmEvents
Description
All custom events for the CertCertifierRequirer. None
class CertCertifierProvides
Description
Class to be instantiated by provider of certifier certificate. None
Methods
CertCertifierProvides. __init__( self , charm: CharmBase , relationship_name: str )
Observes relation joined event.
Arguments
Juju charm
Relation name
CertCertifierProvides. set_certificate( self , relation_id: int , certificate: str )
Sets private key in relation data.
Arguments
Relation ID
Certificate
Returns
None
class CertCertifierRequires
Description
Class to be instantiated by requirer of certifier certificate. None
Methods
CertCertifierRequires. __init__( self , charm: CharmBase , relationship_name: str )
Observes relation joined and relation changed events.
Arguments
Juju charm
Relation name