Enum Class RegistriesConf.PullFromMirror

java.lang.Object
java.lang.Enum<RegistriesConf.PullFromMirror>
land.oras.auth.RegistriesConf.PullFromMirror
All Implemented Interfaces:
Serializable, Comparable<RegistriesConf.PullFromMirror>, Constable
Enclosing class:
RegistriesConf

public static enum RegistriesConf.PullFromMirror extends Enum<RegistriesConf.PullFromMirror>
Controls which pull operations may use a mirror.
  • ALL – the mirror is used for all pull operations (default)
  • DIGEST_ONLY – mirror is only used when the reference includes a digest
  • TAG_ONLY – mirror is only used when the reference includes a tag
  • Enum Constant Details

  • Method Details

    • values

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

      public static RegistriesConf.PullFromMirror valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • fromString

      public static RegistriesConf.PullFromMirror fromString(String key)
      Deserialize from the TOML string value (e.g. "digest-only").
      Parameters:
      key - the string value from the configuration file.
      Returns:
      the matching enum constant.
    • getKey

      public String getKey()
      Return the TOML string value for this constant.
      Returns:
      the string value.