Class RegistryClient

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

public class RegistryClient extends Object
Registry client wrapping the Registry
  • 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
    • getTags

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

      public List<String> getRepositories(String registry)
      Return the list of repositories of the given registry
      Parameters:
      registry - The registry
      Returns:
      List of repositories
    • 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)