add CliRequest variants to store/erase docker credentials

This commit is contained in:
Joseph Montanaro 2024-11-23 13:47:37 -05:00
parent 0a355c299b
commit 8bcdc5420a

View File

@ -9,6 +9,7 @@ use serde::{Serialize, Deserialize};
#[derive(Debug, Serialize, Deserialize)]
#[serde(tag = "type")]
pub enum CliRequest {
GetAwsCredential {
name: Option<String>,
@ -17,12 +18,13 @@ pub enum CliRequest {
GetDockerCredential {
server_url: String,
},
SaveCredential {
name: String,
is_default: bool,
credential: CliCredential,
StoreDockerCredential(DockerCredential),
EraseDockerCredential {
server_url: String,
},
InvokeShortcut{
action: ShortcutAction,
},
InvokeShortcut(ShortcutAction),
}