joychen | 3cb228e | 2013-06-12 19:13:13 | [diff] [blame] | 1 | # Copyright (c) 2013 The Chromium OS Authors. All rights reserved. |
| 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | """Module contains constants shared across all other devserver modules.""" |
| 6 | |
| 7 | #### Google Storage locations and names. #### |
| 8 | # TODO (joyc) move the google storage filenames of artfacts here |
Chris Sosa | 968a106 | 2013-08-03 00:42:50 | [diff] [blame] | 9 | CHANNELS = 'canary', 'dev', 'beta', 'stable' |
joychen | f8f07e2 | 2013-07-13 00:45:51 | [diff] [blame] | 10 | GS_IMAGE_DIR = 'gs://chromeos-image-archive' |
Chris Sosa | ea734d9 | 2013-10-11 18:28:58 | [diff] [blame] | 11 | GS_LATEST_MASTER = GS_IMAGE_DIR + '/%(board)s%(suffix)s/LATEST-master' |
| 12 | IMAGE_DIR = '%(board)s%(suffix)s/%(version)s' |
joychen | f8f07e2 | 2013-07-13 00:45:51 | [diff] [blame] | 13 | |
| 14 | GS_RELEASES_DIR = 'gs://chromeos-releases' |
| 15 | GS_CHANNEL_DIR = GS_RELEASES_DIR + '/%(channel)s-channel/%(board)s/' |
| 16 | |
joychen | 562699a | 2013-08-13 22:22:14 | [diff] [blame] | 17 | VERSION_RE = 'R[-0-9\.]+' |
| 18 | VERSION = '[-0-9\.]+' |
joychen | 3cb228e | 2013-06-12 19:13:13 | [diff] [blame] | 19 | |
| 20 | #### Local storage locations and names. #### |
| 21 | AUTOTEST_DIR = 'autotest' |
joychen | 921e1fb | 2013-06-28 18:12:20 | [diff] [blame] | 22 | BASE_IMAGE_FILE = 'chromiumos_base_image.bin' |
joychen | 25d2597 | 2013-07-30 21:54:16 | [diff] [blame] | 23 | IMAGE_FILE = 'chromiumos_image.bin' |
beeps | c3d0f87 | 2013-08-01 04:50:40 | [diff] [blame] | 24 | FACTORY_IMAGE_FILE = 'factory_test/chromiumos_factory_image.bin' |
joychen | 25d2597 | 2013-07-30 21:54:16 | [diff] [blame] | 25 | RECOVERY_IMAGE_FILE = 'recovery_image.bin' |
joychen | 921e1fb | 2013-06-28 18:12:20 | [diff] [blame] | 26 | TEST_IMAGE_FILE = 'chromiumos_test_image.bin' |
joychen | 25d2597 | 2013-07-30 21:54:16 | [diff] [blame] | 27 | |
joychen | 121fc9b | 2013-08-02 21:30:30 | [diff] [blame] | 28 | ALL_IMAGES = ( |
| 29 | BASE_IMAGE_FILE, |
| 30 | IMAGE_FILE, |
| 31 | RECOVERY_IMAGE_FILE, |
| 32 | TEST_IMAGE_FILE, |
| 33 | ) |
| 34 | |
joychen | 25d2597 | 2013-07-30 21:54:16 | [diff] [blame] | 35 | #### Update files |
| 36 | CACHE_DIR = 'cache' |
| 37 | METADATA_FILE = 'update.meta' |
David Zeuthen | 52ccd01 | 2013-10-31 19:58:26 | [diff] [blame] | 38 | METADATA_HASH_FILE = 'metadata_hash' |
joychen | 25d2597 | 2013-07-30 21:54:16 | [diff] [blame] | 39 | STATEFUL_FILE = 'stateful.tgz' |
| 40 | UPDATE_FILE = 'update.gz' |