pub struct DoNothingClient();
Trait Implementations§
Source§impl MetadataClient for DoNothingClient
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>>
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>>
retrieval a single item
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>>
Source§fn retrieve_items_in_chunks<'a, S, N>(
self: Arc<Self>,
_namespace: N,
_limit: u32,
_option: Option<ListArg>,
) -> BoxStream<'a, K8List<S>>
fn retrieve_items_in_chunks<'a, S, N>( self: Arc<Self>, _namespace: N, _limit: u32, _option: Option<ListArg>, ) -> BoxStream<'a, K8List<S>>
returns stream of items in chunks
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>>
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,
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>>
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>>
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>>
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>>
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>>
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>>
patch status
fn patch_subresource<'life0, 'life1, 'life2, 'async_trait, S, M>( &'life0 self, metadata: &'life1 M, _subresource: String, _patch: &'life2 Value, _merge_type: PatchMergeType, ) -> Pin<Box<dyn Future<Output = Result<K8Obj<S>>> + Send + 'async_trait>>
Source§fn watch_stream_since<S, N>(
&self,
_namespace: N,
_resource_version: Option<String>,
) -> BoxStream<'_, TokenStreamResult<S>>
fn watch_stream_since<S, N>( &self, _namespace: N, _resource_version: Option<String>, ) -> BoxStream<'_, TokenStreamResult<S>>
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>>
fn retrieve_items<'life0, 'async_trait, S, N>( &'life0 self, namespace: N, ) -> Pin<Box<dyn Future<Output = Result<K8List<S>>> + Send + 'async_trait>>
retrieve all items a single chunk
this may cause client to hang if there are too many items
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>>
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,
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 diffSource§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>>
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>>
patch existing obj
fn watch_stream_now<S>(&self, ns: String) -> BoxStream<'_, TokenStreamResult<S>>where
S: Spec + 'static,
Auto Trait Implementations§
impl Freeze for DoNothingClient
impl RefUnwindSafe for DoNothingClient
impl Send for DoNothingClient
impl Sync for DoNothingClient
impl Unpin for DoNothingClient
impl UnwindSafe for DoNothingClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more