pub enum SignVerify {
Off,
All,
Engines(Vec<String>),
}Expand description
The value of a sign-verify key: the engines that verify signatures.
The value is a boolean in the key-file spelling (true, false, 1,
0), or a key-file list of engine names. A ; alone separates the
names, and \; is a ; in a name. A ; after the last name adds no
name.
Each name is used as written. A , and a space stay in a name, and an
empty name before the last ; stays in the list. No engine has the name
ed25519,spki, the name ed25519 of ed25519; ed25519, or the empty
first name of ;ed25519. A pull refuses a name that no engine has. The
ostree command also refuses these values.
Variants§
Off
No sign-api verification: the key is absent, empty, false, or 0.
All
Every engine of this build, selected by true.
Engines(Vec<String>)
The engines that the value names, in the order of the value.
Trait Implementations§
Source§impl Clone for SignVerify
impl Clone for SignVerify
Source§impl Debug for SignVerify
impl Debug for SignVerify
impl Eq for SignVerify
Source§impl PartialEq for SignVerify
impl PartialEq for SignVerify
impl StructuralPartialEq for SignVerify
Source§impl Value for SignVerify
The text is read as the sign-verify key of a remote reads it. The text
true or 1 gives SignVerify::All, and false, 0, or the empty
text gives SignVerify::Off. Each other text is read as
decode_string_list reads it, and gives SignVerify::Engines. Each
text is a value, so parse refuses only a malformed escape sequence.
impl Value for SignVerify
The text is read as the sign-verify key of a remote reads it. The text
true or 1 gives SignVerify::All, and false, 0, or the empty
text gives SignVerify::Off. Each other text is read as
decode_string_list reads it, and gives SignVerify::Engines. Each
text is a value, so parse refuses only a malformed escape sequence.
SignVerify::Off gives false, SignVerify::All gives true, and
SignVerify::Engines gives the names as encode_string_list writes
them, with a ; after each name. Thus parse of the text of format
gives the same value again, also for a list of one name such as true or
0, a name with a ;, and an empty name. The one exception is an empty
list of engines: it gives the empty text, which parses as
SignVerify::Off.