Package land.oras.auth
Enum Class RegistriesConf.PullFromMirror
- All Implemented Interfaces:
Serializable,Comparable<RegistriesConf.PullFromMirror>,Constable
- Enclosing class:
- RegistriesConf
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 digestTAG_ONLY– mirror is only used when the reference includes a tag
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUse this mirror for all pull operations (default).Use this mirror only when the image reference includes a digest.Use this mirror only when the image reference includes a tag. -
Method Summary
Modifier and TypeMethodDescriptionfromString(String key) Deserialize from the TOML string value (e.g.getKey()Return the TOML string value for this constant.Returns the enum constant of this class with the specified name.static RegistriesConf.PullFromMirror[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALL
Use this mirror for all pull operations (default). -
DIGEST_ONLY
Use this mirror only when the image reference includes a digest. -
TAG_ONLY
Use this mirror only when the image reference includes a tag.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
fromString
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
Return the TOML string value for this constant.- Returns:
- the string value.
-