feat(package,daemon): yank releases from the CLI; report workspace and lockfile in info
This commit is contained in:
1 parent
f5eb489e79
commit
1a4c062021
11 files changed
+249
-20
No files matched your search
@@ -49,6 +49,12 @@ struct TokenInfo {
|
||||
[[nodiscard]] Void::Result::Result<std::vector<TokenInfo>, Void::Result::Error>
|
||||
fetch_tokens(std::string_view registry_url, const RegistryAuth &auth = {});
|
||||
|
||||
// Marks a release yanked or unyanked via POST .../<version>/yank (bearer tokens are exempt
|
||||
// from CSRF; owner or admin authority required). Returns the resulting yank state.
|
||||
[[nodiscard]] Void::Result::Result<bool, Void::Result::Error>
|
||||
set_release_yanked(std::string_view registry_url, std::string_view package_name,
|
||||
std::string_view version, bool yanked, const RegistryAuth &auth = {});
|
||||
|
||||
// Revokes one API token via DELETE /api/v1/tokens/<token_id> (owner or admin only).
|
||||
[[nodiscard]] Void::Result::Result<void, Void::Result::Error>
|
||||
revoke_token(std::string_view registry_url, std::string_view token_id,
|
||||
|
||||
Reference in new issue
Block a user