| OLD | NEW |
| 1 # Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 """Implements LogDog Bootstrapping support. | 5 """Implements LogDog Bootstrapping support. |
| 6 """ | 6 """ |
| 7 | 7 |
| 8 import collections | 8 import collections |
| 9 import json | 9 import json |
| 10 import logging | 10 import logging |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 class NotBootstrapped(Exception): | 25 class NotBootstrapped(Exception): |
| 26 pass | 26 pass |
| 27 | 27 |
| 28 | 28 |
| 29 class BootstrapError(Exception): | 29 class BootstrapError(Exception): |
| 30 pass | 30 pass |
| 31 | 31 |
| 32 | 32 |
| 33 # CIPD tag for LogDog Butler/Annotee to use. | 33 # CIPD tag for LogDog Butler/Annotee to use. |
| 34 _STABLE_CIPD_TAG = 'git_revision:c88b313d2fae775acf973229bca7a00d45178781' | 34 _STABLE_CIPD_TAG = 'git_revision:c6b17d5aa4fa6396c5f971248120e0e624c21fb3' |
| 35 | 35 |
| 36 | 36 |
| 37 # Platform is the set of platform-specific LogDog bootstrapping | 37 # Platform is the set of platform-specific LogDog bootstrapping |
| 38 # configuration parameters. Platform is loaded by cascading the _PLATFORM_CONFIG | 38 # configuration parameters. Platform is loaded by cascading the _PLATFORM_CONFIG |
| 39 # against the current running platform. | 39 # against the current running platform. |
| 40 # | 40 # |
| 41 # See _get_streamserver_uri for "streamserver" parameter details. | 41 # See _get_streamserver_uri for "streamserver" parameter details. |
| 42 # | 42 # |
| 43 # Loaded by '_get_platform'. | 43 # Loaded by '_get_platform'. |
| 44 Platform = collections.namedtuple('Platform', ( | 44 Platform = collections.namedtuple('Platform', ( |
| (...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 550 parser.add_argument('--logdog-annotee-path', | 550 parser.add_argument('--logdog-annotee-path', |
| 551 help='Path to the LogDog Annotee. If empty, one will be ' | 551 help='Path to the LogDog Annotee. If empty, one will be ' |
| 552 'probed/downloaded from CIPD.') | 552 'probed/downloaded from CIPD.') |
| 553 parser.add_argument('--logdog-service-account-json', | 553 parser.add_argument('--logdog-service-account-json', |
| 554 help='Path to the service account JSON. If one is not provided, the ' | 554 help='Path to the service account JSON. If one is not provided, the ' |
| 555 'local system credentials will be used.') | 555 'local system credentials will be used.') |
| 556 parser.add_argument('--logdog-service-host', | 556 parser.add_argument('--logdog-service-host', |
| 557 help='Override the LogDog service host, used by Butler for registration.') | 557 help='Override the LogDog service host, used by Butler for registration.') |
| 558 parser.add_argument('--logdog-viewer-host', | 558 parser.add_argument('--logdog-viewer-host', |
| 559 help='Override the LogDog viewer host, used by Annotee to build URLs.') | 559 help='Override the LogDog viewer host, used by Annotee to build URLs.') |
| OLD | NEW |