feat(package,daemon): revoke registry tokens; allow daemon deps updates
This commit is contained in:
1 parent
eb35bb6b6e
commit
c7d2662cf2
11 files changed
+309
-13
No files matched your search
@@ -49,6 +49,11 @@ struct TokenInfo {
|
||||
[[nodiscard]] Void::Result::Result<std::vector<TokenInfo>, Void::Result::Error>
|
||||
fetch_tokens(std::string_view registry_url, 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,
|
||||
const RegistryAuth &auth = {});
|
||||
|
||||
// Queries GET /api/v1/packages/<name> on a VBS registry and parses all release records
|
||||
// into Package::ReleaseRecord entries ready for PackageIndex + PubGrub solving.
|
||||
[[nodiscard]] Void::Result::Result<std::vector<ReleaseRecord>, Void::Result::Error>
|
||||
|
||||
Reference in new issue
Block a user