Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::ParsedS3URL Struct Reference

#include <s3-url.hh>

Public Member Functions

std::optional< std::string > getEncodedEndpoint () const
ParsedURL toHttpsUrl () const
auto operator<=> (const ParsedS3URL &other) const =default

Static Public Member Functions

static ParsedS3URL parse (const ParsedURL &uri)

Public Attributes

std::string bucket
std::vector< std::string > key
std::optional< std::string > profile
std::optional< std::string > region
std::optional< std::string > scheme
std::optional< std::string > versionId
std::optional< S3AddressingStyle > addressingStyle
std::variant< std::monostate, ParsedURL, ParsedURL::Authority > endpoint

Detailed Description

Parsed S3 URL.

Member Function Documentation

◆ toHttpsUrl()

ParsedURL nix::ParsedS3URL::toHttpsUrl ( ) const

Convert this ParsedS3URL to an HTTP(S) ParsedURL for use with curl's AWS SigV4 authentication. The scheme defaults to HTTPS but respects the 'scheme' setting and custom endpoint schemes.

Member Data Documentation

◆ endpoint

std::variant<std::monostate, ParsedURL, ParsedURL::Authority> nix::ParsedS3URL::endpoint

The endpoint can be either missing, be an absolute URI (with a scheme like http:) or an authority (so an IP address or a registered name).

◆ key

std::vector<std::string> nix::ParsedS3URL::key
See also
ParsedURL::path. This is a vector for the same reason. Unlike ParsedURL::path this doesn't include the leading empty segment, since the bucket name is necessary.

The documentation for this struct was generated from the following files:
  • libstore/include/nix/store/s3-url.hh
  • libstore/s3-url.cc