mirror of
https://github.com/containers/podman.git
synced 2025-06-19 16:33:24 +08:00

in the case of exists, use a boolreport structure so that responses can be consistent pointer and error Signed-off-by: Brent Baude <bbaude@redhat.com>
17 lines
707 B
Go
17 lines
707 B
Go
package entities
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
type ContainerEngine interface {
|
|
ContainerDelete(ctx context.Context, opts ContainerDeleteOptions) (*ContainerDeleteReport, error)
|
|
ContainerPrune(ctx context.Context) (*ContainerPruneReport, error)
|
|
ContainerExists(ctx context.Context, nameOrId string) (*BoolReport, 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)
|
|
VolumeDelete(ctx context.Context, opts VolumeDeleteOptions) (*VolumeDeleteReport, error)
|
|
VolumePrune(ctx context.Context) (*VolumePruneReport, error)
|
|
}
|