1#

2# Copyright (C) 2019-2025 Mathieu Parent <math.parent@gmail.com>

3#

4# This program is free software: you can redistribute it and/or modify

5# it under the terms of the GNU Lesser General Public License as published by

6# the Free Software Foundation, either version 3 of the License, or

7# (at your option) any later version.

8#

9# This program is distributed in the hope that it will be useful,

10# but WITHOUT ANY WARRANTY; without even the implied warranty of

11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the

12# GNU Lesser General Public License for more details.

13#

14# You should have received a copy of the GNU Lesser General Public License

15# along with this program. If not, see <http://www.gnu.org/licenses/>.

16

17

18# =============================================================================

19# Media Types (i.e. MIME types)

20# =============================================================================

21

22 OCI_IMAGE_MANIFEST = "application/vnd.oci.image.manifest.v1+json"

23 OCI_IMAGE_INDEX = "application/vnd.oci.image.index.v1+json"

24

25 DOCKER_MANIFEST_SCHEMA2 = "application/vnd.docker.distribution.manifest.v2+json"

26 DOCKER_MANIFEST_SCHEMA1_SIGNED = "application/vnd.docker.distribution.manifest.v1+prettyjws"

27 DOCKER_MANIFEST_SCHEMA1 = "application/vnd.docker.distribution.manifest.v1+json"

28 DOCKER_MANIFEST_SCHEMA2_LIST = "application/vnd.docker.distribution.manifest.list.v2+json"

29

30 MANIFEST = (

31 OCI_IMAGE_MANIFEST,

32 DOCKER_MANIFEST_SCHEMA2,

33 DOCKER_MANIFEST_SCHEMA1_SIGNED,

34 DOCKER_MANIFEST_SCHEMA1,

35 DOCKER_MANIFEST_SCHEMA2_LIST,

36 OCI_IMAGE_INDEX,

37)

38

39 MANIFEST_LIST = (

40 DOCKER_MANIFEST_SCHEMA2_LIST,

41 # OCI_IMAGE_INDEX,

42)

43

44# =============================================================================

45# Domains

46# =============================================================================

47

48 DOCKER_HOSTNAME = "docker.io"

49 DOCKER_REGISTRY = "registry-1.docker.io"

50

51# =============================================================================

52# Headers

53# =============================================================================

54

55 DIGEST_HEADER = "Docker-Content-Digest"