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

com.capitalone.dashboard.collector.ArtifactoryClient Maven / Gradle / Ivy

The newest version!
package com.capitalone.dashboard.collector;

import java.util.List;
import java.util.Map;

import com.capitalone.dashboard.model.ArtifactItem;
import com.capitalone.dashboard.model.ArtifactoryRepo;
import com.capitalone.dashboard.model.BaseArtifact;
import com.capitalone.dashboard.model.BinaryArtifact;
import com.capitalone.dashboard.model.Collector;

/**
 * Client for fetching artifacts information from Artifactory
 */
public interface ArtifactoryClient {

    /**
     * Obtain list of repos in the given artifactory
     *
     * @param instanceUrl         server url
     * @return
     */
    List getRepos(String instanceUrl);

    /**
     * Obtain all the artifacts in the given artifactory repo
     *
     * @param instanceUrl server url
     * @param repoName    repo name
     * @param lastUpdated timestamp when the repo was last updated
     * @return
     */
    List getArtifacts(String instanceUrl, String repoName, long lastUpdated);

    List getArtifactItems(String instanceUrl, String repoName,String pattern, long lastUpdated);

    List getArtifacts(ArtifactItem artifactItem, List pattern);

    Map> getLatestBinaryArtifacts(Collector collector, List patterns, String instanceUrl, String repo);

    List getPattern(String repoName);

    ArtifactItem normalize(ArtifactItem artifactItem);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy