pub enum OpKind {
Show 34 variants
RepoInit,
HumanEnroll,
HumanRotate,
HumanRevoke,
HumanRecoveryKey,
HumanRecover,
DaemonRotate,
DaemonRecover,
PolicyUpdate,
SessionStart,
SessionBind,
SessionIsolate,
SessionEnd,
CapAttenuate,
CapRevoke,
LeaseAcquire,
LeaseRelease,
LeaseRenew,
LeaseInterest,
ChangePropose,
ChangeWithdraw,
ChangeIntegrate,
ChangeIntegrateBatch,
Approve,
Reject,
Observe,
Taint,
ImportExternal,
ImportUnmediated,
BridgePush,
Freeze,
Unfreeze,
Negotiate,
Redact,
}Expand description
Operation types. Deserialization rejects anything not listed here, which makes every scope check deny-by-default.
Variants§
RepoInit
HumanEnroll
HumanRotate
HumanRevoke
HumanRecoveryKey
HumanRecover
DaemonRotate
DaemonRecover
PolicyUpdate
SessionStart
SessionBind
SessionIsolate
SessionEnd
CapAttenuate
CapRevoke
LeaseAcquire
LeaseRelease
LeaseRenew
LeaseInterest
ChangePropose
ChangeWithdraw
ChangeIntegrate
ChangeIntegrateBatch
Approve
Reject
Observe
Taint
ImportExternal
ImportUnmediated
BridgePush
Freeze
Unfreeze
Negotiate
Redact
Implementations§
Source§impl OpKind
impl OpKind
pub fn as_str(self) -> &'static str
Sourcepub fn agent_grantable(self) -> bool
pub fn agent_grantable(self) -> bool
The only operation types a capability can ever grant to an agent. Everything else (policy, keys, approvals, imports, revocation of others, redaction, freezing) is reserved for humans or the daemon and cannot be granted by any policy.
Trait Implementations§
impl Copy for OpKind
Source§impl<'de> Deserialize<'de> for OpKind
impl<'de> Deserialize<'de> for OpKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for OpKind
Source§impl Ord for OpKind
impl Ord for OpKind
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for OpKind
impl PartialOrd for OpKind
impl StructuralPartialEq for OpKind
Auto Trait Implementations§
impl Forget for OpKind
impl Freeze for OpKind
impl RefUnwindSafe for OpKind
impl Send for OpKind
impl Sync for OpKind
impl Unpin for OpKind
impl UnsafeUnpin for OpKind
impl UnwindSafe for OpKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.