Package com.artipie.rpm
Interface NamingPolicy
- All Known Implementing Classes:
NamingPolicy.HashPrefixed
,StandardNamingPolicy
public interface NamingPolicy
RPM repository metadata files naming policy.
- Since:
- 0.3
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
Add hash prefix to names. -
Method Summary
-
Method Details
-
name
Name for source with its content, without file extension.- Parameters:
source
- Metadata file namecontent
- Metadata file content- Returns:
- File name
- Throws:
IOException
- On error
-
fullName
Full relative path for the metadata source file, with extension. This path is build as `metadata/[prefix]-[sourse-name].xml.gz`. Can be used as a storage key.- Parameters:
source
- Source metadataprefix
- Source prefix- Returns:
- File name
-