spire_api/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#![deny(missing_docs)]
#![warn(missing_debug_implementations)]

//! This library provides functions to interact with the SPIRE GRPC APIs as defined in the [SDK](https://github.com/spiffe/spire-api-sdk).

mod proto {
    #![allow(clippy::all)]
    pub mod spire {
        pub mod api {
            pub mod agent {
                pub mod delegatedidentity {
                    pub mod v1 {
                        include!(concat!(
                            env!("OUT_DIR"),
                            "/spire.api.agent.delegatedidentity.v1.rs"
                        ));
                    }
                }
            }

            pub mod types {
                include!(concat!(env!("OUT_DIR"), "/spire.api.types.rs"));
            }
        }
    }
}

pub mod agent;
pub mod selectors;

// Core spire-api crate type re-exported for simplified access.
pub use agent::delegated_identity::{DelegateAttestationRequest, DelegatedIdentityClient};