pub struct PveClient { /* private fields */ }Implementations§
Trait Implementations§
Source§impl PveApi for PveClient
impl PveApi for PveClient
fn list_cluster_resources(&self) -> Result<Vec<ClusterResource>, PveError>
fn get_lxc_config(&self, node: &str, vmid: u64) -> Result<LxcConfig, PveError>
fn list_lxc_interfaces( &self, node: &str, vmid: u64, ) -> Result<Vec<LxcInterface>, PveError>
fn list_lxc_snapshots( &self, node: &str, vmid: u64, ) -> Result<Vec<LxcSnapshot>, PveError>
fn get_task_status( &self, node: &str, upid: &str, ) -> Result<PveTaskStatus, PveError>
Source§fn get_task_log(
&self,
node: &str,
upid: &str,
start: u64,
limit: u64,
) -> Result<Vec<PveTaskLog>, PveError>
fn get_task_log( &self, node: &str, upid: &str, start: u64, limit: u64, ) -> Result<Vec<PveTaskLog>, PveError>
Read a bounded slice of a PVE task log.
fn list_nodes(&self) -> Result<Vec<PveNode>, PveError>
fn list_node_storages(&self, node: &str) -> Result<Vec<PveStorage>, PveError>
Source§fn list_node_network_interfaces(
&self,
node: &str,
) -> Result<Vec<PveNetworkInterface>, PveError>
fn list_node_network_interfaces( &self, node: &str, ) -> Result<Vec<PveNetworkInterface>, PveError>
List network interfaces configured on a PVE node.
fn list_storage_content( &self, node: &str, storage: &str, content: &str, ) -> Result<Vec<PveStorageContent>, PveError>
List tags for an OCI repository through the PVE node.
Source§fn pull_oci_registry(
&self,
node: &str,
storage: &str,
reference: &str,
filename: &str,
) -> Result<PveTaskResponse, PveError>
fn pull_oci_registry( &self, node: &str, storage: &str, reference: &str, filename: &str, ) -> Result<PveTaskResponse, PveError>
Ask the PVE node to pull an OCI image into a template storage.
Source§fn upload_storage_template(
&self,
node: &str,
storage: &str,
filename: &str,
path: &Path,
) -> Result<PveTaskResponse, PveError>
fn upload_storage_template( &self, node: &str, storage: &str, filename: &str, path: &Path, ) -> Result<PveTaskResponse, PveError>
Upload a compressed LXC template archive to PVE storage.
Source§fn delete_bootstrap_template(
&self,
node: &str,
storage: &str,
filename: &str,
) -> Result<PveTaskResponse, PveError>
fn delete_bootstrap_template( &self, node: &str, storage: &str, filename: &str, ) -> Result<PveTaskResponse, PveError>
Delete only a temporary per-box bootstrap template owned by pbox.
Source§fn get_lxc_state(&self, node: &str, vmid: u64) -> Result<String, PveError>
fn get_lxc_state(&self, node: &str, vmid: u64) -> Result<String, PveError>
Read the node’s current state instead of the delayed cluster resource cache.
fn create_lxc( &self, node: &str, vmid: u64, request: &LxcCreateRequest, ) -> Result<PveTaskResponse, PveError>
fn update_lxc_config( &self, node: &str, vmid: u64, request: &LxcConfigUpdateRequest, ) -> Result<(), PveError>
fn start_lxc(&self, node: &str, vmid: u64) -> Result<PveTaskResponse, PveError>
fn shutdown_lxc( &self, node: &str, vmid: u64, ) -> Result<PveTaskResponse, PveError>
fn stop_lxc(&self, node: &str, vmid: u64) -> Result<PveTaskResponse, PveError>
fn delete_lxc(&self, node: &str, vmid: u64) -> Result<PveTaskResponse, PveError>
fn force_delete_lxc( &self, node: &str, vmid: u64, ) -> Result<PveTaskResponse, PveError>
fn clone_lxc( &self, node: &str, vmid: u64, request: &LxcCloneRequest, ) -> Result<PveTaskResponse, PveError>
fn template_lxc(&self, node: &str, vmid: u64) -> Result<(), PveError>
fn active_delete_tasks( &self, node: &str, ) -> Result<Vec<PveTaskResponse>, PveError>
fn template_tasks( &self, node: &str, vmid: u64, ) -> Result<Vec<PveTaskResponse>, PveError>
fn create_lxc_snapshot( &self, node: &str, vmid: u64, request: &LxcSnapshotRequest, ) -> Result<PveTaskResponse, PveError>
fn rollback_lxc_snapshot( &self, node: &str, vmid: u64, snapname: &str, start: bool, ) -> Result<PveTaskResponse, PveError>
fn delete_lxc_snapshot( &self, node: &str, vmid: u64, snapname: &str, ) -> Result<PveTaskResponse, PveError>
Auto Trait Implementations§
impl !RefUnwindSafe for PveClient
impl !UnwindSafe for PveClient
impl Freeze for PveClient
impl Send for PveClient
impl Sync for PveClient
impl Unpin for PveClient
impl UnsafeUnpin for PveClient
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