mirror of
https://github.com/containers/podman.git
synced 2025-12-01 10:38:05 +08:00
podmanv2 container exists|wait
enable container exists and wait for podmanv2 Signed-off-by: Brent Baude <bbaude@redhat.com>
This commit is contained in:
@@ -5,22 +5,12 @@ import (
|
||||
)
|
||||
|
||||
type ContainerEngine interface {
|
||||
ContainerRuntime
|
||||
PodRuntime
|
||||
VolumeRuntime
|
||||
}
|
||||
|
||||
type ContainerRuntime interface {
|
||||
ContainerDelete(ctx context.Context, opts ContainerDeleteOptions) (*ContainerDeleteReport, error)
|
||||
ContainerPrune(ctx context.Context) (*ContainerPruneReport, error)
|
||||
}
|
||||
|
||||
type PodRuntime interface {
|
||||
ContainerExists(ctx context.Context, nameOrId string) (bool, error)
|
||||
ContainerWait(ctx context.Context, namesOrIds []string, options WaitOptions) ([]WaitReport, error)
|
||||
PodDelete(ctx context.Context, opts PodPruneOptions) (*PodDeleteReport, error)
|
||||
PodPrune(ctx context.Context) (*PodPruneReport, error)
|
||||
}
|
||||
|
||||
type VolumeRuntime interface {
|
||||
VolumeDelete(ctx context.Context, opts VolumeDeleteOptions) (*VolumeDeleteReport, error)
|
||||
VolumePrune(ctx context.Context) (*VolumePruneReport, error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user