com.salesforce.dockerfileimageupdate.model.GitHubContentToProcess Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dockerfile-image-update Show documentation
Show all versions of dockerfile-image-update Show documentation
This tool provides a mechanism to make security updates to docker images at scale.
The tool searches github for declared docker images and sends pull requests to projects that are not using
the desired version of the requested docker image.
package com.salesforce.dockerfileimageupdate.model;
import org.kohsuke.github.GHRepository;
/**
* Models the fork, parent repo, and contentPath of content in GitHub to process for an update operation
*/
public class GitHubContentToProcess {
private final GHRepository fork;
private final GHRepository parent;
private final String contentPath;
public GitHubContentToProcess(GHRepository fork, GHRepository parent, String contentPath) {
this.parent = parent;
this.fork = fork;
this.contentPath = contentPath;
}
public GHRepository getFork() {
return fork;
}
public GHRepository getParent() {
return parent;
}
public String getContentPath() {
return contentPath;
}
@Override
public String toString() {
return String.format("content path: %s; fork: %s", contentPath, fork);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy