pub struct Client { /* private fields */ }
Expand description
Client for Fulcio
Version: 2.0.0
Implementations§
Source§impl Client
impl Client
Sourcepub fn new(baseurl: &str) -> Self
pub fn new(baseurl: &str) -> Self
Create a new client.
baseurl
is the base URL provided to the internal
reqwest::Client
, and should include a scheme and hostname,
as well as port and a path stem if applicable.
Sourcepub fn new_with_client(baseurl: &str, client: Client) -> Self
pub fn new_with_client(baseurl: &str, client: Client) -> Self
Construct a new client with an existing reqwest::Client
,
allowing more control over its configuration.
baseurl
is the base URL provided to the internal
reqwest::Client
, and should include a scheme and hostname,
as well as port and a path stem if applicable.
Sourcepub fn api_version(&self) -> &'static str
pub fn api_version(&self) -> &'static str
Get the version of this API.
This string is pulled directly from the source OpenAPI document and may be in any format the API selects.
Source§impl Client
impl Client
Sourcepub async fn ca_get_configuration<'a>(
&'a self,
) -> Result<ResponseValue<V2Configuration>, Error<RpcStatus>>
pub async fn ca_get_configuration<'a>( &'a self, ) -> Result<ResponseValue<V2Configuration>, Error<RpcStatus>>
Returns the configuration of supported OIDC issuers, including the required challenge for each issuer
Sends a GET
request to /api/v2/configuration
Sourcepub async fn ca_create_signing_certificate<'a>(
&'a self,
body: &'a Fulciov2CreateSigningCertificateRequest,
) -> Result<ResponseValue<V2SigningCertificate>, Error<RpcStatus>>
pub async fn ca_create_signing_certificate<'a>( &'a self, body: &'a Fulciov2CreateSigningCertificateRequest, ) -> Result<ResponseValue<V2SigningCertificate>, Error<RpcStatus>>
Returns an X.509 certificate created by the Fulcio certificate authority for the given request parameters
Sends a POST
request to /api/v2/signingCert
Sourcepub async fn ca_get_trust_bundle<'a>(
&'a self,
) -> Result<ResponseValue<V2TrustBundle>, Error<RpcStatus>>
pub async fn ca_get_trust_bundle<'a>( &'a self, ) -> Result<ResponseValue<V2TrustBundle>, Error<RpcStatus>>
Returns the bundle of certificates that can be used to validate code signing certificates issued by this Fulcio instance
Sends a GET
request to /api/v2/trustBundle