forked from oras-project/oras-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConst.java
More file actions
97 lines (78 loc) · 2.32 KB
/
Const.java
File metadata and controls
97 lines (78 loc) · 2.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
package land.oras.utils;
import org.jspecify.annotations.NullMarked;
/**
* Constants used in the SDK.
*/
@NullMarked
public final class Const {
/**
* Hidden constructor
*/
private Const() {
// Private constructor
}
/**
* Default registry
*/
public static final String DEFAULT_REGISTRY = "docker.io";
/**
* Default tag
*/
public static final String DEFAULT_TAG = "latest";
/**
* The default blob directory media type
*/
public static final String DEFAULT_BLOB_DIR_MEDIA_TYPE = "application/vnd.oci.image.layer.v1.tar+gzip";
/**
* The default blob media type if file type cannot be determined
*/
public static final String DEFAULT_BLOB_MEDIA_TYPE = "application/vnd.oci.image.layer.v1.tar";
/**
* The default descriptor media type
*/
public static final String DEFAULT_DESCRIPTOR_MEDIA_TYPE = "application/octet-stream";
/**
* The default JSON media type
*/
public static final String DEFAULT_JSON_MEDIA_TYPE = "application/json";
/**
* The default empty media type
*/
public static final String DEFAULT_EMPTY_MEDIA_TYPE = "application/vnd.oci.empty.v1+json";
/**
* The default manifest media type
*/
public static final String DEFAULT_MANIFEST_MEDIA_TYPE = "application/vnd.oci.image.manifest.v1+json";
/**
* Annotation for the title
*/
public static final String ANNOTATION_TITLE = "org.opencontainers.image.title";
/**
* Annotation to unpack the content
*/
public static final String ANNOTATION_ORAS_UNPACK = "io.deis.oras.content.unpack";
/**
* Authorization header
*/
public static final String AUTHORIZATION_HEADER = "Authorization";
/**
* Content type header
*/
public static final String CONTENT_TYPE_HEADER = "Content-Type";
/**
* Accept header
*/
public static final String ACCEPT_HEADER = "Accept";
/**
* Location header
*/
public static final String LOCATION_HEADER = "Location";
/**
* WWW-Authenticate header
*/
public static final String WWW_AUTHENTICATE_HEADER = "WWW-Authenticate";
/**
* Application octet stream header value
*/
public static final String APPLICATION_OCTET_STREAM_HEADER_VALUE = "application/octet-stream";
}