feat(package): read package owners through the registry client
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 3s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 8s

This commit is contained in:
faumaray committed 2026-12-04 04:02:23 +03:00
1 parent eb4af6f3d2
commit 105519924a
7 files changed
+106 -1

No files matched your search

@@ -78,6 +78,13 @@ fetch_binary_variants(std::string_view registry_url, std::string_view package_na
std::string_view version, const RegistryAuth &auth = {},
bool include_yanked = false);
// 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.
[[nodiscard]] Void::Result::Result<std::vector<std::string>, Void::Result::Error>
fetch_package_owners(std::string_view registry_url, std::string_view package_name,
const RegistryAuth &auth = {});
// Downloads a prebuilt binary artifact from an absolute http(s) URL into `dest_file`,
// rejecting any content whose SHA-256 differs from `expected_sha256` (verified before writing).
[[nodiscard]] Void::Result::Result<std::filesystem::path, Void::Result::Error>