charmlibs-interfaces-tls-certificates 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of charmlibs-interfaces-tls-certificates might be problematic. Click here for more details.
- charmlibs/interfaces/tls_certificates/__init__.py +69 -0
- charmlibs/interfaces/tls_certificates/_tls_certificates.py +1981 -0
- charmlibs/interfaces/tls_certificates/_version.py +15 -0
- charmlibs/interfaces/tls_certificates/py.typed +0 -0
- charmlibs_interfaces_tls_certificates-1.0.0.dist-info/METADATA +29 -0
- charmlibs_interfaces_tls_certificates-1.0.0.dist-info/RECORD +7 -0
- charmlibs_interfaces_tls_certificates-1.0.0.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# Copyright 2025 Canonical Ltd.
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
"""Manage TLS certificates using the ``tls_certificates`` interface (V1).
|
|
16
|
+
|
|
17
|
+
This is a port of ``tls_certificates_interface.tls_certificates`` v4.22.
|
|
18
|
+
|
|
19
|
+
Learn more on how-to use the TLS Certificates interface library by reading the documentation:
|
|
20
|
+
|
|
21
|
+
* https://charmhub.io/tls-certificates-interface/
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
from ._tls_certificates import (
|
|
25
|
+
Certificate,
|
|
26
|
+
CertificateAvailableEvent,
|
|
27
|
+
CertificateRequestAttributes,
|
|
28
|
+
CertificateSigningRequest,
|
|
29
|
+
CertificatesRequirerCharmEvents,
|
|
30
|
+
DataValidationError,
|
|
31
|
+
Mode,
|
|
32
|
+
PrivateKey,
|
|
33
|
+
ProviderCertificate,
|
|
34
|
+
RequirerCertificateRequest,
|
|
35
|
+
TLSCertificatesError,
|
|
36
|
+
TLSCertificatesProvidesV4,
|
|
37
|
+
TLSCertificatesRequiresV4,
|
|
38
|
+
calculate_relative_datetime,
|
|
39
|
+
chain_has_valid_order,
|
|
40
|
+
generate_ca,
|
|
41
|
+
generate_certificate,
|
|
42
|
+
generate_csr,
|
|
43
|
+
generate_private_key,
|
|
44
|
+
)
|
|
45
|
+
from ._version import __version__ as __version__
|
|
46
|
+
|
|
47
|
+
__all__ = [
|
|
48
|
+
"Certificate",
|
|
49
|
+
"CertificateAvailableEvent",
|
|
50
|
+
"CertificateRequestAttributes",
|
|
51
|
+
"CertificateSigningRequest",
|
|
52
|
+
"CertificatesRequirerCharmEvents",
|
|
53
|
+
"DataValidationError",
|
|
54
|
+
"Mode",
|
|
55
|
+
"PrivateKey",
|
|
56
|
+
"ProviderCertificate",
|
|
57
|
+
"RequirerCertificateRequest",
|
|
58
|
+
# only the names listed in __all__ are imported when executing:
|
|
59
|
+
# from charmlibs.tls_certificates import *
|
|
60
|
+
"TLSCertificatesError",
|
|
61
|
+
"TLSCertificatesProvidesV4",
|
|
62
|
+
"TLSCertificatesRequiresV4",
|
|
63
|
+
"calculate_relative_datetime",
|
|
64
|
+
"chain_has_valid_order",
|
|
65
|
+
"generate_ca",
|
|
66
|
+
"generate_certificate",
|
|
67
|
+
"generate_csr",
|
|
68
|
+
"generate_private_key",
|
|
69
|
+
]
|