2023-03-14 20:58:21 +01:00
|
|
|
package io.gitlab.jfronny.resclone.fetchers;
|
2021-05-11 17:51:34 +02:00
|
|
|
|
|
|
|
import java.nio.file.Path;
|
|
|
|
|
|
|
|
public interface PackFetcher {
|
|
|
|
Result get(String baseUrl, Path targetDir, boolean forceDownload) throws Exception;
|
|
|
|
String getSourceTypeName(); // The name for users to specify in the config
|
2022-06-05 17:40:50 +02:00
|
|
|
|
|
|
|
record Result(Path downloadPath, boolean freshDownload) { }
|
2021-05-11 17:51:34 +02:00
|
|
|
}
|