Package land.oras
Class LayoutRef
A referer of a container on a
OCILayout
.-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the algorithmGet the folderGet the repository where to find the refboolean
Return if the current layout tag is a valid digest.static LayoutRef
Parse the layout ref with folder and tag.withDigest
(String digest) Return the ref with the digestReturn a new layout ref with the tag.
-
Method Details
-
getFolder
Get the folder- Returns:
- The folder
-
withTag
Return a new layout ref with the tag.- Parameters:
tag
- The tag.- Returns:
- The new layout ref.
-
withDigest
Description copied from class:Ref
Return the ref with the digest- Specified by:
withDigest
in classRef<LayoutRef>
- Parameters:
digest
- The digest- Returns:
- The ref
-
parse
Parse the layout ref with folder and tag.- Parameters:
name
- The layout ref.- Returns:
- The container object with the registry, repository and tag.
-
getAlgorithm
Description copied from class:Ref
Get the algorithm- Specified by:
getAlgorithm
in classRef<LayoutRef>
- Returns:
- The algorithm
-
isValidDigest
public boolean isValidDigest()Return if the current layout tag is a valid digest.- Returns:
- True if the tag is a valid digest.
-
getRepository
Description copied from class:Ref
Get the repository where to find the ref- Specified by:
getRepository
in classRef<LayoutRef>
- Returns:
- The repository
-