add CliRequest variants to store/erase docker credentials
This commit is contained in:
parent
0a355c299b
commit
8bcdc5420a
@ -9,6 +9,7 @@ use serde::{Serialize, Deserialize};
|
|||||||
|
|
||||||
|
|
||||||
#[derive(Debug, Serialize, Deserialize)]
|
#[derive(Debug, Serialize, Deserialize)]
|
||||||
|
#[serde(tag = "type")]
|
||||||
pub enum CliRequest {
|
pub enum CliRequest {
|
||||||
GetAwsCredential {
|
GetAwsCredential {
|
||||||
name: Option<String>,
|
name: Option<String>,
|
||||||
@ -17,12 +18,13 @@ pub enum CliRequest {
|
|||||||
GetDockerCredential {
|
GetDockerCredential {
|
||||||
server_url: String,
|
server_url: String,
|
||||||
},
|
},
|
||||||
SaveCredential {
|
StoreDockerCredential(DockerCredential),
|
||||||
name: String,
|
EraseDockerCredential {
|
||||||
is_default: bool,
|
server_url: String,
|
||||||
credential: CliCredential,
|
},
|
||||||
|
InvokeShortcut{
|
||||||
|
action: ShortcutAction,
|
||||||
},
|
},
|
||||||
InvokeShortcut(ShortcutAction),
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user