Trait kubeclient::clients::ListClient
[−]
[src]
pub trait ListClient { type R; fn list(&self, query: Option<&ListQuery>) -> Result<Vec<Self::R>>; }
Associated Types
type R
Required Methods
fn list(&self, query: Option<&ListQuery>) -> Result<Vec<Self::R>>
Lists resources of a particular type
This is similar to the kubectl get
CLI commands.
The query
paramater allows for customizing the list request, e.g.,
setting a timeout or specifying a label selector for filtering results.
Examples
let kube = Kubernetes::load_conf("admin.conf")?; let cfg_maps = kube.config_maps().list("my-config-map", None)?;
Implementors
impl<R: ListableResource> ListClient for KubeClient<R> type R = R;