Package land.oras.utils
Class Const
java.lang.Object
land.oras.utils.Const
Constants used in the SDK.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringAccept headerstatic final StringAnnotation for the crated datestatic final StringAnnotation of the uncompressed dir contentstatic final StringAnnotation to unpack the contentstatic final StringAnnotation for the ref namestatic final StringAnnotation for the revisionstatic final StringAnnotation for the sourcestatic final StringAnnotation for the titlestatic final StringApplication octet stream header valuestatic final StringThe artifact manifest media typestatic final StringAuthorization headerstatic final StringThe blob directory media type for zstd compressionstatic final StringContent length headerstatic final StringContent Range headerstatic final StringContent type headerstatic final StringThe default artifact media type if not specifiedstatic final StringThe default blob directory media typestatic final StringThe default blob media type if file type cannot be determinedstatic final StringThe default descriptor media typestatic final StringThe default empty media typestatic final StringDefault index media typestatic final StringThe default JSON media typestatic final StringThe default manifest media typestatic final StringDefault registry when no unqualified-search-registries is set in the configstatic final StringDefault tagstatic final StringThe Docker content digest headerstatic final StringDocker index media type (manifest list or fat manifest)static final StringDocker distribution manifest typestatic final StringJSON property for annotationsstatic final StringJSON property for artifact typestatic final StringJSON property for configstatic final StringJSON property for data (base64 encoded)static final StringJSON property for digeststatic final StringJSON property for layersstatic final StringJSON property for manifestsstatic final StringJSON property for media typestatic final StringJSON property for platformstatic final StringJSON property for schema versionstatic final StringJSON property for sizestatic final StringJSON property for subjectstatic final StringLocation headerstatic final StringThe default accept type for the manifeststatic final StringOCI Chunk Minimum Length headerstatic final StringBlobs folder in OCI layoutstatic final StringLayout folder in OCI layoutstatic final StringIndex file in OCI layoutstatic final StringOCI subject headerstatic final StringRange headerstatic final StringUser agent headerstatic final StringWWW-Authenticate header -
Method Summary
Modifier and TypeMethodDescriptionstatic StringGet the current timestamp for the created annotation
-
Field Details
-
JSON_PROPERTY_MEDIA_TYPE
JSON property for media type- See Also:
-
JSON_PROPERTY_ARTIFACT_TYPE
JSON property for artifact type- See Also:
-
JSON_PROPERTY_SCHEMA_VERSION
JSON property for schema version- See Also:
-
JSON_PROPERTY_SUBJECT
JSON property for subject- See Also:
-
JSON_PROPERTY_CONFIG
JSON property for config- See Also:
-
JSON_PROPERTY_LAYERS
JSON property for layers- See Also:
-
JSON_PROPERTY_DIGEST
JSON property for digest- See Also:
-
JSON_PROPERTY_SIZE
JSON property for size- See Also:
-
JSON_PROPERTY_ANNOTATIONS
JSON property for annotations- See Also:
-
JSON_PROPERTY_PLATFORM
JSON property for platform- See Also:
-
JSON_PROPERTY_MANIFESTS
JSON property for manifests- See Also:
-
JSON_PROPERTY_DATA
JSON property for data (base64 encoded)- See Also:
-
DEFAULT_REGISTRY
Default registry when no unqualified-search-registries is set in the config- See Also:
-
DEFAULT_TAG
Default tag- See Also:
-
OCI_LAYOUT_INDEX
Index file in OCI layout- See Also:
-
OCI_LAYOUT_FILE
Layout folder in OCI layout- See Also:
-
OCI_LAYOUT_BLOBS
Blobs folder in OCI layout- See Also:
-
DEFAULT_BLOB_DIR_MEDIA_TYPE
The default blob directory media type- See Also:
-
BLOB_DIR_ZSTD_MEDIA_TYPE
The blob directory media type for zstd compression- See Also:
-
DEFAULT_ARTIFACT_MEDIA_TYPE
The default artifact media type if not specified- See Also:
-
DEFAULT_BLOB_MEDIA_TYPE
The default blob media type if file type cannot be determined- See Also:
-
DEFAULT_DESCRIPTOR_MEDIA_TYPE
The default descriptor media type- See Also:
-
DEFAULT_JSON_MEDIA_TYPE
The default JSON media type- See Also:
-
DEFAULT_EMPTY_MEDIA_TYPE
The default empty media type- See Also:
-
DEFAULT_INDEX_MEDIA_TYPE
Default index media type- See Also:
-
ARTIFACT_MANIFEST_MEDIA_TYPE
The artifact manifest media type- See Also:
-
DOCKER_MANIFEST_MEDIA_TYPE
Docker distribution manifest type- See Also:
-
DOCKER_INDEX_MEDIA_TYPE
Docker index media type (manifest list or fat manifest)- See Also:
-
DEFAULT_MANIFEST_MEDIA_TYPE
The default manifest media type- See Also:
-
MANIFEST_ACCEPT_TYPE
The default accept type for the manifest -
ANNOTATION_TITLE
Annotation for the title- See Also:
-
ANNOTATION_CREATED
Annotation for the crated date- See Also:
-
ANNOTATION_REF
Annotation for the ref name- See Also:
-
ANNOTATION_SOURCE
Annotation for the source- See Also:
-
ANNOTATION_REVISION
Annotation for the revision- See Also:
-
ANNOTATION_ORAS_CONTENT_DIGEST
Annotation of the uncompressed dir content- See Also:
-
ANNOTATION_ORAS_UNPACK
Annotation to unpack the content- See Also:
-
AUTHORIZATION_HEADER
Authorization header- See Also:
-
USER_AGENT_HEADER
User agent header- See Also:
-
CONTENT_TYPE_HEADER
Content type header- See Also:
-
CONTENT_LENGTH_HEADER
Content length header- See Also:
-
DOCKER_CONTENT_DIGEST_HEADER
The Docker content digest header- See Also:
-
OCI_SUBJECT_HEADER
OCI subject header- See Also:
-
ACCEPT_HEADER
Accept header- See Also:
-
LOCATION_HEADER
Location header- See Also:
-
WWW_AUTHENTICATE_HEADER
WWW-Authenticate header- See Also:
-
APPLICATION_OCTET_STREAM_HEADER_VALUE
Application octet stream header value- See Also:
-
CONTENT_RANGE_HEADER
Content Range header- See Also:
-
RANGE_HEADER
Range header- See Also:
-
OCI_CHUNK_MIN_LENGTH_HEADER
OCI Chunk Minimum Length header- See Also:
-
-
Method Details
-
currentTimestamp
Get the current timestamp for the created annotation- Returns:
- The current timestamp
-