create / delete docker network on server api

This commit is contained in:
mbecker20
2023-08-09 01:48:29 -04:00
parent f1aca3df4d
commit 29b31ffa1e
6 changed files with 78 additions and 5 deletions

View File

@@ -274,6 +274,8 @@ pub enum Operation {
PruneImagesServer,
PruneContainersServer,
PruneNetworksServer,
CreateNetwork,
DeleteNetwork,
// build
CreateBuild,

View File

@@ -55,7 +55,7 @@ pub struct RenameServer {
#[derive(Serialize, Deserialize, Debug, Clone, Request)]
#[response(Update)]
pub struct CreateNetwork {
pub id: String,
pub server_id: String,
pub name: String,
}
@@ -65,6 +65,6 @@ pub struct CreateNetwork {
#[derive(Serialize, Deserialize, Debug, Clone, Request)]
#[response(Update)]
pub struct DeleteNetwork {
pub id: String,
pub server_id: String,
pub name: String,
}