Package land.oras
Class Ref<T extends Ref<T>>
java.lang.Object
land.oras.Ref<T>
- Type Parameters:
T
- The type of the ref
- Direct Known Subclasses:
ContainerRef
,LayoutRef
@NullMarked
public abstract sealed class Ref<T extends Ref<T>>
extends Object
permits ContainerRef, LayoutRef
A referer of a container on a
OCI
.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract SupportedAlgorithm
Get the algorithmabstract String
Get the repository where to find the ref@Nullable String
getTag()
Get the tagabstract T
withDigest
(String digest) Return the ref with the digest
-
Field Details
-
tag
The tag of the container.
-
-
Constructor Details
-
Ref
Default constructor
-
-
Method Details
-
getTag
Get the tag- Returns:
- The tag
-
withDigest
Return the ref with the digest- Parameters:
digest
- The digest- Returns:
- The ref
-
getAlgorithm
Get the algorithm- Returns:
- The algorithm
-
getRepository
Get the repository where to find the ref- Returns:
- The repository
-