[][src]Struct k8_client::K8Client

pub struct K8Client { /* fields omitted */ }

K8 Cluster accessible thru API

Methods

impl K8Client[src]

pub fn default() -> Result<Self, ClientError>[src]

pub fn new(config: K8Config) -> Result<Self, ClientError>[src]

Trait Implementations

impl Debug for K8Client[src]

impl MetadataClient for K8Client[src]

type MetadataClientError = ClientError

fn retrieve_item<'life0, 'life1, 'async_trait, S, M>(
    &'life0 self,
    metadata: &'life1 M
) -> Pin<Box<dyn Future<Output = Result<K8Obj<S, S::Status>, ClientError>> + Send + 'async_trait>> where
    K8Obj<S, S::Status>: DeserializeOwned,
    S: Spec,
    M: K8Meta<S> + Send + Sync,
    S: 'async_trait,
    M: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

retrieval a single item

fn create_item<'life0, 'async_trait, S>(
    &'life0 self,
    value: InputK8Obj<S>
) -> Pin<Box<dyn Future<Output = Result<K8Obj<S, S::Status>, ClientError>> + Send + 'async_trait>> where
    InputK8Obj<S>: Serialize + Debug,
    K8Obj<S, S::Status>: DeserializeOwned,
    S: Spec + Send,
    S: 'async_trait,
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

create new object

fn update_status<'life0, 'life1, 'async_trait, S>(
    &'life0 self,
    value: &'life1 UpdateK8ObjStatus<S, S::Status>
) -> Pin<Box<dyn Future<Output = Result<K8Obj<S, S::Status>, ClientError>> + Send + 'async_trait>> where
    UpdateK8ObjStatus<S, S::Status>: Serialize + Debug,
    K8Obj<S, S::Status>: DeserializeOwned,
    S: Spec + Send + Sync,
    S::Status: Send + Sync,
    S: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

update status

fn patch_spec<'life0, 'life1, 'life2, 'async_trait, S, M>(
    &'life0 self,
    metadata: &'life1 M,
    patch: &'life2 Value
) -> Pin<Box<dyn Future<Output = Result<K8Obj<S, S::Status>, ClientError>> + Send + 'async_trait>> where
    K8Obj<S, S::Status>: DeserializeOwned,
    S: Spec + Debug,
    M: K8Meta<S> + Display + Send + Sync,
    S: 'async_trait,
    M: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 
[src]

patch existing with spec

fn watch_stream_since<S>(
    &self,
    namespace: &str,
    resource_version: Option<String>
) -> BoxStream<TokenStreamResult<S, S::Status, Self::MetadataClientError>> where
    K8Watch<S, S::Status>: DeserializeOwned,
    S: Spec + Debug + 'static,
    S::Status: Debug
[src]

stream items since resource versions

Auto Trait Implementations

impl !RefUnwindSafe for K8Client

impl Send for K8Client

impl Sync for K8Client

impl Unpin for K8Client

impl !UnwindSafe for K8Client

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.