charmlibs-interfaces-tls-certificates 1.0.0__tar.gz
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-1.0.0/.gitignore +184 -0
- charmlibs_interfaces_tls_certificates-1.0.0/CHANGELOG.md +0 -0
- charmlibs_interfaces_tls_certificates-1.0.0/PKG-INFO +29 -0
- charmlibs_interfaces_tls_certificates-1.0.0/README.md +11 -0
- charmlibs_interfaces_tls_certificates-1.0.0/pyproject.toml +94 -0
- charmlibs_interfaces_tls_certificates-1.0.0/src/charmlibs/interfaces/tls_certificates/__init__.py +69 -0
- charmlibs_interfaces_tls_certificates-1.0.0/src/charmlibs/interfaces/tls_certificates/_tls_certificates.py +1981 -0
- charmlibs_interfaces_tls_certificates-1.0.0/src/charmlibs/interfaces/tls_certificates/_version.py +15 -0
- charmlibs_interfaces_tls_certificates-1.0.0/src/charmlibs/interfaces/tls_certificates/py.typed +0 -0
- charmlibs_interfaces_tls_certificates-1.0.0/tests/integration/certificates.py +23 -0
- charmlibs_interfaces_tls_certificates-1.0.0/tests/integration/charms/provider/charm.py +117 -0
- charmlibs_interfaces_tls_certificates-1.0.0/tests/integration/charms/provider/charmcraft.yaml +25 -0
- charmlibs_interfaces_tls_certificates-1.0.0/tests/integration/charms/provider/local/charmcraft.yaml +1 -0
- charmlibs_interfaces_tls_certificates-1.0.0/tests/integration/charms/provider/local/library/README.md +1 -0
- charmlibs_interfaces_tls_certificates-1.0.0/tests/integration/charms/provider/local/library/pyproject.toml +1 -0
- charmlibs_interfaces_tls_certificates-1.0.0/tests/integration/charms/provider/local/pyproject.toml +13 -0
- charmlibs_interfaces_tls_certificates-1.0.0/tests/integration/charms/provider/local/src/charm.py +1 -0
- charmlibs_interfaces_tls_certificates-1.0.0/tests/integration/charms/provider/local/src/self_signed_certificates.py +1 -0
- charmlibs_interfaces_tls_certificates-1.0.0/tests/integration/charms/provider/published/charmcraft.yaml +1 -0
- charmlibs_interfaces_tls_certificates-1.0.0/tests/integration/charms/provider/published/pyproject.toml +12 -0
- charmlibs_interfaces_tls_certificates-1.0.0/tests/integration/charms/provider/published/src/charm.py +1 -0
- charmlibs_interfaces_tls_certificates-1.0.0/tests/integration/charms/provider/published/src/charmlibs/__init.py +0 -0
- charmlibs_interfaces_tls_certificates-1.0.0/tests/integration/charms/provider/published/src/charmlibs/interfaces/__init__.py +0 -0
- charmlibs_interfaces_tls_certificates-1.0.0/tests/integration/charms/provider/published/src/charmlibs/interfaces/tls_certificates.py +1995 -0
- charmlibs_interfaces_tls_certificates-1.0.0/tests/integration/charms/provider/published/src/self_signed_certificates.py +1 -0
- charmlibs_interfaces_tls_certificates-1.0.0/tests/integration/charms/provider/pyproject.toml +1 -0
- charmlibs_interfaces_tls_certificates-1.0.0/tests/integration/charms/provider/self_signed_certificates.py +148 -0
- charmlibs_interfaces_tls_certificates-1.0.0/tests/integration/charms/requirer/charm.py +114 -0
- charmlibs_interfaces_tls_certificates-1.0.0/tests/integration/charms/requirer/charmcraft.yaml +63 -0
- charmlibs_interfaces_tls_certificates-1.0.0/tests/integration/charms/requirer/local/charmcraft.yaml +1 -0
- charmlibs_interfaces_tls_certificates-1.0.0/tests/integration/charms/requirer/local/library/README.md +1 -0
- charmlibs_interfaces_tls_certificates-1.0.0/tests/integration/charms/requirer/local/library/pyproject.toml +1 -0
- charmlibs_interfaces_tls_certificates-1.0.0/tests/integration/charms/requirer/local/pyproject.toml +12 -0
- charmlibs_interfaces_tls_certificates-1.0.0/tests/integration/charms/requirer/local/src/charm.py +1 -0
- charmlibs_interfaces_tls_certificates-1.0.0/tests/integration/charms/requirer/published/charmcraft.yaml +1 -0
- charmlibs_interfaces_tls_certificates-1.0.0/tests/integration/charms/requirer/published/pyproject.toml +11 -0
- charmlibs_interfaces_tls_certificates-1.0.0/tests/integration/charms/requirer/published/src/charm.py +1 -0
- charmlibs_interfaces_tls_certificates-1.0.0/tests/integration/charms/requirer/pyproject.toml +1 -0
- charmlibs_interfaces_tls_certificates-1.0.0/tests/integration/conftest.py +20 -0
- charmlibs_interfaces_tls_certificates-1.0.0/tests/integration/pack.sh +42 -0
- charmlibs_interfaces_tls_certificates-1.0.0/tests/integration/test_tls_certificates.py +231 -0
- charmlibs_interfaces_tls_certificates-1.0.0/tests/unit/certificate_validation.py +64 -0
- charmlibs_interfaces_tls_certificates-1.0.0/tests/unit/certificates.py +172 -0
- charmlibs_interfaces_tls_certificates-1.0.0/tests/unit/dummy_provider_charm/charmcraft.yaml +48 -0
- charmlibs_interfaces_tls_certificates-1.0.0/tests/unit/dummy_provider_charm/src/charm.py +143 -0
- charmlibs_interfaces_tls_certificates-1.0.0/tests/unit/dummy_requirer_charm/charmcraft.yaml +58 -0
- charmlibs_interfaces_tls_certificates-1.0.0/tests/unit/dummy_requirer_charm/private_key.pem +27 -0
- charmlibs_interfaces_tls_certificates-1.0.0/tests/unit/dummy_requirer_charm/src/charm.py +144 -0
- charmlibs_interfaces_tls_certificates-1.0.0/tests/unit/provider_charm.py +1 -0
- charmlibs_interfaces_tls_certificates-1.0.0/tests/unit/requirer_charm.py +1 -0
- charmlibs_interfaces_tls_certificates-1.0.0/tests/unit/test_provides.py +907 -0
- charmlibs_interfaces_tls_certificates-1.0.0/tests/unit/test_requires.py +1581 -0
- charmlibs_interfaces_tls_certificates-1.0.0/tests/unit/test_tls_certificates.py +587 -0
- charmlibs_interfaces_tls_certificates-1.0.0/uv.lock +1563 -0
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.coverage-*
|
|
46
|
+
.cache
|
|
47
|
+
nosetests.xml
|
|
48
|
+
coverage.xml
|
|
49
|
+
*.cover
|
|
50
|
+
*.py,cover
|
|
51
|
+
.hypothesis/
|
|
52
|
+
.pytest_cache/
|
|
53
|
+
cover/
|
|
54
|
+
.report/
|
|
55
|
+
|
|
56
|
+
# Translations
|
|
57
|
+
*.mo
|
|
58
|
+
*.pot
|
|
59
|
+
|
|
60
|
+
# Django stuff:
|
|
61
|
+
*.log
|
|
62
|
+
local_settings.py
|
|
63
|
+
db.sqlite3
|
|
64
|
+
db.sqlite3-journal
|
|
65
|
+
|
|
66
|
+
# Flask stuff:
|
|
67
|
+
instance/
|
|
68
|
+
.webassets-cache
|
|
69
|
+
|
|
70
|
+
# Scrapy stuff:
|
|
71
|
+
.scrapy
|
|
72
|
+
|
|
73
|
+
# Sphinx documentation
|
|
74
|
+
docs/_build/
|
|
75
|
+
|
|
76
|
+
# PyBuilder
|
|
77
|
+
.pybuilder/
|
|
78
|
+
target/
|
|
79
|
+
|
|
80
|
+
# Jupyter Notebook
|
|
81
|
+
.ipynb_checkpoints
|
|
82
|
+
|
|
83
|
+
# IPython
|
|
84
|
+
profile_default/
|
|
85
|
+
ipython_config.py
|
|
86
|
+
|
|
87
|
+
# pyenv
|
|
88
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
89
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
90
|
+
# .python-version
|
|
91
|
+
|
|
92
|
+
# pipenv
|
|
93
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
94
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
95
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
96
|
+
# install all needed dependencies.
|
|
97
|
+
#Pipfile.lock
|
|
98
|
+
|
|
99
|
+
# UV
|
|
100
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
101
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
102
|
+
# commonly ignored for libraries.
|
|
103
|
+
#uv.lock
|
|
104
|
+
|
|
105
|
+
# poetry
|
|
106
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
107
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
108
|
+
# commonly ignored for libraries.
|
|
109
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
110
|
+
#poetry.lock
|
|
111
|
+
|
|
112
|
+
# pdm
|
|
113
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
114
|
+
#pdm.lock
|
|
115
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
116
|
+
# in version control.
|
|
117
|
+
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
|
|
118
|
+
.pdm.toml
|
|
119
|
+
.pdm-python
|
|
120
|
+
.pdm-build/
|
|
121
|
+
|
|
122
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
123
|
+
__pypackages__/
|
|
124
|
+
|
|
125
|
+
# Celery stuff
|
|
126
|
+
celerybeat-schedule
|
|
127
|
+
celerybeat.pid
|
|
128
|
+
|
|
129
|
+
# SageMath parsed files
|
|
130
|
+
*.sage.py
|
|
131
|
+
|
|
132
|
+
# Environments
|
|
133
|
+
.env
|
|
134
|
+
.venv
|
|
135
|
+
env/
|
|
136
|
+
venv/
|
|
137
|
+
ENV/
|
|
138
|
+
env.bak/
|
|
139
|
+
venv.bak/
|
|
140
|
+
|
|
141
|
+
# Spyder project settings
|
|
142
|
+
.spyderproject
|
|
143
|
+
.spyproject
|
|
144
|
+
|
|
145
|
+
# Rope project settings
|
|
146
|
+
.ropeproject
|
|
147
|
+
|
|
148
|
+
# mkdocs documentation
|
|
149
|
+
/site
|
|
150
|
+
|
|
151
|
+
# mypy
|
|
152
|
+
.mypy_cache/
|
|
153
|
+
.dmypy.json
|
|
154
|
+
dmypy.json
|
|
155
|
+
|
|
156
|
+
# Pyre type checker
|
|
157
|
+
.pyre/
|
|
158
|
+
|
|
159
|
+
# pytype static type analyzer
|
|
160
|
+
.pytype/
|
|
161
|
+
|
|
162
|
+
# Cython debug symbols
|
|
163
|
+
cython_debug/
|
|
164
|
+
|
|
165
|
+
# PyCharm
|
|
166
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
167
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
168
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
169
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
170
|
+
#.idea/
|
|
171
|
+
|
|
172
|
+
# PyPI configuration file
|
|
173
|
+
.pypirc
|
|
174
|
+
|
|
175
|
+
# packed charms
|
|
176
|
+
.packed
|
|
177
|
+
|
|
178
|
+
# temporary directory for packing charms
|
|
179
|
+
.tmp
|
|
180
|
+
|
|
181
|
+
# uv.lock from example libraries as we don't commit these
|
|
182
|
+
.example/**/uv.lock
|
|
183
|
+
.tutorial/**/uv.lock
|
|
184
|
+
interfaces/.example/**/uv.lock
|
|
File without changes
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: charmlibs-interfaces-tls_certificates
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: The charmlibs.interfaces.tls_certificates package.
|
|
5
|
+
Project-URL: Repository, https://github.com/canonical/charmlibs
|
|
6
|
+
Project-URL: Issues, https://github.com/canonical/charmlibs/issues
|
|
7
|
+
Author: The TLS team at Canonical
|
|
8
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
9
|
+
Classifier: Intended Audience :: Developers
|
|
10
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
11
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Requires-Python: >=3.10
|
|
14
|
+
Requires-Dist: cryptography>=43.0.0
|
|
15
|
+
Requires-Dist: ops
|
|
16
|
+
Requires-Dist: pydantic
|
|
17
|
+
Description-Content-Type: text/markdown
|
|
18
|
+
|
|
19
|
+
# charmlibs-interfaces-tls_certificates
|
|
20
|
+
|
|
21
|
+
The `tls_certificates` interface library.
|
|
22
|
+
|
|
23
|
+
To install, add `charmlibs-interfaces-tls_certificates` to your Python dependencies. Then in your Python code, import as:
|
|
24
|
+
|
|
25
|
+
```py
|
|
26
|
+
from charmlibs.interfaces import tls_certificates
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
See the [reference documentation](https://documentation.ubuntu.com/charmlibs/reference/charmlibs/interfaces/tls_certificates), and read the [docs](https://charmhub.io/tls-certificates-interface/libraries/tls_certificates).
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# charmlibs-interfaces-tls_certificates
|
|
2
|
+
|
|
3
|
+
The `tls_certificates` interface library.
|
|
4
|
+
|
|
5
|
+
To install, add `charmlibs-interfaces-tls_certificates` to your Python dependencies. Then in your Python code, import as:
|
|
6
|
+
|
|
7
|
+
```py
|
|
8
|
+
from charmlibs.interfaces import tls_certificates
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
See the [reference documentation](https://documentation.ubuntu.com/charmlibs/reference/charmlibs/interfaces/tls_certificates), and read the [docs](https://charmhub.io/tls-certificates-interface/libraries/tls_certificates).
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "charmlibs-interfaces-tls_certificates"
|
|
3
|
+
description = "The charmlibs.interfaces.tls_certificates package."
|
|
4
|
+
readme = "README.md"
|
|
5
|
+
requires-python = ">=3.10"
|
|
6
|
+
authors = [
|
|
7
|
+
{name="The TLS team at Canonical"},
|
|
8
|
+
]
|
|
9
|
+
classifiers = [
|
|
10
|
+
"Programming Language :: Python :: 3",
|
|
11
|
+
"License :: OSI Approved :: Apache Software License",
|
|
12
|
+
"Intended Audience :: Developers",
|
|
13
|
+
"Operating System :: POSIX :: Linux",
|
|
14
|
+
"Development Status :: 5 - Production/Stable",
|
|
15
|
+
]
|
|
16
|
+
dynamic = ["version"]
|
|
17
|
+
dependencies = [
|
|
18
|
+
"cryptography>=43.0.0",
|
|
19
|
+
"ops",
|
|
20
|
+
"pydantic",
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
[dependency-groups]
|
|
24
|
+
lint = [ # installed for `just lint interfaces/tls_certificates` (unit, functional, and integration are also installed)
|
|
25
|
+
"typing_extensions",
|
|
26
|
+
]
|
|
27
|
+
unit = [ # installed for `just unit interfaces/tls_certificates`
|
|
28
|
+
"ops[testing]",
|
|
29
|
+
"pkilint",
|
|
30
|
+
]
|
|
31
|
+
functional = [ # installed for `just functional interfaces/tls_certificates`
|
|
32
|
+
]
|
|
33
|
+
integration = [ # installed for `just integration interfaces/tls_certificates`
|
|
34
|
+
"juju>3",
|
|
35
|
+
"pytest-operator",
|
|
36
|
+
"pytest-asyncio==0.21.2",
|
|
37
|
+
]
|
|
38
|
+
|
|
39
|
+
[project.urls]
|
|
40
|
+
"Repository" = "https://github.com/canonical/charmlibs"
|
|
41
|
+
"Issues" = "https://github.com/canonical/charmlibs/issues"
|
|
42
|
+
|
|
43
|
+
[build-system]
|
|
44
|
+
requires = ["hatchling"]
|
|
45
|
+
build-backend = "hatchling.build"
|
|
46
|
+
|
|
47
|
+
[tool.hatch.build.targets.wheel]
|
|
48
|
+
packages = ["src/charmlibs"]
|
|
49
|
+
|
|
50
|
+
[tool.hatch.version]
|
|
51
|
+
path = "src/charmlibs/interfaces/tls_certificates/_version.py"
|
|
52
|
+
|
|
53
|
+
[tool.ruff]
|
|
54
|
+
extend = "../../pyproject.toml"
|
|
55
|
+
src = ["src", "tests/unit", "tests/functional", "tests/integration"] # correctly sort local imports in tests
|
|
56
|
+
exclude = [
|
|
57
|
+
"tests/integration/charms/*/published/src/charmlibs",
|
|
58
|
+
]
|
|
59
|
+
|
|
60
|
+
[tool.ruff.format]
|
|
61
|
+
quote-style = "double"
|
|
62
|
+
|
|
63
|
+
[tool.ruff.lint.extend-per-file-ignores]
|
|
64
|
+
"src/charmlibs/interfaces/tls_certificates/_tls_certificates.py" = [
|
|
65
|
+
"B904", # FIXME: use raise ... from
|
|
66
|
+
"B909", # FIXME: mutation to loop iterable during iteration
|
|
67
|
+
"PERF203", # FIXME: ignore inline or refactor
|
|
68
|
+
]
|
|
69
|
+
"tests/*" = [
|
|
70
|
+
"E501", # line too long
|
|
71
|
+
]
|
|
72
|
+
|
|
73
|
+
[tool.pyright]
|
|
74
|
+
extends = "../../pyproject.toml"
|
|
75
|
+
include = ["src", "tests"]
|
|
76
|
+
pythonVersion = "3.10" # check no python > 3.10 features are used
|
|
77
|
+
ignore = [
|
|
78
|
+
"tests/integration/charms/*/published/src/charmlibs",
|
|
79
|
+
]
|
|
80
|
+
|
|
81
|
+
[tool.pytest.ini_options]
|
|
82
|
+
markers = [
|
|
83
|
+
"upgrade: test that refreshes the chamr with the new library version",
|
|
84
|
+
]
|
|
85
|
+
|
|
86
|
+
[tool.charmlibs.functional]
|
|
87
|
+
ubuntu = [] # ubuntu versions to run functional tests with, e.g. "24.04" (defaults to just "latest")
|
|
88
|
+
pebble = [] # pebble versions to run functional tests with, e.g. "v1.0.0", "master" (defaults to no pebble versions)
|
|
89
|
+
sudo = false # whether to run functional tests with sudo (defaults to false)
|
|
90
|
+
|
|
91
|
+
[tool.charmlibs.integration]
|
|
92
|
+
# tags to run integration tests with (defaults to running once with no tag, i.e. tags = [''])
|
|
93
|
+
# Available in CI in tests/integration/pack.sh and integration tests as CHARMLIBS_TAG
|
|
94
|
+
tags = [] # Not used by the pack.sh and integration tests generated by the template
|
charmlibs_interfaces_tls_certificates-1.0.0/src/charmlibs/interfaces/tls_certificates/__init__.py
ADDED
|
@@ -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
|
+
]
|