| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 | from __future__ import absolute_importfrom __future__ import unicode_literalsimport sysDEFAULT_TIMEOUT = 10HTTP_TIMEOUT = 60IMAGE_EVENTS = ['delete', 'import', 'load', 'pull', 'push', 'save', 'tag', 'untag']IS_WINDOWS_PLATFORM = (sys.platform == "win32")LABEL_CONTAINER_NUMBER = 'com.docker.compose.container-number'LABEL_ONE_OFF = 'com.docker.compose.oneoff'LABEL_PROJECT = 'com.docker.compose.project'LABEL_SERVICE = 'com.docker.compose.service'LABEL_NETWORK = 'com.docker.compose.network'LABEL_VERSION = 'com.docker.compose.version'LABEL_VOLUME = 'com.docker.compose.volume'LABEL_CONFIG_HASH = 'com.docker.compose.config-hash'SECRETS_PATH = '/run/secrets'COMPOSEFILE_V1 = '1'COMPOSEFILE_V2_0 = '2.0'COMPOSEFILE_V2_1 = '2.1'COMPOSEFILE_V2_2 = '2.2'COMPOSEFILE_V3_0 = '3.0'COMPOSEFILE_V3_1 = '3.1'COMPOSEFILE_V3_2 = '3.2'API_VERSIONS = {    COMPOSEFILE_V1: '1.21',    COMPOSEFILE_V2_0: '1.22',    COMPOSEFILE_V2_1: '1.24',    COMPOSEFILE_V2_2: '1.25',    COMPOSEFILE_V3_0: '1.25',    COMPOSEFILE_V3_1: '1.25',    COMPOSEFILE_V3_2: '1.25',}API_VERSION_TO_ENGINE_VERSION = {    API_VERSIONS[COMPOSEFILE_V1]: '1.9.0',    API_VERSIONS[COMPOSEFILE_V2_0]: '1.10.0',    API_VERSIONS[COMPOSEFILE_V2_1]: '1.12.0',    API_VERSIONS[COMPOSEFILE_V2_2]: '1.13.0',    API_VERSIONS[COMPOSEFILE_V3_0]: '1.13.0',    API_VERSIONS[COMPOSEFILE_V3_1]: '1.13.0',    API_VERSIONS[COMPOSEFILE_V3_2]: '1.13.0',}
 |