Struct podman_rest_client::v4::APIClient
source · pub struct APIClient { /* private fields */ }
Implementations§
Trait Implementations§
source§impl Client for APIClient
impl Client for APIClient
source§fn containers(&self) -> &dyn Containers
fn containers(&self) -> &dyn Containers
Actions related to containers
source§fn containers_compat(&self) -> &dyn ContainersCompat
fn containers_compat(&self) -> &dyn ContainersCompat
Actions related to containers for the compatibility endpoints
source§fn exec_compat(&self) -> &dyn ExecCompat
fn exec_compat(&self) -> &dyn ExecCompat
Actions related to exec for the compatibility endpoints
source§fn images_compat(&self) -> &dyn ImagesCompat
fn images_compat(&self) -> &dyn ImagesCompat
Actions related to images for the compatibility endpoints
source§fn networks_compat(&self) -> &dyn NetworksCompat
fn networks_compat(&self) -> &dyn NetworksCompat
Actions related to networks for the compatibility endpoints
source§fn secrets_compat(&self) -> &dyn SecretsCompat
fn secrets_compat(&self) -> &dyn SecretsCompat
Actions related to secrets for the compatibility endpoints
source§fn system_compat(&self) -> &dyn SystemCompat
fn system_compat(&self) -> &dyn SystemCompat
Actions related to Podman and compatibility engines
source§fn volumes_compat(&self) -> &dyn VolumesCompat
fn volumes_compat(&self) -> &dyn VolumesCompat
Actions related to volumes for the compatibility endpoints
source§impl Containers for APIClient
impl Containers for APIClient
source§fn image_commit_libpod<'a>(
&'a self,
params: Option<ImageCommitLibpod<'a>>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn image_commit_libpod<'a>( &'a self, params: Option<ImageCommitLibpod<'a>>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /libpod/commit
Commit
Create a new image from a container
source§fn container_delete_libpod<'a>(
&'a self,
name: &'a str,
params: Option<ContainerDeleteLibpod>,
) -> Pin<Box<dyn Future<Output = Result<Vec<()>, Error>> + Send + 'a>>
fn container_delete_libpod<'a>( &'a self, name: &'a str, params: Option<ContainerDeleteLibpod>, ) -> Pin<Box<dyn Future<Output = Result<Vec<()>, Error>> + Send + 'a>>
DELETE /libpod/containers/{name}
Delete container
Delete container
source§fn put_container_archive_libpod<'a>(
&'a self,
name: &'a str,
params: Option<PutContainerArchiveLibpod<'a>>,
request: String,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn put_container_archive_libpod<'a>( &'a self, name: &'a str, params: Option<PutContainerArchiveLibpod<'a>>, request: String, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
GET /libpod/containers/{name}/archive
Copy files into a container
Copy a tar archive of files into a container
source§fn container_attach_libpod<'a>(
&'a self,
name: &'a str,
params: Option<ContainerAttachLibpod<'a>>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn container_attach_libpod<'a>( &'a self, name: &'a str, params: Option<ContainerAttachLibpod<'a>>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /libpod/containers/{name}/attach
Attach to a container
Attach to a container to read its output or send it input. You can attach
to the same container multiple times and you can reattach to containers
that have been detached. Read more
source§fn container_changes_libpod<'a>(
&'a self,
name: &'a str,
params: Option<ContainerChangesLibpod<'a>>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn container_changes_libpod<'a>( &'a self, name: &'a str, params: Option<ContainerChangesLibpod<'a>>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
GET /libpod/containers/{name}/changes
Report on changes to container’s filesystem; adds, deletes or modifications.
Returns which files in a container’s filesystem have been added, deleted, or modified. The Kind of modification can be one of: Read more
source§fn container_checkpoint_libpod<'a>(
&'a self,
name: &'a str,
params: Option<ContainerCheckpointLibpod>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn container_checkpoint_libpod<'a>( &'a self, name: &'a str, params: Option<ContainerCheckpointLibpod>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /libpod/containers/{name}/checkpoint
Checkpoint a container
source§fn container_exists_libpod<'a>(
&'a self,
name: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn container_exists_libpod<'a>( &'a self, name: &'a str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
GET /libpod/containers/{name}/exists
Check if container exists
Quick way to determine if a container exists by name or ID
source§fn container_export_libpod<'a>(
&'a self,
name: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn container_export_libpod<'a>( &'a self, name: &'a str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
GET /libpod/containers/{name}/export
Export a container
Export the contents of a container as a tarball.
source§fn container_healthcheck_libpod<'a>(
&'a self,
name: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn container_healthcheck_libpod<'a>( &'a self, name: &'a str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
GET /libpod/containers/{name}/healthcheck
Run a container’s healthcheck
Execute the defined healthcheck and return information about the results
source§fn container_init_libpod<'a>(
&'a self,
name: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn container_init_libpod<'a>( &'a self, name: &'a str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /libpod/containers/{name}/init
Initialize a container
Performs all tasks necessary for initializing the container but does not start the container.
source§fn container_inspect_libpod<'a>(
&'a self,
name: &'a str,
params: Option<ContainerInspectLibpod>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn container_inspect_libpod<'a>( &'a self, name: &'a str, params: Option<ContainerInspectLibpod>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
GET /libpod/containers/{name}/json
Inspect container
Return low-level information about a container.
source§fn container_kill_libpod<'a>(
&'a self,
name: &'a str,
params: Option<ContainerKillLibpod<'a>>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn container_kill_libpod<'a>( &'a self, name: &'a str, params: Option<ContainerKillLibpod<'a>>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /libpod/containers/{name}/kill
Kill container
send a signal to a container, defaults to killing the container
source§fn container_logs_libpod<'a>(
&'a self,
name: &'a str,
params: Option<ContainerLogsLibpod<'a>>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn container_logs_libpod<'a>( &'a self, name: &'a str, params: Option<ContainerLogsLibpod<'a>>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
GET /libpod/containers/{name}/logs
Get container logs
Get stdout and stderr logs from a container. Read more
source§fn container_mount_libpod<'a>(
&'a self,
name: &'a str,
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'a>>
fn container_mount_libpod<'a>( &'a self, name: &'a str, ) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'a>>
POST /libpod/containers/{name}/mount
Mount a container
Mount a container to the filesystem
source§fn container_pause_libpod<'a>(
&'a self,
name: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn container_pause_libpod<'a>( &'a self, name: &'a str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /libpod/containers/{name}/pause
Pause a container
Use the cgroups freezer to suspend all processes in a container.
source§fn container_rename_libpod<'a>(
&'a self,
name: &'a str,
params: Option<ContainerRenameLibpod<'a>>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn container_rename_libpod<'a>( &'a self, name: &'a str, params: Option<ContainerRenameLibpod<'a>>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /libpod/containers/{name}/rename
Rename an existing container
Change the name of an existing container.
source§fn container_resize_libpod<'a>(
&'a self,
name: &'a str,
params: Option<ContainerResizeLibpod>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn container_resize_libpod<'a>( &'a self, name: &'a str, params: Option<ContainerResizeLibpod>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /libpod/containers/{name}/resize
Resize a container’s TTY
Resize the terminal attached to a container (for use with Attach).
source§fn container_restart_libpod<'a>(
&'a self,
name: &'a str,
params: Option<ContainerRestartLibpod>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn container_restart_libpod<'a>( &'a self, name: &'a str, params: Option<ContainerRestartLibpod>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /libpod/containers/{name}/restart
Restart a container
source§fn container_restore_libpod<'a>(
&'a self,
name: &'a str,
params: Option<ContainerRestoreLibpod<'a>>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn container_restore_libpod<'a>( &'a self, name: &'a str, params: Option<ContainerRestoreLibpod<'a>>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /libpod/containers/{name}/restore
Restore a container
Restore a container from a checkpoint.
source§fn container_start_libpod<'a>(
&'a self,
name: &'a str,
params: Option<ContainerStartLibpod<'a>>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn container_start_libpod<'a>( &'a self, name: &'a str, params: Option<ContainerStartLibpod<'a>>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /libpod/containers/{name}/start
Start a container
source§fn container_stats_libpod<'a>(
&'a self,
name: &'a str,
params: Option<ContainerStatsLibpod>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn container_stats_libpod<'a>( &'a self, name: &'a str, params: Option<ContainerStatsLibpod>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
GET /libpod/containers/{name}/stats
Get stats for a container
DEPRECATED. This endpoint will be removed with the next major release. Please use /libpod/containers/stats instead.
source§fn container_stop_libpod<'a>(
&'a self,
name: &'a str,
params: Option<ContainerStopLibpod>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn container_stop_libpod<'a>( &'a self, name: &'a str, params: Option<ContainerStopLibpod>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /libpod/containers/{name}/stop
Stop a container
source§fn container_top_libpod<'a>(
&'a self,
name: &'a str,
params: Option<ContainerTopLibpod<'a>>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn container_top_libpod<'a>( &'a self, name: &'a str, params: Option<ContainerTopLibpod<'a>>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
GET /libpod/containers/{name}/top
List processes
List processes running inside a container
source§fn container_unmount_libpod<'a>(
&'a self,
name: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn container_unmount_libpod<'a>( &'a self, name: &'a str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /libpod/containers/{name}/unmount
Unmount a container
Unmount a container from the filesystem
source§fn container_unpause_libpod<'a>(
&'a self,
name: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn container_unpause_libpod<'a>( &'a self, name: &'a str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /libpod/containers/{name}/unpause
Unpause Container
source§fn container_update_libpod<'a>(
&'a self,
name: &'a str,
resources: (),
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn container_update_libpod<'a>( &'a self, name: &'a str, resources: (), ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /libpod/containers/{name}/update
Update an existing containers cgroup configuration
Update an existing containers cgroup configuration.
source§fn container_wait_libpod<'a>(
&'a self,
name: &'a str,
params: Option<ContainerWaitLibpod<'a>>,
) -> Pin<Box<dyn Future<Output = Result<i32, Error>> + Send + 'a>>
fn container_wait_libpod<'a>( &'a self, name: &'a str, params: Option<ContainerWaitLibpod<'a>>, ) -> Pin<Box<dyn Future<Output = Result<i32, Error>> + Send + 'a>>
POST /libpod/containers/{name}/wait
Wait on a container
Wait on a container to meet a given condition
source§fn container_create_libpod<'a>(
&'a self,
create: (),
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn container_create_libpod<'a>( &'a self, create: (), ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /libpod/containers/create
Create a container
source§fn container_list_libpod<'a>(
&'a self,
params: Option<ContainerListLibpod<'a>>,
) -> Pin<Box<dyn Future<Output = Result<Vec<()>, Error>> + Send + 'a>>
fn container_list_libpod<'a>( &'a self, params: Option<ContainerListLibpod<'a>>, ) -> Pin<Box<dyn Future<Output = Result<Vec<()>, Error>> + Send + 'a>>
GET /libpod/containers/json
List containers
Returns a list of containers
source§fn container_prune_libpod<'a>(
&'a self,
params: Option<ContainerPruneLibpod<'a>>,
) -> Pin<Box<dyn Future<Output = Result<Vec<()>, Error>> + Send + 'a>>
fn container_prune_libpod<'a>( &'a self, params: Option<ContainerPruneLibpod<'a>>, ) -> Pin<Box<dyn Future<Output = Result<Vec<()>, Error>> + Send + 'a>>
POST /libpod/containers/prune
Delete stopped containers
Remove containers not in use
source§fn container_show_mounted_libpod<'a>(
&'a self,
) -> Pin<Box<dyn Future<Output = Result<HashMap<String, String>, Error>> + Send + 'a>>
fn container_show_mounted_libpod<'a>( &'a self, ) -> Pin<Box<dyn Future<Output = Result<HashMap<String, String>, Error>> + Send + 'a>>
GET /libpod/containers/showmounted
Show mounted containers
Lists all mounted containers mount points
source§fn containers_stats_all_libpod<'a>(
&'a self,
params: Option<ContainersStatsAllLibpod<'a>>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn containers_stats_all_libpod<'a>( &'a self, params: Option<ContainersStatsAllLibpod<'a>>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
GET /libpod/containers/stats
Get stats for one or more containers
Return a live stream of resource usage statistics of one or more container. If no container is specified, the statistics of all containers are returned.
source§fn generate_systemd_libpod<'a>(
&'a self,
name: &'a str,
params: Option<GenerateSystemdLibpod<'a>>,
) -> Pin<Box<dyn Future<Output = Result<HashMap<String, String>, Error>> + Send + 'a>>
fn generate_systemd_libpod<'a>( &'a self, name: &'a str, params: Option<GenerateSystemdLibpod<'a>>, ) -> Pin<Box<dyn Future<Output = Result<HashMap<String, String>, Error>> + Send + 'a>>
GET /libpod/generate/{name}/systemd
Generate Systemd Units
Generate Systemd Units based on a pod or container.
source§fn generate_kube_libpod<'a>(
&'a self,
params: Option<GenerateKubeLibpod<'a>>,
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'a>>
fn generate_kube_libpod<'a>( &'a self, params: Option<GenerateKubeLibpod<'a>>, ) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'a>>
GET /libpod/generate/kube
Generate a Kubernetes YAML file.
Generate Kubernetes YAML based on a pod or container.
source§fn kube_apply_libpod<'a>(
&'a self,
params: Option<KubeApplyLibpod<'a>>,
request: String,
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'a>>
fn kube_apply_libpod<'a>( &'a self, params: Option<KubeApplyLibpod<'a>>, request: String, ) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'a>>
POST /libpod/kube/apply
Apply a podman workload or Kubernetes YAML file.
Deploy a podman container, pod, volume, or Kubernetes yaml to a Kubernetes cluster.
source§impl ContainersCompat for APIClient
impl ContainersCompat for APIClient
source§fn image_commit<'a>(
&'a self,
params: Option<ImageCommit<'a>>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn image_commit<'a>( &'a self, params: Option<ImageCommit<'a>>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /commit
New Image
Create a new image from a container
source§fn container_delete<'a>(
&'a self,
name: &'a str,
params: Option<ContainerDelete>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn container_delete<'a>( &'a self, name: &'a str, params: Option<ContainerDelete>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
DELETE /containers/{name}
Remove a container
source§fn container_archive<'a>(
&'a self,
name: &'a str,
params: Option<ContainerArchive<'a>>,
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'a>>
fn container_archive<'a>( &'a self, name: &'a str, params: Option<ContainerArchive<'a>>, ) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'a>>
GET /containers/{name}/archive
Get files from a container
Get a tar archive of files from a container
source§fn put_container_archive<'a>(
&'a self,
name: &'a str,
params: Option<PutContainerArchive<'a>>,
request: String,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn put_container_archive<'a>( &'a self, name: &'a str, params: Option<PutContainerArchive<'a>>, request: String, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
GET /containers/{name}/archive
Put files into a container
Put a tar archive of files into a container
source§fn container_attach<'a>(
&'a self,
name: &'a str,
params: Option<ContainerAttach<'a>>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn container_attach<'a>( &'a self, name: &'a str, params: Option<ContainerAttach<'a>>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /containers/{name}/attach
Attach to a container
Attach to a container to read its output or send it input. You can attach
to the same container multiple times and you can reattach to containers
that have been detached. Read more
source§fn container_export<'a>(
&'a self,
name: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn container_export<'a>( &'a self, name: &'a str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
GET /containers/{name}/export
Export a container
Export the contents of a container as a tarball.
source§fn container_inspect<'a>(
&'a self,
name: &'a str,
params: Option<ContainerInspect>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn container_inspect<'a>( &'a self, name: &'a str, params: Option<ContainerInspect>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
GET /containers/{name}/json
Inspect container
Return low-level information about a container.
source§fn container_kill<'a>(
&'a self,
name: &'a str,
params: Option<ContainerKill<'a>>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn container_kill<'a>( &'a self, name: &'a str, params: Option<ContainerKill<'a>>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /containers/{name}/kill
Kill container
Signal to send to the container as an integer or string (e.g. SIGINT)
source§fn container_logs<'a>(
&'a self,
name: &'a str,
params: Option<ContainerLogs<'a>>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn container_logs<'a>( &'a self, name: &'a str, params: Option<ContainerLogs<'a>>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
GET /containers/{name}/logs
Get container logs
Get stdout and stderr logs from a container.
source§fn container_pause<'a>(
&'a self,
name: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn container_pause<'a>( &'a self, name: &'a str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /containers/{name}/pause
Pause container
Use the cgroups freezer to suspend all processes in a container.
source§fn container_rename<'a>(
&'a self,
name: &'a str,
params: Option<ContainerRename<'a>>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn container_rename<'a>( &'a self, name: &'a str, params: Option<ContainerRename<'a>>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /containers/{name}/rename
Rename an existing container
Change the name of an existing container.
source§fn container_resize<'a>(
&'a self,
name: &'a str,
params: Option<ContainerResize>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn container_resize<'a>( &'a self, name: &'a str, params: Option<ContainerResize>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /containers/{name}/resize
Resize a container’s TTY
Resize the terminal attached to a container (for use with Attach).
source§fn container_restart<'a>(
&'a self,
name: &'a str,
params: Option<ContainerRestart>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn container_restart<'a>( &'a self, name: &'a str, params: Option<ContainerRestart>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /containers/{name}/restart
Restart container
source§fn container_start<'a>(
&'a self,
name: &'a str,
params: Option<ContainerStart<'a>>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn container_start<'a>( &'a self, name: &'a str, params: Option<ContainerStart<'a>>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /containers/{name}/start
Start a container
source§fn container_stats<'a>(
&'a self,
name: &'a str,
params: Option<ContainerStats>,
) -> Pin<Box<dyn Future<Output = Result<Value, Error>> + Send + 'a>>
fn container_stats<'a>( &'a self, name: &'a str, params: Option<ContainerStats>, ) -> Pin<Box<dyn Future<Output = Result<Value, Error>> + Send + 'a>>
GET /containers/{name}/stats
Get stats for a container
This returns a live stream of a container’s resource usage statistics.
source§fn container_stop<'a>(
&'a self,
name: &'a str,
params: Option<ContainerStop>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn container_stop<'a>( &'a self, name: &'a str, params: Option<ContainerStop>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /containers/{name}/stop
Stop a container
Stop a container
source§fn container_top<'a>(
&'a self,
name: &'a str,
params: Option<ContainerTop<'a>>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn container_top<'a>( &'a self, name: &'a str, params: Option<ContainerTop<'a>>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
GET /containers/{name}/top
List processes running inside a container
source§fn container_unpause<'a>(
&'a self,
name: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn container_unpause<'a>( &'a self, name: &'a str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /containers/{name}/unpause
Unpause container
Resume a paused container
source§fn container_wait<'a>(
&'a self,
name: &'a str,
params: Option<ContainerWait<'a>>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn container_wait<'a>( &'a self, name: &'a str, params: Option<ContainerWait<'a>>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /containers/{name}/wait
Wait on a container
Block until a container stops or given condition is met.
source§fn container_create<'a>(
&'a self,
params: Option<ContainerCreate<'a>>,
body: (),
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn container_create<'a>( &'a self, params: Option<ContainerCreate<'a>>, body: (), ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /containers/create
Create a container
source§fn container_list<'a>(
&'a self,
params: Option<ContainerList<'a>>,
) -> Pin<Box<dyn Future<Output = Result<Vec<()>, Error>> + Send + 'a>>
fn container_list<'a>( &'a self, params: Option<ContainerList<'a>>, ) -> Pin<Box<dyn Future<Output = Result<Vec<()>, Error>> + Send + 'a>>
GET /containers/json
List containers
Returns a list of containers
source§impl Exec for APIClient
impl Exec for APIClient
source§fn container_exec_libpod<'a>(
&'a self,
name: &'a str,
control: ContainerExecLibpodBody,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn container_exec_libpod<'a>( &'a self, name: &'a str, control: ContainerExecLibpodBody, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /libpod/containers/{name}/exec
Create an exec instance
Create an exec session to run a command inside a running container. Exec sessions will be automatically removed 5 minutes after they exit.
source§fn exec_inspect_libpod<'a>(
&'a self,
id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn exec_inspect_libpod<'a>( &'a self, id: &'a str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
GET /libpod/exec/{id}/json
Inspect an exec instance
Return low-level information about an exec instance.
source§fn exec_resize_libpod<'a>(
&'a self,
id: &'a str,
params: Option<ExecResizeLibpod>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn exec_resize_libpod<'a>( &'a self, id: &'a str, params: Option<ExecResizeLibpod>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /libpod/exec/{id}/resize
Resize an exec instance
Resize the TTY session used by an exec instance. This endpoint only works if tty was specified as part of creating and starting the exec instance.
source§fn exec_start_libpod<'a>(
&'a self,
id: &'a str,
control: ExecStartLibpodBody,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn exec_start_libpod<'a>( &'a self, id: &'a str, control: ExecStartLibpodBody, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /libpod/exec/{id}/start
Start an exec instance
Starts a previously set up exec instance. If detach is true, this endpoint returns immediately after starting the command.
Otherwise, it sets up an interactive session with the command. The stream format is the same as the attach endpoint.
source§impl ExecCompat for APIClient
impl ExecCompat for APIClient
source§fn container_exec<'a>(
&'a self,
name: &'a str,
control: ContainerExecBody,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn container_exec<'a>( &'a self, name: &'a str, control: ContainerExecBody, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /containers/{name}/exec
Create an exec instance
Create an exec session to run a command inside a running container. Exec sessions will be automatically removed 5 minutes after they exit.
source§fn exec_inspect<'a>(
&'a self,
id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn exec_inspect<'a>( &'a self, id: &'a str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
GET /exec/{id}/json
Inspect an exec instance
Return low-level information about an exec instance.
source§fn exec_resize<'a>(
&'a self,
id: &'a str,
params: Option<ExecResize>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn exec_resize<'a>( &'a self, id: &'a str, params: Option<ExecResize>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /exec/{id}/resize
Resize an exec instance
Resize the TTY session used by an exec instance. This endpoint only works if tty was specified as part of creating and starting the exec instance.
source§fn exec_start<'a>(
&'a self,
id: &'a str,
control: ExecStartBody,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn exec_start<'a>( &'a self, id: &'a str, control: ExecStartBody, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /exec/{id}/start
Start an exec instance
Starts a previously set up exec instance. If detach is true, this endpoint returns immediately after starting the command. Otherwise, it sets up an interactive session with the command.
source§impl HasConfig for APIClient
impl HasConfig for APIClient
fn get_config(&self) -> &dyn ClientConfig
source§impl Images for APIClient
impl Images for APIClient
source§fn image_build_libpod<'a>(
&'a self,
params: Option<ImageBuildLibpod<'a>>,
) -> Pin<Box<dyn Future<Output = Result<ImageBuildLibpod200, Error>> + Send + 'a>>
fn image_build_libpod<'a>( &'a self, params: Option<ImageBuildLibpod<'a>>, ) -> Pin<Box<dyn Future<Output = Result<ImageBuildLibpod200, Error>> + Send + 'a>>
POST /libpod/build
Create image
Build an image from the given Dockerfile(s)
source§fn image_delete_libpod<'a>(
&'a self,
name: &'a str,
params: Option<ImageDeleteLibpod>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn image_delete_libpod<'a>( &'a self, name: &'a str, params: Option<ImageDeleteLibpod>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
DELETE /libpod/images/{name}
Remove an image from the local storage.
Remove an image from the local storage.
source§fn image_changes_libpod<'a>(
&'a self,
name: &'a str,
params: Option<ImageChangesLibpod<'a>>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn image_changes_libpod<'a>( &'a self, name: &'a str, params: Option<ImageChangesLibpod<'a>>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
GET /libpod/images/{name}/changes
Report on changes to images’s filesystem; adds, deletes or modifications.
Returns which files in an image’s filesystem have been added, deleted, or modified. The Kind of modification can be one of: Read more
source§fn image_exists_libpod<'a>(
&'a self,
name: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn image_exists_libpod<'a>( &'a self, name: &'a str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
GET /libpod/images/{name}/exists
Image exists
Check if image exists in local store
source§fn image_get_libpod<'a>(
&'a self,
name: &'a str,
params: Option<ImageGetLibpod<'a>>,
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'a>>
fn image_get_libpod<'a>( &'a self, name: &'a str, params: Option<ImageGetLibpod<'a>>, ) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'a>>
GET /libpod/images/{name}/get
Export an image
Export an image
source§fn image_history_libpod<'a>(
&'a self,
name: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn image_history_libpod<'a>( &'a self, name: &'a str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
GET /libpod/images/{name}/history
History of an image
Return parent layers of an image.
source§fn image_inspect_libpod<'a>(
&'a self,
name: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn image_inspect_libpod<'a>( &'a self, name: &'a str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
GET /libpod/images/{name}/json
Inspect an image
Obtain low-level information about an image
source§fn image_push_libpod<'a>(
&'a self,
name: &'a str,
params: Option<ImagePushLibpod<'a>>,
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'a>>
fn image_push_libpod<'a>( &'a self, name: &'a str, params: Option<ImagePushLibpod<'a>>, ) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'a>>
POST /libpod/images/{name}/push
Push Image
Push an image to a container registry
source§fn image_tag_libpod<'a>(
&'a self,
name: &'a str,
params: Option<ImageTagLibpod<'a>>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn image_tag_libpod<'a>( &'a self, name: &'a str, params: Option<ImageTagLibpod<'a>>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /libpod/images/{name}/tag
Tag an image
Tag an image so that it becomes part of a repository.
source§fn image_tree_libpod<'a>(
&'a self,
name: &'a str,
params: Option<ImageTreeLibpod>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn image_tree_libpod<'a>( &'a self, name: &'a str, params: Option<ImageTreeLibpod>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
GET /libpod/images/{name}/tree
Image tree
Retrieve the image tree for the provided image name or ID
source§fn image_untag_libpod<'a>(
&'a self,
name: &'a str,
params: Option<ImageUntagLibpod<'a>>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn image_untag_libpod<'a>( &'a self, name: &'a str, params: Option<ImageUntagLibpod<'a>>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /libpod/images/{name}/untag
Untag an image
Untag an image. If not repo and tag are specified, all tags are removed from the image.
source§fn image_export_libpod<'a>(
&'a self,
params: Option<ImageExportLibpod<'a>>,
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'a>>
fn image_export_libpod<'a>( &'a self, params: Option<ImageExportLibpod<'a>>, ) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'a>>
GET /libpod/images/export
Export multiple images
Export multiple images into a single object. Only
docker-archive
is currently supported.source§fn image_import_libpod<'a>(
&'a self,
params: Option<ImageImportLibpod<'a>>,
upload: String,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn image_import_libpod<'a>( &'a self, params: Option<ImageImportLibpod<'a>>, upload: String, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /libpod/images/import
Import image
Import a previously exported tarball as an image.
source§fn image_list_libpod<'a>(
&'a self,
params: Option<ImageListLibpod<'a>>,
) -> Pin<Box<dyn Future<Output = Result<Vec<()>, Error>> + Send + 'a>>
fn image_list_libpod<'a>( &'a self, params: Option<ImageListLibpod<'a>>, ) -> Pin<Box<dyn Future<Output = Result<Vec<()>, Error>> + Send + 'a>>
GET /libpod/images/json
List Images
Returns a list of images on the server
source§fn image_load_libpod<'a>(
&'a self,
upload: String,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn image_load_libpod<'a>( &'a self, upload: String, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /libpod/images/load
Load image
Load an image (oci-archive or docker-archive) stream.
source§fn image_prune_libpod<'a>(
&'a self,
params: Option<ImagePruneLibpod<'a>>,
) -> Pin<Box<dyn Future<Output = Result<Vec<()>, Error>> + Send + 'a>>
fn image_prune_libpod<'a>( &'a self, params: Option<ImagePruneLibpod<'a>>, ) -> Pin<Box<dyn Future<Output = Result<Vec<()>, Error>> + Send + 'a>>
POST /libpod/images/prune
Prune unused images
Remove images that are not being used by a container
source§fn image_pull_libpod<'a>(
&'a self,
params: Option<ImagePullLibpod<'a>>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn image_pull_libpod<'a>( &'a self, params: Option<ImagePullLibpod<'a>>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /libpod/images/pull
Pull images
Pull one or more images from a container registry.
source§fn image_delete_all_libpod<'a>(
&'a self,
params: Option<ImageDeleteAllLibpod<'a>>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn image_delete_all_libpod<'a>( &'a self, params: Option<ImageDeleteAllLibpod<'a>>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
DELETE /libpod/images/remove
Remove one or more images from the storage.
Remove one or more images from the storage.
source§impl ImagesCompat for APIClient
impl ImagesCompat for APIClient
source§fn image_build<'a>(
&'a self,
params: Option<ImageBuild<'a>>,
input_stream: String,
) -> Pin<Box<dyn Future<Output = Result<ImageBuild200, Error>> + Send + 'a>>
fn image_build<'a>( &'a self, params: Option<ImageBuild<'a>>, input_stream: String, ) -> Pin<Box<dyn Future<Output = Result<ImageBuild200, Error>> + Send + 'a>>
POST /build
Create image
Build an image from the given Dockerfile(s)
source§fn image_delete<'a>(
&'a self,
name: &'a str,
params: Option<ImageDelete>,
) -> Pin<Box<dyn Future<Output = Result<Vec<()>, Error>> + Send + 'a>>
fn image_delete<'a>( &'a self, name: &'a str, params: Option<ImageDelete>, ) -> Pin<Box<dyn Future<Output = Result<Vec<()>, Error>> + Send + 'a>>
DELETE /images/{name}
Remove Image
Delete an image from local storage
source§fn image_get<'a>(
&'a self,
name: &'a str,
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'a>>
fn image_get<'a>( &'a self, name: &'a str, ) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'a>>
GET /images/{name}/get
Export an image
Export an image in tarball format
source§fn image_history<'a>(
&'a self,
name: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn image_history<'a>( &'a self, name: &'a str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
GET /images/{name}/history
History of an image
Return parent layers of an image.
source§fn image_inspect<'a>(
&'a self,
name: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn image_inspect<'a>( &'a self, name: &'a str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
GET /images/{name}/json
Inspect an image
Return low-level information about an image.
source§fn image_push<'a>(
&'a self,
name: &'a str,
params: Option<ImagePush<'a>>,
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'a>>
fn image_push<'a>( &'a self, name: &'a str, params: Option<ImagePush<'a>>, ) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'a>>
POST /images/{name}/push
Push Image
Push an image to a container registry
source§fn image_tag<'a>(
&'a self,
name: &'a str,
params: Option<ImageTag<'a>>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn image_tag<'a>( &'a self, name: &'a str, params: Option<ImageTag<'a>>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /images/{name}/tag
Tag an image
Tag an image so that it becomes part of a repository.
source§fn image_create<'a>(
&'a self,
params: Option<ImageCreate<'a>>,
input_image: String,
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'a>>
fn image_create<'a>( &'a self, params: Option<ImageCreate<'a>>, input_image: String, ) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'a>>
POST /images/create
Create an image
Create an image by either pulling it from a registry or importing it.
source§fn image_get_all<'a>(
&'a self,
params: Option<ImageGetAll<'a>>,
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'a>>
fn image_get_all<'a>( &'a self, params: Option<ImageGetAll<'a>>, ) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'a>>
GET /images/get
Export several images
Get a tarball containing all images and metadata for several image repositories
source§fn image_list<'a>(
&'a self,
params: Option<ImageList<'a>>,
) -> Pin<Box<dyn Future<Output = Result<Vec<()>, Error>> + Send + 'a>>
fn image_list<'a>( &'a self, params: Option<ImageList<'a>>, ) -> Pin<Box<dyn Future<Output = Result<Vec<()>, Error>> + Send + 'a>>
GET /images/json
List Images
Returns a list of images on the server. Note that it uses a different, smaller representation of an image than inspecting a single image.
source§fn image_load<'a>(
&'a self,
params: Option<ImageLoad>,
request: String,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn image_load<'a>( &'a self, params: Option<ImageLoad>, request: String, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /images/load
Import image
Load a set of images and tags into a repository.
source§impl Manifests for APIClient
impl Manifests for APIClient
source§fn manifest_create_libpod<'a>(
&'a self,
params: Option<ManifestCreateLibpod<'a>>,
options: (),
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn manifest_create_libpod<'a>( &'a self, params: Option<ManifestCreateLibpod<'a>>, options: (), ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /libpod/manifests
Create
Create a manifest list
source§fn manifest_delete_libpod<'a>(
&'a self,
name: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn manifest_delete_libpod<'a>( &'a self, name: &'a str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
DELETE /libpod/manifests/{name}
Delete manifest list
Delete named manifest list Read more
source§fn manifest_modify_libpod<'a>(
&'a self,
name: &'a str,
params: Option<ManifestModifyLibpod>,
options: (),
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn manifest_modify_libpod<'a>( &'a self, name: &'a str, params: Option<ManifestModifyLibpod>, options: (), ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
GET /libpod/manifests/{name}
Modify manifest list
Add/Remove an image(s) to a manifest list Read more
source§fn manifest_add_libpod<'a>(
&'a self,
name: &'a str,
options: (),
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn manifest_add_libpod<'a>( &'a self, name: &'a str, options: (), ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /libpod/manifests/{name}/add
Add image
Add an image to a manifest list Read more
source§fn manifest_exists_libpod<'a>(
&'a self,
name: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn manifest_exists_libpod<'a>( &'a self, name: &'a str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
GET /libpod/manifests/{name}/exists
Exists
Check if manifest list exists Read more
source§fn manifest_inspect_libpod<'a>(
&'a self,
name: &'a str,
params: Option<ManifestInspectLibpod>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn manifest_inspect_libpod<'a>( &'a self, name: &'a str, params: Option<ManifestInspectLibpod>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
GET /libpod/manifests/{name}/json
Inspect
Display attributes of given manifest list
source§fn manifest_push_v_3_libpod<'a>(
&'a self,
name: &'a str,
params: Option<ManifestPushV3Libpod<'a>>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn manifest_push_v_3_libpod<'a>( &'a self, name: &'a str, params: Option<ManifestPushV3Libpod<'a>>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /libpod/manifests/{name}/push
Push manifest to registry
Push a manifest list or image index to a registry Read more
source§fn manifest_push_libpod<'a>(
&'a self,
name: &'a str,
destination: &'a str,
params: Option<ManifestPushLibpod<'a>>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn manifest_push_libpod<'a>( &'a self, name: &'a str, destination: &'a str, params: Option<ManifestPushLibpod<'a>>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /libpod/manifests/{name}/registry/{destination}
Push manifest list to registry
Push a manifest list or image index to the named registry Read more
source§impl Networks for APIClient
impl Networks for APIClient
source§fn network_delete_libpod<'a>(
&'a self,
name: &'a str,
params: Option<NetworkDeleteLibpod>,
) -> Pin<Box<dyn Future<Output = Result<Vec<()>, Error>> + Send + 'a>>
fn network_delete_libpod<'a>( &'a self, name: &'a str, params: Option<NetworkDeleteLibpod>, ) -> Pin<Box<dyn Future<Output = Result<Vec<()>, Error>> + Send + 'a>>
DELETE /libpod/networks/{name}
Remove a network
Remove a configured network
source§fn network_connect_libpod<'a>(
&'a self,
name: &'a str,
create: (),
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn network_connect_libpod<'a>( &'a self, name: &'a str, create: (), ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /libpod/networks/{name}/connect
Connect container to network
Connect a container to a network.
source§fn network_disconnect_libpod<'a>(
&'a self,
name: &'a str,
create: (),
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn network_disconnect_libpod<'a>( &'a self, name: &'a str, create: (), ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /libpod/networks/{name}/disconnect
Disconnect container from network
Disconnect a container from a network.
source§fn network_exists_libpod<'a>(
&'a self,
name: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn network_exists_libpod<'a>( &'a self, name: &'a str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
GET /libpod/networks/{name}/exists
Network exists
Check if network exists
source§fn network_inspect_libpod<'a>(
&'a self,
name: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn network_inspect_libpod<'a>( &'a self, name: &'a str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
GET /libpod/networks/{name}/json
Inspect a network
Display configuration for a network.
source§fn network_update_libpod<'a>(
&'a self,
name: &'a str,
update: (),
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn network_update_libpod<'a>( &'a self, name: &'a str, update: (), ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /libpod/networks/{name}/update
Update existing podman network
Update existing podman network
source§fn network_create_libpod<'a>(
&'a self,
create: (),
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn network_create_libpod<'a>( &'a self, create: (), ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /libpod/networks/create
Create network
Create a new network configuration
source§impl NetworksCompat for APIClient
impl NetworksCompat for APIClient
source§fn network_list<'a>(
&'a self,
params: Option<NetworkList<'a>>,
) -> Pin<Box<dyn Future<Output = Result<Vec<()>, Error>> + Send + 'a>>
fn network_list<'a>( &'a self, params: Option<NetworkList<'a>>, ) -> Pin<Box<dyn Future<Output = Result<Vec<()>, Error>> + Send + 'a>>
GET /networks
List networks
Display summary of network configurations
source§fn network_delete<'a>(
&'a self,
name: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn network_delete<'a>( &'a self, name: &'a str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
DELETE /networks/{name}
Remove a network
Remove a network
source§fn network_inspect<'a>(
&'a self,
name: &'a str,
params: Option<NetworkInspect<'a>>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn network_inspect<'a>( &'a self, name: &'a str, params: Option<NetworkInspect<'a>>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
GET /networks/{name}
Inspect a network
Display low level configuration network
source§fn network_connect<'a>(
&'a self,
name: &'a str,
create: (),
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn network_connect<'a>( &'a self, name: &'a str, create: (), ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /networks/{name}/connect
Connect container to network
Connect a container to a network
source§fn network_disconnect<'a>(
&'a self,
name: &'a str,
create: (),
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn network_disconnect<'a>( &'a self, name: &'a str, create: (), ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /networks/{name}/disconnect
Disconnect container from network
Disconnect a container from a network
source§fn network_create<'a>(
&'a self,
create: (),
) -> Pin<Box<dyn Future<Output = Result<NetworkCreate201, Error>> + Send + 'a>>
fn network_create<'a>( &'a self, create: (), ) -> Pin<Box<dyn Future<Output = Result<NetworkCreate201, Error>> + Send + 'a>>
POST /networks/create
Create network
Create a network configuration
source§fn network_prune<'a>(
&'a self,
params: Option<NetworkPrune<'a>>,
) -> Pin<Box<dyn Future<Output = Result<NetworkPrune200, Error>> + Send + 'a>>
fn network_prune<'a>( &'a self, params: Option<NetworkPrune<'a>>, ) -> Pin<Box<dyn Future<Output = Result<NetworkPrune200, Error>> + Send + 'a>>
POST /networks/prune
Delete unused networks
Remove networks that do not have containers
source§impl Pods for APIClient
impl Pods for APIClient
source§fn pod_delete_libpod<'a>(
&'a self,
name: &'a str,
params: Option<PodDeleteLibpod>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn pod_delete_libpod<'a>( &'a self, name: &'a str, params: Option<PodDeleteLibpod>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
DELETE /libpod/pods/{name}
Remove pod
source§fn pod_exists_libpod<'a>(
&'a self,
name: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn pod_exists_libpod<'a>( &'a self, name: &'a str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
GET /libpod/pods/{name}/exists
Pod exists
Check if a pod exists by name or ID
source§fn pod_inspect_libpod<'a>(
&'a self,
name: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn pod_inspect_libpod<'a>( &'a self, name: &'a str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
GET /libpod/pods/{name}/json
Inspect pod
source§fn pod_kill_libpod<'a>(
&'a self,
name: &'a str,
params: Option<PodKillLibpod<'a>>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn pod_kill_libpod<'a>( &'a self, name: &'a str, params: Option<PodKillLibpod<'a>>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /libpod/pods/{name}/kill
Kill a pod
source§fn pod_pause_libpod<'a>(
&'a self,
name: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn pod_pause_libpod<'a>( &'a self, name: &'a str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /libpod/pods/{name}/pause
Pause a pod
Pause a pod
source§fn pod_restart_libpod<'a>(
&'a self,
name: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn pod_restart_libpod<'a>( &'a self, name: &'a str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /libpod/pods/{name}/restart
Restart a pod
source§fn pod_start_libpod<'a>(
&'a self,
name: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn pod_start_libpod<'a>( &'a self, name: &'a str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /libpod/pods/{name}/start
Start a pod
source§fn pod_stop_libpod<'a>(
&'a self,
name: &'a str,
params: Option<PodStopLibpod>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn pod_stop_libpod<'a>( &'a self, name: &'a str, params: Option<PodStopLibpod>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /libpod/pods/{name}/stop
Stop a pod
source§fn pod_top_libpod<'a>(
&'a self,
name: &'a str,
params: Option<PodTopLibpod<'a>>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn pod_top_libpod<'a>( &'a self, name: &'a str, params: Option<PodTopLibpod<'a>>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
GET /libpod/pods/{name}/top
List processes
List processes running inside a pod
source§fn pod_unpause_libpod<'a>(
&'a self,
name: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn pod_unpause_libpod<'a>( &'a self, name: &'a str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /libpod/pods/{name}/unpause
Unpause a pod
source§fn pod_create_libpod<'a>(
&'a self,
create: Value,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn pod_create_libpod<'a>( &'a self, create: Value, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /libpod/pods/create
Create a pod
source§fn pod_list_libpod<'a>(
&'a self,
params: Option<PodListLibpod<'a>>,
) -> Pin<Box<dyn Future<Output = Result<Vec<()>, Error>> + Send + 'a>>
fn pod_list_libpod<'a>( &'a self, params: Option<PodListLibpod<'a>>, ) -> Pin<Box<dyn Future<Output = Result<Vec<()>, Error>> + Send + 'a>>
GET /libpod/pods/json
List pods
source§impl Secrets for APIClient
impl Secrets for APIClient
source§fn secret_delete_libpod<'a>(
&'a self,
name: &'a str,
params: Option<SecretDeleteLibpod>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn secret_delete_libpod<'a>( &'a self, name: &'a str, params: Option<SecretDeleteLibpod>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
DELETE /libpod/secrets/{name}
Remove secret
source§fn secret_exists_libpod<'a>(
&'a self,
name: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn secret_exists_libpod<'a>( &'a self, name: &'a str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
GET /libpod/secrets/{name}/exists
Secret exists
source§fn secret_inspect_libpod<'a>(
&'a self,
name: &'a str,
params: Option<SecretInspectLibpod>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn secret_inspect_libpod<'a>( &'a self, name: &'a str, params: Option<SecretInspectLibpod>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
GET /libpod/secrets/{name}/json
Inspect secret
source§impl SecretsCompat for APIClient
impl SecretsCompat for APIClient
source§fn secret_list<'a>(
&'a self,
params: Option<SecretList<'a>>,
) -> Pin<Box<dyn Future<Output = Result<Vec<()>, Error>> + Send + 'a>>
fn secret_list<'a>( &'a self, params: Option<SecretList<'a>>, ) -> Pin<Box<dyn Future<Output = Result<Vec<()>, Error>> + Send + 'a>>
GET /secrets
List secrets
Returns a list of secrets
source§fn secret_delete<'a>(
&'a self,
name: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn secret_delete<'a>( &'a self, name: &'a str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
DELETE /secrets/{name}
Remove secret
source§impl System for APIClient
impl System for APIClient
source§fn system_events_libpod<'a>(
&'a self,
params: Option<SystemEventsLibpod<'a>>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn system_events_libpod<'a>( &'a self, params: Option<SystemEventsLibpod<'a>>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
GET /libpod/events
Get events
Returns events filtered on query parameters
source§fn system_info_libpod<'a>(
&'a self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn system_info_libpod<'a>( &'a self, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
GET /libpod/info
Get info
Returns information on the system and libpod configuration
source§fn system_data_usage_libpod<'a>(
&'a self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn system_data_usage_libpod<'a>( &'a self, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
GET /libpod/system/df
Show disk usage
Return information about disk usage for containers, images, and volumes
source§impl SystemCompat for APIClient
impl SystemCompat for APIClient
source§fn system_auth<'a>(
&'a self,
auth_config: (),
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn system_auth<'a>( &'a self, auth_config: (), ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /auth
Check auth configuration
source§fn system_events<'a>(
&'a self,
params: Option<SystemEvents<'a>>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn system_events<'a>( &'a self, params: Option<SystemEvents<'a>>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
GET /events
Get events
Returns events filtered on query parameters
source§fn system_info<'a>(
&'a self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn system_info<'a>( &'a self, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
GET /info
Get info
Returns information on the system and libpod configuration
source§fn system_ping<'a>(
&'a self,
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'a>>
fn system_ping<'a>( &'a self, ) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'a>>
GET /libpod/_ping
Ping service
Return protocol information in response headers.
HEAD /libpod/_ping
is also supported.
/_ping
is available for compatibility with other engines.
The ‘_ping’ endpoints are not versioned.source§impl Volumes for APIClient
impl Volumes for APIClient
source§fn volume_delete_libpod<'a>(
&'a self,
name: &'a str,
params: Option<VolumeDeleteLibpod>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn volume_delete_libpod<'a>( &'a self, name: &'a str, params: Option<VolumeDeleteLibpod>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
DELETE /libpod/volumes/{name}
Remove volume
source§fn volume_exists_libpod<'a>(
&'a self,
name: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn volume_exists_libpod<'a>( &'a self, name: &'a str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
GET /libpod/volumes/{name}/exists
Volume exists
Check if a volume exists
source§fn volume_inspect_libpod<'a>(
&'a self,
name: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn volume_inspect_libpod<'a>( &'a self, name: &'a str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
GET /libpod/volumes/{name}/json
Inspect volume
source§fn volume_create_libpod<'a>(
&'a self,
create: VolumeCreateOptions,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn volume_create_libpod<'a>( &'a self, create: VolumeCreateOptions, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /libpod/volumes/create
Create a volume
source§impl VolumesCompat for APIClient
impl VolumesCompat for APIClient
source§fn volume_list<'a>(
&'a self,
params: Option<VolumeList<'a>>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn volume_list<'a>( &'a self, params: Option<VolumeList<'a>>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
GET /volumes
List volumes
Returns a list of volume
source§fn volume_delete<'a>(
&'a self,
name: &'a str,
params: Option<VolumeDelete>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn volume_delete<'a>( &'a self, name: &'a str, params: Option<VolumeDelete>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
DELETE /volumes/{name}
Remove volume
source§fn volume_inspect<'a>(
&'a self,
name: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn volume_inspect<'a>( &'a self, name: &'a str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
GET /volumes/{name}
Inspect volume
Auto Trait Implementations§
impl Freeze for APIClient
impl !RefUnwindSafe for APIClient
impl Send for APIClient
impl Sync for APIClient
impl Unpin for APIClient
impl !UnwindSafe for APIClient
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