| OLD | NEW |
| 1 # Copyright 2015 The LUCI Authors. All rights reserved. | 1 # Copyright 2015 The LUCI Authors. All rights reserved. |
| 2 # Use of this source code is governed by the Apache v2.0 license that can be | 2 # Use of this source code is governed under the Apache License, Version 2.0 |
| 3 # found in the LICENSE file. | 3 # that can be found in the LICENSE file. |
| 4 | 4 |
| 5 """Functions to read configs from a configuration service. | 5 """Functions to read configs from a configuration service. |
| 6 | 6 |
| 7 Reads configuration files stored in a configuration service instance. | 7 Reads configuration files stored in a configuration service instance. |
| 8 Memaches results, in particular caches config blobs by hash. | 8 Memaches results, in particular caches config blobs by hash. |
| 9 Optionally caches configs in the datastore for performance and reliability. | 9 Optionally caches configs in the datastore for performance and reliability. |
| 10 | 10 |
| 11 If config service hostname is not set, reads configs from the filesystem. | 11 If config service hostname is not set, reads configs from the filesystem. |
| 12 | 12 |
| 13 Example usage: | 13 Example usage: |
| (...skipping 17 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 For more info, read docstrings in api.py. | 32 For more info, read docstrings in api.py. |
| 33 """ | 33 """ |
| 34 | 34 |
| 35 # Pylint doesn't like relative wildcard imports. | 35 # Pylint doesn't like relative wildcard imports. |
| 36 # pylint: disable=W0401,W0403 | 36 # pylint: disable=W0401,W0403 |
| 37 | 37 |
| 38 from .api import * | 38 from .api import * |
| 39 from .common import * | 39 from .common import * |
| 40 from .endpoint import ConfigApi | 40 from .endpoint import ConfigApi |
| OLD | NEW |