![]() |
Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
|
#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 |
Parsed S3 URL.
| 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.
| 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).
| std::vector<std::string> nix::ParsedS3URL::key |