Add overlay planning commands
This commit is contained in:
parent
7d4a288729
commit
c2dee50dae
18 changed files with 928 additions and 16 deletions
|
|
@ -53,6 +53,7 @@ string_id!(DocumentId);
|
|||
string_id!(KvId);
|
||||
string_id!(DbId);
|
||||
string_id!(PipeId);
|
||||
string_id!(OverlayId);
|
||||
string_id!(TopicId);
|
||||
string_id!(AuthOpId);
|
||||
string_id!(KeyId);
|
||||
|
|
@ -74,6 +75,7 @@ pub enum ResourceKind {
|
|||
Pubsub,
|
||||
Cas,
|
||||
SshProxy,
|
||||
Overlay,
|
||||
}
|
||||
|
||||
impl ResourceKind {
|
||||
|
|
@ -87,6 +89,7 @@ impl ResourceKind {
|
|||
Self::Pubsub => "pubsub",
|
||||
Self::Cas => "cas",
|
||||
Self::SshProxy => "ssh-proxy",
|
||||
Self::Overlay => "overlay",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -109,6 +112,7 @@ impl std::str::FromStr for ResourceKind {
|
|||
"pubsub" => Ok(Self::Pubsub),
|
||||
"cas" => Ok(Self::Cas),
|
||||
"ssh-proxy" | "ssh" => Ok(Self::SshProxy),
|
||||
"overlay" => Ok(Self::Overlay),
|
||||
_ => Err(TypeParseError::UnknownResourceKind(value.to_owned())),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue