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 for the descriptionstatic final StringAnnotation for the base image namestatic final StringAnnotation for the image URLstatic final StringAnnotation for the image versionstatic 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 StringLegacy manifest media type for Docker distribution manifest v1, which is a JWS (JSON Web Signature) format and is not widely used anymore, but some registries may still support it for backward compatibility Ensure to raise a proper error message when we encounter this media type, as it is not supported by the SDKstatic 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 StringThe platform architecture keystatic final StringThe platform value for 386 architecturestatic final StringThe platform value for amd64 architecturestatic final StringThe platform value for arm architecturestatic final StringThe platform value for arm64 architecturestatic final StringThe platform value for ppc64le architecturestatic final StringThe platform value for riscv64 architecturestatic final StringThe platform value for s390x architecturestatic final StringThe platform features key, which can be used in the annotation "features" to specify the features of the platform, such as gpu or fpgastatic final StringThe platform value for linux osstatic final StringThe platform OS keystatic final StringThe platform OS features key, which can be used in the annotation "os.features" to specify the features of the OS, such as sse4 or aesstatic final StringThe platform OS version key, which can be used in the annotation "os.version" to specify the version of the OS, such as ubuntu 20.04 or alpine 3.14static final StringThe default value for unknown platform informationstatic final StringThe platform variant key, which can be used in the annotation "variant" to specify the variant of the architecture, such as armv7 or armv8static final StringThe platform value for windows OSstatic final StringRange headerstatic final StringUser agent headerstatic final StringThe v5 variant for arm architecture, which can be used in the annotation "variant" to specify the variant of the arm architecturestatic final StringThe v6 variant for arm architecture, which can be used in the annotation "variant" to specify the variant of the arm architecturestatic final StringThe v7 variant for arm architecture, which can be used in the annotation "variant" to specify the variant of the arm architecturestatic final StringThe v8 variant for arm architecture, which can be used in the annotation "variant" to specify the variant of the arm architecturestatic final StringWWW-Authenticate headerstatic final StringZip media type -
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:
-
ZIP_MEDIA_TYPE
Zip media type- 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:
-
LEGACY_MANIFEST_MEDIA_TYPE
Legacy manifest media type for Docker distribution manifest v1, which is a JWS (JSON Web Signature) format and is not widely used anymore, but some registries may still support it for backward compatibility Ensure to raise a proper error message when we encounter this media type, as it is not supported by the SDK- 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_DESCRIPTION
Annotation for the description- 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_IMAGE_BASE_NAME
Annotation for the base image name- See Also:
-
ANNOTATION_IMAGE_URL
Annotation for the image URL- See Also:
-
ANNOTATION_IMAGE_VERSION
Annotation for the image version- See Also:
-
PLATFORM_OS
The platform OS key- See Also:
-
PLATFORM_ARCHITECTURE
The platform architecture key- See Also:
-
PLATFORM_VARIANT
The platform variant key, which can be used in the annotation "variant" to specify the variant of the architecture, such as armv7 or armv8- See Also:
-
PLATFORM_OS_VERSION
The platform OS version key, which can be used in the annotation "os.version" to specify the version of the OS, such as ubuntu 20.04 or alpine 3.14- See Also:
-
PLATFORM_OS_FEATURES
The platform OS features key, which can be used in the annotation "os.features" to specify the features of the OS, such as sse4 or aes- See Also:
-
PLATFORM_FEATURES
The platform features key, which can be used in the annotation "features" to specify the features of the platform, such as gpu or fpga- See Also:
-
PLATFORM_UNKNOWN
The default value for unknown platform information- See Also:
-
PLATFORM_LINUX
The platform value for linux os- See Also:
-
PLATFORM_WINDOWS
The platform value for windows OS- See Also:
-
PLATFORM_ARCHITECTURE_AMD64
The platform value for amd64 architecture- See Also:
-
PLATFORM_ARCHITECTURE_386
The platform value for 386 architecture- See Also:
-
PLATFORM_ARCHITECTURE_ARM
The platform value for arm architecture- See Also:
-
PLATFORM_ARCHITECTURE_ARM64
The platform value for arm64 architecture- See Also:
-
PLATFORM_ARCHITECTURE_PPC64LE
The platform value for ppc64le architecture- See Also:
-
PLATFORM_ARCHITECTURE_RISCV64
The platform value for riscv64 architecture- See Also:
-
PLATFORM_ARCHITECTURE_S390X
The platform value for s390x architecture- See Also:
-
VARIANT_V5
The v5 variant for arm architecture, which can be used in the annotation "variant" to specify the variant of the arm architecture- See Also:
-
VARIANT_V6
The v6 variant for arm architecture, which can be used in the annotation "variant" to specify the variant of the arm architecture- See Also:
-
VARIANT_V7
The v7 variant for arm architecture, which can be used in the annotation "variant" to specify the variant of the arm architecture- See Also:
-
VARIANT_V8
The v8 variant for arm architecture, which can be used in the annotation "variant" to specify the variant of the arm architecture- 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
-