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

org.whitesource.fs.configuration.RemoteDockerConfiguration Maven / Gradle / Ivy

Go to download

File System Agent is a simple java command line tool which extracts descriptive information from your open source libraries

There is a newer version: 18.9.1.1
Show newest version
package org.whitesource.fs.configuration;

import java.util.List;

public class RemoteDockerConfiguration {

    // Global Docker configurations
    private List imageNames;
    private List imageTags;
    private List imageDigests;
    private boolean forceDelete;
    private boolean remoteDockerEnabled;
    private int maxScanImages;
    private boolean forcePull;
    private int maxPullImages;
    private boolean loginSudo;

    // Amazon ECR configurations
    private List amazonRegistryIds;
    private boolean remoteDockerAmazonEnabled;
    private String amazonRegion = "east";
    private int amazonMaxPullImages;

    // Azure configurations
    private boolean remoteDockerAzureEnabled;
    private String azureUserName;
    private String azureUserPassword;
    private List azureRegistryNames;

    /* --- Constructors --- */

    public RemoteDockerConfiguration(List imageNames, List imageTags, List imageDigests,
                                     boolean forceDelete, boolean remoteDockerEnabled, int maxScanImages,
                                     boolean forcePull, int maxPullImages, boolean loginSudo) {
        this.imageNames = imageNames;
        this.imageTags = imageTags;
        this.imageDigests = imageDigests;
        this.forceDelete = forceDelete;
        this.remoteDockerEnabled = remoteDockerEnabled;
        this.maxScanImages = maxScanImages;
        this.amazonMaxPullImages = 0;
        this.forcePull = forcePull;
        this.maxPullImages = maxPullImages;
        this.loginSudo = loginSudo;
    }

    /* --- Getters / Setters --- */

    public List getImageNames() {
        return imageNames;
    }

    public List getImageTags() {
        return imageTags;
    }

    public List getImageDigests() {
        return imageDigests;
    }

    public boolean isForceDelete() {
        return forceDelete;
    }

    public void setForceDelete(boolean forceDelete) {
        this.forceDelete = forceDelete;
    }

    public boolean isRemoteDockerEnabled() {
        return remoteDockerEnabled;
    }

    public int getMaxScanImages() {
        return maxScanImages;
    }

    public boolean isForcePull() {
        return forcePull;
    }

    public int getMaxPullImages() {
        return maxPullImages;
    }

    public boolean isLoginSudo() {
        return loginSudo;
    }

    // ------------- Amazon methods -------------

    public List getAmazonRegistryIds() {
        return amazonRegistryIds;
    }

    public void setAmazonRegistryIds(List amazonRegistryIds) {
        this.amazonRegistryIds = amazonRegistryIds;
    }

    public void setAmazonRegion(String amazonRegion) {
        this.amazonRegion = amazonRegion;
    }

    public boolean isRemoteDockerAmazonEnabled() {
        return remoteDockerAmazonEnabled;
    }

    public void setRemoteDockerAmazonEnabled(boolean remoteDockerAmazonEnabled) {
        this.remoteDockerAmazonEnabled = remoteDockerAmazonEnabled;
    }

    public int getAmazonMaxPullImages() {
        return amazonMaxPullImages;
    }

    public void setAmazonMaxPullImages(int amazonMaxPullImages) {
        this.amazonMaxPullImages = amazonMaxPullImages;
    }

    // ---------- Azure Methods --------------
    public boolean isRemoteDockerAzureEnabled() {
        return remoteDockerAzureEnabled;
    }

    public void setRemoteDockerAzureEnabled(boolean remoteDockerAzureEnabled) {
        this.remoteDockerAzureEnabled = remoteDockerAzureEnabled;
    }

    public String getAzureUserName() {
        return azureUserName;
    }

    public void setAzureUserName(String azureUserName) {
        this.azureUserName = azureUserName;
    }

    public String getAzureUserPassword() {
        return azureUserPassword;
    }

    public void setAzureUserPassword(String azureUserPassword) {
        this.azureUserPassword = azureUserPassword;
    }

    public List getAzureRegistryNames() {
        return azureRegistryNames;
    }

    public void setAzureRegistryNames(List azureRegistryNames) {
        this.azureRegistryNames = azureRegistryNames;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy