Package land.oras
Class ContainerRef
A referer of a container on a
Registry
.-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ContainerRef
forRegistry
(String registry) Return a container reference for a registrystatic ContainerRef
Return a container reference from URLGet the algorithmGet the API registryReturn the blobs URLReturn the blobs upload URL with the digest for single POST uploadReturn the blobs upload URL@Nullable String
Get the digestReturn the manifests URL@Nullable String
Get the namespacegetReferrersPath
(@Nullable ArtifactType artifactType) Return the referrers URL for this container referrerCreate a new container referenceGet the repositoryReturn the tag URLstatic ContainerRef
Parse the container name into registry, repository and tag.withDigest
(String digest) Return the ref with the digest
-
Method Details
-
getRegistry
Create a new container reference- Returns:
- The new container reference
-
getApiRegistry
Get the API registry- Returns:
- The API registry
-
getNamespace
Get the namespace- Returns:
- The namespace
-
getRepository
Get the repository- Specified by:
getRepository
in classRef<ContainerRef>
- Returns:
- The repository
-
getDigest
Get the digest- Returns:
- The digest
-
withDigest
Description copied from class:Ref
Return the ref with the digest- Specified by:
withDigest
in classRef<ContainerRef>
- Parameters:
digest
- The digest- Returns:
- The ref
-
getAlgorithm
Description copied from class:Ref
Get the algorithm- Specified by:
getAlgorithm
in classRef<ContainerRef>
- Returns:
- The algorithm
-
getTagsPath
Return the tag URL- Returns:
- The tag URL
-
getReferrersPath
Return the referrers URL for this container referrer- Parameters:
artifactType
- The optional artifact type- Returns:
- The referrers URL
-
getManifestsPath
Return the manifests URL- Returns:
- The manifests URL
-
getBlobsUploadPath
Return the blobs upload URL- Returns:
- The blobs upload URL
-
getBlobsUploadDigestPath
Return the blobs upload URL with the digest for single POST upload- Returns:
- The blobs upload URL
-
getBlobsPath
Return the blobs URL- Returns:
- The blobs URL
-
parse
Parse the container name into registry, repository and tag.- Parameters:
name
- The full name of the container to parse with any components.- Returns:
- The container object with the registry, repository and tag.
-
forRegistry
Return a container reference for a registry- Parameters:
registry
- The registry- Returns:
- The container reference
-
fromUrl
Return a container reference from URL- Parameters:
url
- The URL- Returns:
- The container reference
-