Class RegistryClient

java.lang.Object
io.jenkins.plugins.oras.parameter.RegistryClient

public class RegistryClient extends Object
Registry client wrapping the Registry
  • Constructor Summary

    Constructors
    Constructor
    Description
    RegistryClient(com.cloudbees.plugins.credentials.common.UsernamePasswordCredentials credentials, boolean insecure)
    Create a new registry client.
  • Method Summary

    Modifier and Type
    Method
    Description
    getAnnotations(land.oras.ContainerRef containerRef)
    Get the descriptor annotations
    getDigest(land.oras.ContainerRef containerRef)
    Return the digest of an artifact in the registry.
    land.oras.ContainerRef
    getEffectiveReference(land.oras.ContainerRef containerRef)
     
    List<land.oras.ManifestDescriptor>
    getPlatforms(land.oras.ContainerRef containerRef)
    Return the platforms descriptor for the given index
    getReference(land.oras.ContainerRef containerRef)
     
    getTags(land.oras.ContainerRef containerRef)
    Return all tags of an artifact in the registry.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RegistryClient

      public RegistryClient(com.cloudbees.plugins.credentials.common.UsernamePasswordCredentials credentials, boolean insecure)
      Create a new registry client.
      Parameters:
      credentials - The credentials to use
  • Method Details

    • getTags

      public List<String> getTags(land.oras.ContainerRef containerRef)
      Return all tags of an artifact in the registry.
      Parameters:
      containerRef - The reference
    • getPlatforms

      public List<land.oras.ManifestDescriptor> getPlatforms(land.oras.ContainerRef containerRef)
      Return the platforms descriptor for the given index
      Parameters:
      containerRef - The reference
      Returns:
      The list of platform
    • getDigest

      public String getDigest(land.oras.ContainerRef containerRef)
      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

      @NonNull public Map<String,String> getAnnotations(land.oras.ContainerRef containerRef)
      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

      public String getReference(land.oras.ContainerRef containerRef)