pub struct Client {
pub kubernetes: Client,
pub namespace: String,
pub quilkin_image: String,
}
Fields§
§kubernetes: Client
The Kubernetes client
namespace: String
The namespace the tests will happen in
quilkin_image: String
The name and tag of the Quilkin image being tested
Implementations§
source§impl Client
impl Client
sourcepub async fn new() -> Client
pub async fn new() -> Client
Thread safe way to create a Clients across multiple tests. Executes the setup required:
- Creates a test namespace for this test
- Removes previous test namespaces
- Retrieves the IMAGE_TAG to test from env vars, and panics if it if not available.
sourcepub fn namespaced_api<K: Resource<Scope = NamespaceResourceScope>>(
&self
) -> Api<K>where
<K as Resource>::DynamicType: Default,
pub fn namespaced_api<K: Resource<Scope = NamespaceResourceScope>>( &self ) -> Api<K>where <K as Resource>::DynamicType: Default,
Returns a typed API client for this client in this test namespace.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request