add callback for getContainerIp (#2851)

* add callback for getContainerIp

* register callback before retrieving info

* version bump; only use backports for linux
This commit is contained in:
Aiden McClelland
2025-03-20 15:54:05 -06:00
committed by GitHub
parent 05162ca350
commit 9e63f3f7c6
69 changed files with 592 additions and 262 deletions

View File

@@ -148,6 +148,7 @@ pub async fn add_signer(ctx: RegistryContext, signer: SignerInfo) -> Result<Guid
ctx.db
.mutate(|db| db.as_index_mut().as_signers_mut().add_signer(&signer))
.await
.result
}
#[derive(Debug, Deserialize, Serialize, Parser, TS)]
@@ -206,6 +207,7 @@ pub async fn edit_signer(
})
})
.await
.result
}
#[derive(Debug, Deserialize, Serialize, Parser)]
@@ -246,6 +248,7 @@ pub async fn cli_add_signer(
.await?
.mutate(|db| db.as_index_mut().as_signers_mut().add_signer(&signer))
.await
.result
} else {
from_value(
ctx.call_remote::<RegistryContext>(
@@ -279,6 +282,7 @@ pub async fn add_admin(
Ok(())
})
.await
.result
}
#[derive(Debug, Deserialize, Serialize, Parser)]
@@ -310,7 +314,8 @@ pub async fn cli_add_admin(
db.as_admins_mut().mutate(|a| Ok(a.insert(signer)))?;
Ok(())
})
.await?;
.await
.result?;
} else {
ctx.call_remote::<RegistryContext>(
&parent_method.into_iter().chain(method).join("."),

View File

@@ -136,7 +136,8 @@ async fn cli_apply(
(),
))
})
.await?;
.await
.result?;
} else {
let method = parent_method.into_iter().chain(method).join(".");
context
@@ -178,4 +179,5 @@ pub async fn apply(
)
})
.await
.result
}

View File

@@ -79,6 +79,7 @@ pub async fn set_name(
ctx.db
.mutate(|db| db.as_index_mut().as_name_mut().ser(&Some(name)))
.await
.result
}
#[derive(Debug, Deserialize, Serialize, TS)]
@@ -95,6 +96,7 @@ pub async fn set_icon(
ctx.db
.mutate(|db| db.as_index_mut().as_icon_mut().ser(&Some(icon)))
.await
.result
}
#[derive(Debug, Deserialize, Serialize, Parser, TS)]

View File

@@ -131,7 +131,8 @@ async fn add_asset(
Err(Error::new(eyre!("UNAUTHORIZED"), ErrorKind::Authorization))
}
})
.await?;
.await
.result?;
Ok(())
}

View File

@@ -117,6 +117,7 @@ async fn sign_asset(
Ok(())
})
.await
.result
}
pub async fn sign_iso(ctx: RegistryContext, params: SignAssetParams) -> Result<(), Error> {

View File

@@ -98,6 +98,7 @@ pub async fn add_version(
})
})
.await
.result
}
#[derive(Debug, Deserialize, Serialize, Parser, TS)]
@@ -122,6 +123,7 @@ pub async fn remove_version(
Ok(())
})
.await
.result
}
#[derive(Debug, Deserialize, Serialize, Parser, TS)]

View File

@@ -75,6 +75,7 @@ pub async fn add_version_signer(
Ok(())
})
.await
.result
}
pub async fn remove_version_signer(
@@ -101,6 +102,7 @@ pub async fn remove_version_signer(
Ok(())
})
.await
.result
}
#[derive(Debug, Deserialize, Serialize, Parser, TS)]

View File

@@ -89,6 +89,7 @@ pub async fn add_package(
}
})
.await
.result
}
#[derive(Debug, Deserialize, Serialize, Parser)]

View File

@@ -78,7 +78,8 @@ pub async fn add_category(
},
)
})
.await?;
.await
.result?;
Ok(())
}
@@ -102,7 +103,8 @@ pub async fn remove_category(
.as_categories_mut()
.remove(&id)
})
.await?;
.await
.result?;
Ok(())
}

View File

@@ -74,6 +74,7 @@ pub async fn add_package_signer(
Ok(())
})
.await
.result
}
pub async fn remove_package_signer(
@@ -100,6 +101,7 @@ pub async fn remove_package_signer(
Ok(())
})
.await
.result
}
#[derive(Debug, Deserialize, Serialize, Parser, TS)]