Package land.oras
Class Referrers
java.lang.Object
land.oras.Referrers
List of referrers
-
Method Summary
Modifier and TypeMethodDescriptionstatic Referrers
from
(List<ManifestDescriptor> descriptors) Create a referrers object from a list of descriptorsstatic Referrers
Create a manifest from a JSON stringGet the list of manifestsGet the media typetoJson()
Return the JSON representation of the referrers
-
Method Details
-
getMediaType
Get the media type- Returns:
- The media type
-
getManifests
Get the list of manifests- Returns:
- The list of manifests
-
toJson
Return the JSON representation of the referrers- Returns:
- The JSON string
-
fromJson
Create a manifest from a JSON string- Parameters:
json
- The JSON string- Returns:
- The referrers
-
from
Create a referrers object from a list of descriptors- Parameters:
descriptors
- The list of descriptors- Returns:
- The referrers object
-