Class RegistryClient
java.lang.Object
io.jenkins.plugins.oras.parameter.RegistryClient
Registry client wrapping the
Registry-
Constructor Summary
ConstructorsConstructorDescriptionRegistryClient(com.cloudbees.plugins.credentials.common.UsernamePasswordCredentials credentials) Create a new registry client. -
Method Summary
Modifier and TypeMethodDescriptiongetAnnotations(land.oras.ContainerRef containerRef) Get the descriptor annotationsgetDigest(land.oras.ContainerRef containerRef) Return the digest of an artifact in the registry.land.oras.ContainerRefgetEffectiveReference(land.oras.ContainerRef containerRef) List<land.oras.ManifestDescriptor> getPlatforms(land.oras.ContainerRef containerRef) Return the platforms descriptor for the given indexgetReference(land.oras.ContainerRef containerRef) getTags(land.oras.ContainerRef containerRef) Return all tags of an artifact in the registry.
-
Constructor Details
-
RegistryClient
public RegistryClient(com.cloudbees.plugins.credentials.common.UsernamePasswordCredentials credentials) Create a new registry client.- Parameters:
credentials- The credentials to use
-
-
Method Details
-
getTags
Return all tags of an artifact in the registry.- Parameters:
containerRef- The reference
-
getPlatforms
Return the platforms descriptor for the given index- Parameters:
containerRef- The reference- Returns:
- The list of platform
-
getDigest
Return the digest of an artifact in the registry.- Parameters:
containerRef- The reference- Returns:
- The digest, or null if the artifact does not exist or an error occurs
-
getAnnotations
Get the descriptor annotations- Parameters:
containerRef- The reference- Returns:
- The digest, or null if the artifact does not exist or an error occurs
-
getEffectiveReference
public land.oras.ContainerRef getEffectiveReference(land.oras.ContainerRef containerRef) -
getReference
-