Package org.apache.storm.container.oci
Interface OciManifestToResourcesPluginInterface
-
- All Known Implementing Classes:
HdfsManifestToResourcesPlugin
public interface OciManifestToResourcesPluginInterface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OciResource
getConfigResource(ImageManifest manifest)
Get the image config information from the manifest.List<OciResource>
getLayerResources(ImageManifest manifest)
Get the layers information from the manifest.void
init(Map<String,Object> conf)
Initialization.
-
-
-
Method Detail
-
init
void init(Map<String,Object> conf) throws IOException
Initialization.- Parameters:
conf
- the storm conf- Throws:
IOException
- on I/O exception
-
getLayerResources
List<OciResource> getLayerResources(ImageManifest manifest) throws IOException
Get the layers information from the manifest. The layers should be returned in the order in which they appear in the manifest- Parameters:
manifest
- the manifest of a image- Returns:
- a list of layers information
- Throws:
IOException
- on I/O exception
-
getConfigResource
OciResource getConfigResource(ImageManifest manifest) throws IOException
Get the image config information from the manifest.- Parameters:
manifest
- the manifest of a image- Returns:
- the config of this image
- Throws:
IOException
- on I/O exception
-
-