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

com.salesforce.dockerfileimageupdate.utils.Constants Maven / Gradle / Ivy

/*
 * Copyright (c) 2018, salesforce.com, inc.
 * All rights reserved.
 * Licensed under the BSD 3-Clause license.
 * For full license text, see LICENSE.txt file in the repo root or
 * https://opensource.org/licenses/BSD-3-Clause
 */

package com.salesforce.dockerfileimageupdate.utils;


import java.time.Duration;
import java.util.*;

/**
 * @author minho-park
 */
public class Constants {

    /* Should never be instantiated. */
    private Constants() {
    }

    public static final String COMMAND = "command";
    public static final String GIT_REPO = "";
    public static final String STORE = "";
    public static final String IMG = "";
    public static final String TAG = "";
    public static final String FORCE_TAG = "";
    public static final String GIT_API = "ghapi";
    public static final String GIT_ORG = "org";
    public static final String GIT_BRANCH = "branch";
    public static final String PULL_REQ_ID = "f9ed6ea5-6e74-4338-a629-50c5c6807a6b";
    public static final String STORE_JSON_FILE = "store.json";
    public static final String GIT_AUTO_MERGE = "f";
    public static final String GIT_PR_TITLE = "m";
    public static final String GIT_PR_BODY = "B";
    public static final String GIT_ADDITIONAL_COMMIT_MESSAGE = "c";
    public static final String GIT_REPO_EXCLUDES = "excludes";
    public static final String GIT_API_SEARCH_LIMIT = "ghapisearchlimit";
    public static final String SKIP_PR_CREATION = "skipprcreation";
    public static final String IGNORE_IMAGE_STRING = "x";
    public static final String FILE_NAMES_TO_SEARCH = "filenamestosearch";
    public static final String RATE_LIMIT_PR_CREATION = "rate_limit_pr_creations";
    public static final String DEBUG = "debug";
    //max number of PRs to be sent (or tokens to be added)  per DEFAULT_RATE_LIMIT_DURATION(per hour in this case)
    public static final long DEFAULT_RATE_LIMIT = 60;

    public static final long DEFAULT_CONSUMING_TOKEN_RATE = 1;
    public static final Duration DEFAULT_RATE_LIMIT_DURATION = Duration.ofMinutes(DEFAULT_RATE_LIMIT);
    //token adding rate(here:a token added every 1 minutes in the bucket)
    public static final Duration DEFAULT_TOKEN_ADDING_RATE = Duration.ofMinutes(DEFAULT_CONSUMING_TOKEN_RATE);
    public static final String FILENAME_DOCKERFILE = "dockerfile";
    public static final String FILENAME_DOCKER_COMPOSE = "docker-compose";
    public static final String CHECK_FOR_RENOVATE = "checkforrenovate";
    //The Renovate configuration file can be in any one of the following locations. Refer to https://docs.renovatebot.com/configuration-options/
    public static final List RENOVATE_CONFIG_FILEPATHS = Arrays.asList("renovate.json", "renovate.json5", ".github/renovate.json", ".github/renovate.json5", ".gitlab/renovate.json", ".gitlab/renovate.json5", ".renovaterc", ".renovaterc.json", ".renovaterc.json5");
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy