Enum RpmOptions

java.lang.Object
java.lang.Enum<RpmOptions>
com.artipie.rpm.RpmOptions
All Implemented Interfaces:
Serializable, Comparable<RpmOptions>

public enum RpmOptions extends Enum<RpmOptions>
Rpm repository configuration options. These options are used in rpm-adapter CLI mode and on Artipie storage configuration level.
Since:
0.10
  • Enum Constant Details

    • DIGEST

      public static final RpmOptions DIGEST
      Digest option.
    • NAMING_POLICY

      public static final RpmOptions NAMING_POLICY
      Naming policy option.
    • FILELISTS

      public static final RpmOptions FILELISTS
      FileLists option.
    • UPDATE

      public static final RpmOptions UPDATE
      Update option allows to set schedule to update repository in cron format.
  • Method Details

    • values

      public static RpmOptions[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static RpmOptions valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • optionName

      public final String optionName()
      Option name.
      Returns:
      String name
    • option

      public final org.apache.commons.cli.Option option()
      Builds command line option.
      Returns:
      Instance of Option.