Package land.oras

Class Referrers

java.lang.Object
land.oras.Referrers

public class Referrers extends Object
List of referrers
  • Method Details

    • getMediaType

      public String getMediaType()
      Get the media type
      Returns:
      The media type
    • getManifests

      public List<ManifestDescriptor> getManifests()
      Get the list of manifests
      Returns:
      The list of manifests
    • toJson

      public String toJson()
      Return the JSON representation of the referrers
      Returns:
      The JSON string
    • fromJson

      public static Referrers fromJson(String json)
      Create a manifest from a JSON string
      Parameters:
      json - The JSON string
      Returns:
      The referrers
    • from

      public static Referrers from(List<ManifestDescriptor> descriptors)
      Create a referrers object from a list of descriptors
      Parameters:
      descriptors - The list of descriptors
      Returns:
      The referrers object