pub struct ConnectionConfig {
    pub identity: UserIdentity,
    pub server: Server,
}
Expand description

Connection details for a Kubernetes API server. Includes details about the server and the user identity to be used.

Fields

identity: UserIdentityserver: Server

Implementations

Create a ConnectionConfig by parsing the contents of the default kubeconfig file

Connecting against a Kubernetes API server requires some tuning for the WASI http guest library. This includes operations like: adding extra trusted root CA, handling the user identity. This can be done with the wasi_outbound_http::register_request_config function, but this method is a convenient wrapper around it.

The method returns the ID that identifies this specific connection configuration. The method can be called as many times as wanted, but it will always return a new ID. Because of that, it’s recommended to call the method only once and store the ID in a safe place.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.