pub struct ConfidentialComputing { /* private fields */ }Expand description
Implements a client for the Confidential Computing API.
§Example
let client = ConfidentialComputing::builder().build().await?;
// use `client` to make requests to the Confidential Computing API.§Service Description
Service describing handlers for resources
§Configuration
To configure ConfidentialComputing use the with_* methods in the type returned
by builder(). The default configuration should
work for most applications. Common configuration changes include
- with_endpoint(): by default this client uses the global default endpoint
(
https://confidentialcomputing.googleapis.com). Applications using regional endpoints or running in restricted networks (e.g. a network configured override this default. - with_credentials(): by default this client uses Application Default Credentials. Applications using custom authentication may need to override this default.
§Pooling and Cloning
ConfidentialComputing holds a connection pool internally, it is advised to
create one and the reuse it. You do not need to wrap ConfidentialComputing in
an Rc or Arc to reuse it, because it
already uses an Arc internally.
Implementations§
Source§impl ConfidentialComputing
impl ConfidentialComputing
Sourcepub fn builder() -> ClientBuilder
pub fn builder() -> ClientBuilder
Returns a builder for ConfidentialComputing.
let client = ConfidentialComputing::builder().build().await?;Sourcepub fn from_stub<T>(stub: T) -> Selfwhere
T: ConfidentialComputing + 'static,
pub fn from_stub<T>(stub: T) -> Selfwhere
T: ConfidentialComputing + 'static,
Creates a new client from the provided stub.
The most common case for calling this function is in tests mocking the client’s behavior.
Sourcepub fn create_challenge(&self) -> CreateChallenge
pub fn create_challenge(&self) -> CreateChallenge
Creates a new Challenge in a given project and location.
Sourcepub fn verify_attestation(&self) -> VerifyAttestation
pub fn verify_attestation(&self) -> VerifyAttestation
Verifies the provided attestation info, returning a signed attestation token.
Sourcepub fn verify_confidential_space(&self) -> VerifyConfidentialSpace
pub fn verify_confidential_space(&self) -> VerifyConfidentialSpace
Verifies whether the provided attestation info is valid, returning a signed attestation token if so.
Sourcepub fn verify_confidential_gke(&self) -> VerifyConfidentialGke
pub fn verify_confidential_gke(&self) -> VerifyConfidentialGke
Verifies the provided Confidential GKE attestation info, returning a signed OIDC token.
Sourcepub fn list_locations(&self) -> ListLocations
pub fn list_locations(&self) -> ListLocations
Lists information about the supported locations for this service.
Sourcepub fn get_location(&self) -> GetLocation
pub fn get_location(&self) -> GetLocation
Gets information about a location.
Trait Implementations§
Source§impl Clone for ConfidentialComputing
impl Clone for ConfidentialComputing
Source§fn clone(&self) -> ConfidentialComputing
fn clone(&self) -> ConfidentialComputing
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more