feat: filter daemon actions by kind; show registry release detail
This commit is contained in:
1 parent
624016d904
commit
691560a369
11 files changed
+228
-21
No files matched your search
@@ -4,6 +4,8 @@
|
||||
#include <Void/Functional/Error.hpp>
|
||||
#include <Void/Functional/Result.hpp>
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <filesystem>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
@@ -78,6 +80,24 @@ fetch_binary_variants(std::string_view registry_url, std::string_view package_na
|
||||
std::string_view version, const RegistryAuth &auth = {},
|
||||
bool include_yanked = false);
|
||||
|
||||
struct ReleaseInfo {
|
||||
std::string name;
|
||||
std::string version;
|
||||
std::string sha256;
|
||||
std::uint64_t size_bytes{0};
|
||||
bool yanked{false};
|
||||
std::optional<std::string> signature;
|
||||
std::optional<std::string> public_key;
|
||||
std::size_t binary_count{0};
|
||||
};
|
||||
|
||||
// Queries GET /api/v1/packages/<name>/<version> on a VBS registry and returns the release
|
||||
// metadata (digest, size, yank state, signature presence, binary variant count). A missing
|
||||
// package or release is not_found; private packages without credentials are permission_denied.
|
||||
[[nodiscard]] Void::Result::Result<ReleaseInfo, Void::Result::Error>
|
||||
fetch_release_detail(std::string_view registry_url, std::string_view package_name,
|
||||
std::string_view version, const RegistryAuth &auth = {});
|
||||
|
||||
// Lists package owners from GET /api/v1/packages/<name>/owners. Requires read permission on
|
||||
// the package (or ownership): a missing package is not_found, missing credentials are
|
||||
// permission_denied.
|
||||
|
||||
Reference in new issue
Block a user