pub struct DoNothingClient(/* private fields */);

Trait Implementations§

source§

impl MetadataClient for DoNothingClient

source§

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

retrieval a single item
source§

fn retrieve_items_with_option<'life0, 'async_trait, S, N>( &'life0 self, _namespace: N, _option: Option<ListArg> ) -> Pin<Box<dyn Future<Output = Result<K8List<S>>> + Send + 'async_trait>>where S: Spec + 'async_trait, N: Into<NameSpace> + Send + Sync + 'async_trait, Self: 'async_trait, 'life0: 'async_trait,

source§

fn retrieve_items_in_chunks<'a, S, N>( self: Arc<Self>, _namespace: N, _limit: u32, _option: Option<ListArg> ) -> BoxStream<'a, K8List<S>>where S: Spec + 'static, N: Into<NameSpace> + Send + Sync + 'static,

returns stream of items in chunks
source§

fn delete_item_with_option<'life0, 'life1, 'async_trait, S, M>( &'life0 self, metadata: &'life1 M, _options: Option<DeleteOptions> ) -> Pin<Box<dyn Future<Output = Result<DeleteStatus<S>>> + Send + 'async_trait>>where S: Spec + 'async_trait, M: K8Meta + Send + Sync + 'async_trait, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

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

create new object
source§

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

update status
source§

fn patch<'life0, 'life1, 'life2, 'async_trait, S, M>( &'life0 self, metadata: &'life1 M, _patch: &'life2 Value, _merge_type: PatchMergeType ) -> Pin<Box<dyn Future<Output = Result<K8Obj<S>>> + Send + 'async_trait>>where S: Spec + 'async_trait, M: K8Meta + Display + Send + Sync + 'async_trait, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

patch object with arbitrary patch
source§

fn patch_status<'life0, 'life1, 'life2, 'async_trait, S, M>( &'life0 self, metadata: &'life1 M, _patch: &'life2 Value, _merge_type: PatchMergeType ) -> Pin<Box<dyn Future<Output = Result<K8Obj<S>>> + Send + 'async_trait>>where S: Spec + 'async_trait, M: K8Meta + Display + Send + Sync + 'async_trait, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

patch status
source§

fn watch_stream_since<S, N>( &self, _namespace: N, _resource_version: Option<String> ) -> BoxStream<'_, TokenStreamResult<S>>where K8Watch<S>: DeserializeOwned, S: Spec + Send + 'static, S::Header: Send + 'static, S::Status: Send + 'static, N: Into<NameSpace>,

stream items since resource versions
source§

fn retrieve_items<'life0, 'async_trait, S, N>( &'life0 self, namespace: N ) -> Pin<Box<dyn Future<Output = Result<K8List<S>>> + Send + 'async_trait>>where S: Spec + 'async_trait, N: Into<NameSpace> + Send + Sync + 'async_trait, Self: 'async_trait, 'life0: 'async_trait,

retrieve all items a single chunk this may cause client to hang if there are too many items
source§

fn delete_item<'life0, 'life1, 'async_trait, S, M>( &'life0 self, metadata: &'life1 M ) -> Pin<Box<dyn Future<Output = Result<DeleteStatus<S>>> + Send + 'async_trait>>where S: Spec + 'async_trait, M: K8Meta + Send + Sync + 'async_trait, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

fn apply<'life0, 'async_trait, S>( &'life0 self, value: InputK8Obj<S> ) -> Pin<Box<dyn Future<Output = Result<ApplyResult<S>>> + Send + 'async_trait>>where S: Spec + 'async_trait, Self: 'async_trait, 'life0: 'async_trait,

apply object, this is similar to kubectl apply for now, this doesn’t do any optimization if object doesn’t exist, it will be created if object exist, it will be patched by using strategic merge diff
source§

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

patch existing obj
source§

fn watch_stream_now<S>(&self, ns: String) -> BoxStream<'_, TokenStreamResult<S>>where S: Spec + 'static,

source§

fn exists<'life0, 'life1, 'async_trait, S, M>( &'life0 self, metadata: &'life1 M ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where S: Spec + 'async_trait, M: K8Meta + Display + Send + Sync + 'async_trait, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Check if the object exists, return true or false.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more