Skip to content

Use nexus_client for /artifacts/{kind}/{name}/{version} #762

@iliana

Description

@iliana

// ALSO TODO: This is, for the moment, using the endpoint directly
// instead of using the client method to work around issues in
// dropshot/progenitor for getting raw response bodies.
let response = nexus
.client()
.get(format!(
"{}/artifacts/{}/{}/{}",
nexus.baseurl(),
artifact.kind,
artifact.name,
artifact.version
))
.send()
.await
.map_err(Error::Response)?;
let contents =
response.bytes().await.map_err(|e| Error::Response(e))?;

Depends on pulling in changes from:

(From #717)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Sled AgentRelated to the Per-Sled Configuration and ManagementUpdate SystemReplacing old bits with newer, cooler bitscleanupCode cleanliness

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions