Package com.artipie.rpm
Interface RepoConfig
- All Known Implementing Classes:
CliArguments.FromCliArguments
,RepoConfig.FromYaml
,RepoConfig.Simple
public interface RepoConfig
Repository configuration.
- Since:
- 0.10
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
Repository configuration from yaml.static final class
Simple.static enum
Rpm repository update mode. -
Method Summary
Modifier and TypeMethodDescriptioncron()
Schedule to update repository in cron format, available forRepoConfig.UpdateMode.CRON
only.digest()
Repository digest.boolean
Is filelists.xml metadata required?mode()
Repository update mode, default isRepoConfig.UpdateMode.UPLOAD
.name()
Repository name.naming()
Repository naming policy.
-
Method Details
-
digest
Digest digest()Repository digest.- Returns:
- Digest algorithm
-
naming
NamingPolicy naming()Repository naming policy.- Returns:
- Naming
-
filelists
boolean filelists()Is filelists.xml metadata required?- Returns:
- True if filelists.xml is needed, false otherwise
-
mode
RepoConfig.UpdateMode mode()Repository update mode, default isRepoConfig.UpdateMode.UPLOAD
.- Returns:
- Instance of
RepoConfig.UpdateMode
- Throws:
ArtipieException
- When configuration is invalid
-
cron
Schedule to update repository in cron format, available forRepoConfig.UpdateMode.CRON
only.- Returns:
- Cron update schedule
- Throws:
ArtipieException
- When configuration is invalid
-
name
String name()Repository name.- Returns:
- String name
-