Package com.dtolabs.rundeck.plugins.scm
Interface ScmRepoManifest
-
public interface ScmRepoManifestDefines the manifest of repo files tracked and mapping to Job definitions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>getJobToFileMapping()Return the mapping of UUID to relative file pathjava.lang.StringgetRelativePathFor(JobReference job)java.lang.StringgetRelativePathFor(java.lang.String uuid)voidremoveFile(java.lang.String path)Remove the entry for the pathvoidremoveUUID(java.lang.String uuid)Remove the entry for the UUIDvoidsetMapping(java.lang.String uuid, java.lang.String filepath)Add or update a UUID to filepathmapping entryvoidstore(java.io.OutputStream out)Store the mapping to disk
-
-
-
Method Detail
-
getJobToFileMapping
java.util.Map<java.lang.String,java.lang.String> getJobToFileMapping()
Return the mapping of UUID to relative file path- Returns:
- the mapping of UUID to relative file path
-
getRelativePathFor
java.lang.String getRelativePathFor(java.lang.String uuid)
-
getRelativePathFor
java.lang.String getRelativePathFor(JobReference job)
-
store
void store(java.io.OutputStream out) throws java.io.IOExceptionStore the mapping to disk- Throws:
java.io.IOException
-
setMapping
void setMapping(java.lang.String uuid, java.lang.String filepath)Add or update a UUID to filepathmapping entry- Parameters:
uuid- uuidfilepath- filepath
-
removeUUID
void removeUUID(java.lang.String uuid)
Remove the entry for the UUID- Parameters:
uuid- uuid
-
removeFile
void removeFile(java.lang.String path)
Remove the entry for the path- Parameters:
path- relative path
-
-