feat(package,daemon): list registry tokens; list daemon targets
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 4s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 9s

This commit is contained in:
faumaray committed 2026-12-04 07:05:12 +03:00
1 parent 1aaece3231
commit eb35bb6b6e
11 files changed
+326 -18

No files matched your search

@@ -36,6 +36,19 @@ struct PublishReceipt {
bool already_published{false};
};
struct TokenInfo {
std::string token_id;
std::string username;
std::string label;
std::vector<std::string> scopes;
bool revoked{false};
};
// Lists the caller's (or, for admins, all) API token metadata from GET /api/v1/tokens.
// The plaintext secret is never returned by the registry after creation.
[[nodiscard]] Void::Result::Result<std::vector<TokenInfo>, Void::Result::Error>
fetch_tokens(std::string_view registry_url, 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>