All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.salesforce.dockerfileimageupdate.model.GitHubContentToProcess Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 1.1.26
Show newest version
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 - 2024 Weber Informatics LLC | Privacy Policy