Skip to content

Commit

Permalink
Update spire-api/src/selectors.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Max Lambrecht <maxlambrecht@gmail.com>
  • Loading branch information
EItanya and maxlambrecht committed Aug 14, 2023
1 parent a93c14e commit a566ddf
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions spire-api/src/selectors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,14 @@ impl From<Unix> for String {
}

#[derive(Debug, Clone)]
/// K8s is a helper type to create a SPIFFE ID unix process constructs.
/// Represents SPIFFE identity selectors based on Unix process-related attributes.
#[derive(Debug, Clone)]
pub enum Unix {
/// PID represents the SPIFFE ID selector for a process ID.
/// Specifies a selector for a Unix process ID (PID).
Pid(u16),
/// GID represents the SPIFFE ID selector for a group ID.
/// Specifies a selector for a Unix group ID (GID).
Gid(u16),
/// UID represents the SPIFFE ID selector for a User ID.
/// Specifies a selector for a Unix user ID (UID).
Uid(u16),
}

Expand Down

0 comments on commit a566ddf

Please sign in to comment.