mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-18 20:58:06 +00:00
add roles to agent & supervisor (#527)
This commit is contained in:
@ -14,13 +14,17 @@ pub enum ClientType {
|
||||
|
||||
#[derive(Clone, Debug, PartialEq)]
|
||||
pub enum Role {
|
||||
Agent,
|
||||
Proxy,
|
||||
Supervisor,
|
||||
}
|
||||
|
||||
impl Role {
|
||||
pub fn as_str(&self) -> &'static str {
|
||||
match self {
|
||||
Self::Agent => "agent",
|
||||
Self::Proxy => "proxy",
|
||||
Self::Supervisor => "supervisor",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user