@InterfaceStability.Unstable public class ImageTagToManifestPlugin extends org.apache.hadoop.service.AbstractService implements RuncImageTagToManifestPlugin
RuncContainerRuntime
to convert image tags into runC image manifests.Constructor and Description |
---|
ImageTagToManifestPlugin() |
Modifier and Type | Method and Description |
---|---|
String |
getHashFromImageTag(String imageTag) |
protected BufferedReader |
getHdfsImageToHashReader() |
protected BufferedReader |
getLocalImageToHashReader() |
ImageManifest |
getManifestFromImageTag(String imageTag) |
boolean |
loadImageToHashFiles() |
protected static Map<String,String> |
readImageToHashFile(BufferedReader br)
You may specify multiple tags per hash all on the same line.
|
protected void |
serviceInit(org.apache.hadoop.conf.Configuration configuration) |
protected void |
serviceStart() |
protected void |
serviceStop() |
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop
public ImageManifest getManifestFromImageTag(String imageTag) throws IOException
getManifestFromImageTag
in interface RuncImageTagToManifestPlugin
IOException
public String getHashFromImageTag(String imageTag)
getHashFromImageTag
in interface RuncImageTagToManifestPlugin
protected BufferedReader getLocalImageToHashReader() throws IOException
IOException
protected BufferedReader getHdfsImageToHashReader() throws IOException
IOException
protected static Map<String,String> readImageToHashFile(BufferedReader br) throws IOException
IOException
public boolean loadImageToHashFiles() throws IOException
IOException
protected void serviceInit(org.apache.hadoop.conf.Configuration configuration) throws Exception
serviceInit
in class org.apache.hadoop.service.AbstractService
Exception
protected void serviceStart() throws Exception
serviceStart
in class org.apache.hadoop.service.AbstractService
Exception
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.