[][src]Struct selectel_mks::Client

pub struct Client { /* fields omitted */ }

Client struct is used to make calls to the MKS API.

Implementations

impl Client[src]

pub fn new(base_endpoint: &str, token: &str) -> Result<Client, Error>[src]

Construct the new Client struct with default configuration.

Use Builder to configure the client.

pub fn builder() -> Builder[src]

Get a default builder.

impl Client[src]

Methods to work with clusters.

pub fn get_cluster(&self, cluster_id: &str) -> Result<Cluster, Error>[src]

Get a cluster.

pub fn list_clusters(&self) -> Result<Vec<Cluster>, Error>[src]

List clusters.

pub fn create_cluster(&self, opts: &CreateOpts) -> Result<Cluster, Error>[src]

Create a cluster.

pub fn delete_cluster(&self, cluster_id: &str) -> Result<(), Error>[src]

Delete a cluster.

impl Client[src]

Methods to work with Kubernetes versions.

pub fn list_kube_versions(&self) -> Result<Vec<KubeVersion>, Error>[src]

List all Kubernetes versions.

impl Client[src]

Methods to work with nodes.

pub fn get_node(
    &self,
    cluster_id: &str,
    nodegroup_id: &str,
    node_id: &str
) -> Result<Node, Error>
[src]

Get a cluster node.

pub fn reinstall_node(
    &self,
    cluster_id: &str,
    nodegroup_id: &str,
    node_id: &str
) -> Result<(), Error>
[src]

Reinstall a cluster node.

impl Client[src]

Methods to work with nodegroups.

pub fn get_nodegroup(
    &self,
    cluster_id: &str,
    nodegroup_id: &str
) -> Result<Nodegroup, Error>
[src]

Get a cluster nodegroup.

pub fn list_nodegroups(&self, cluster_id: &str) -> Result<Vec<Nodegroup>, Error>[src]

List cluster nodegroups.

pub fn create_nodegroup(
    &self,
    cluster_id: &str,
    opts: &CreateOpts
) -> Result<(), Error>
[src]

Create a cluster nodegroup.

pub fn delete_nodegroup(
    &self,
    cluster_id: &str,
    nodegroup_id: &str
) -> Result<(), Error>
[src]

Delete a cluster nodegroup.

pub fn resize_nodegroup(
    &self,
    cluster_id: &str,
    nodegroup_id: &str,
    opts: &ResizeOpts
) -> Result<(), Error>
[src]

Resize a cluster nodegroup.

pub fn update_nodegroup(
    &self,
    cluster_id: &str,
    nodegroup_id: &str,
    opts: &UpdateOpts
) -> Result<(), Error>
[src]

Update a cluster nodegroup.

impl Client[src]

Methods to work with tasks.

pub fn get_task(&self, cluster_id: &str, task_id: &str) -> Result<Task, Error>[src]

Get a task.

pub fn list_tasks(&self, cluster_id: &str) -> Result<Vec<Task>, Error>[src]

List tasks.

Auto Trait Implementations

impl !RefUnwindSafe for Client

impl Send for Client

impl Sync for Client

impl Unpin for Client

impl !UnwindSafe for Client

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.