github.com/containers/podman/v2@v2.2.2-0.20210501105131-c1e07d070c4c/pkg/domain/entities/engine_container.go (about) 1 package entities 2 3 import ( 4 "context" 5 6 "github.com/containers/common/pkg/config" 7 "github.com/containers/podman/v2/libpod/define" 8 "github.com/containers/podman/v2/pkg/specgen" 9 "github.com/spf13/cobra" 10 ) 11 12 type ContainerEngine interface { 13 AutoUpdate(ctx context.Context, options AutoUpdateOptions) (*AutoUpdateReport, []error) 14 Config(ctx context.Context) (*config.Config, error) 15 ContainerAttach(ctx context.Context, nameOrID string, options AttachOptions) error 16 ContainerCheckpoint(ctx context.Context, namesOrIds []string, options CheckpointOptions) ([]*CheckpointReport, error) 17 ContainerCleanup(ctx context.Context, namesOrIds []string, options ContainerCleanupOptions) ([]*ContainerCleanupReport, error) 18 ContainerCommit(ctx context.Context, nameOrID string, options CommitOptions) (*CommitReport, error) 19 ContainerCp(ctx context.Context, source, dest string, options ContainerCpOptions) (*ContainerCpReport, error) 20 ContainerCreate(ctx context.Context, s *specgen.SpecGenerator) (*ContainerCreateReport, error) 21 ContainerDiff(ctx context.Context, nameOrID string, options DiffOptions) (*DiffReport, error) 22 ContainerExec(ctx context.Context, nameOrID string, options ExecOptions, streams define.AttachStreams) (int, error) 23 ContainerExecDetached(ctx context.Context, nameOrID string, options ExecOptions) (string, error) 24 ContainerExists(ctx context.Context, nameOrID string, options ContainerExistsOptions) (*BoolReport, error) 25 ContainerExport(ctx context.Context, nameOrID string, options ContainerExportOptions) error 26 ContainerInit(ctx context.Context, namesOrIds []string, options ContainerInitOptions) ([]*ContainerInitReport, error) 27 ContainerInspect(ctx context.Context, namesOrIds []string, options InspectOptions) ([]*ContainerInspectReport, []error, error) 28 ContainerKill(ctx context.Context, namesOrIds []string, options KillOptions) ([]*KillReport, error) 29 ContainerList(ctx context.Context, options ContainerListOptions) ([]ListContainer, error) 30 ContainerLogs(ctx context.Context, containers []string, options ContainerLogsOptions) error 31 ContainerMount(ctx context.Context, nameOrIDs []string, options ContainerMountOptions) ([]*ContainerMountReport, error) 32 ContainerPause(ctx context.Context, namesOrIds []string, options PauseUnPauseOptions) ([]*PauseUnpauseReport, error) 33 ContainerPort(ctx context.Context, nameOrID string, options ContainerPortOptions) ([]*ContainerPortReport, error) 34 ContainerPrune(ctx context.Context, options ContainerPruneOptions) (*ContainerPruneReport, error) 35 ContainerRestart(ctx context.Context, namesOrIds []string, options RestartOptions) ([]*RestartReport, error) 36 ContainerRestore(ctx context.Context, namesOrIds []string, options RestoreOptions) ([]*RestoreReport, error) 37 ContainerRm(ctx context.Context, namesOrIds []string, options RmOptions) ([]*RmReport, error) 38 ContainerRun(ctx context.Context, opts ContainerRunOptions) (*ContainerRunReport, error) 39 ContainerRunlabel(ctx context.Context, label string, image string, args []string, opts ContainerRunlabelOptions) error 40 ContainerStart(ctx context.Context, namesOrIds []string, options ContainerStartOptions) ([]*ContainerStartReport, error) 41 ContainerStats(ctx context.Context, namesOrIds []string, options ContainerStatsOptions) (chan ContainerStatsReport, error) 42 ContainerStop(ctx context.Context, namesOrIds []string, options StopOptions) ([]*StopReport, error) 43 ContainerTop(ctx context.Context, options TopOptions) (*StringSliceReport, error) 44 ContainerUnmount(ctx context.Context, nameOrIDs []string, options ContainerUnmountOptions) ([]*ContainerUnmountReport, error) 45 ContainerUnpause(ctx context.Context, namesOrIds []string, options PauseUnPauseOptions) ([]*PauseUnpauseReport, error) 46 ContainerWait(ctx context.Context, namesOrIds []string, options WaitOptions) ([]WaitReport, error) 47 Events(ctx context.Context, opts EventsOptions) error 48 GenerateSystemd(ctx context.Context, nameOrID string, opts GenerateSystemdOptions) (*GenerateSystemdReport, error) 49 GenerateKube(ctx context.Context, nameOrID string, opts GenerateKubeOptions) (*GenerateKubeReport, error) 50 SystemPrune(ctx context.Context, options SystemPruneOptions) (*SystemPruneReport, error) 51 HealthCheckRun(ctx context.Context, nameOrID string, options HealthCheckOptions) (*define.HealthCheckResults, error) 52 Info(ctx context.Context) (*define.Info, error) 53 NetworkConnect(ctx context.Context, networkname string, options NetworkConnectOptions) error 54 NetworkCreate(ctx context.Context, name string, options NetworkCreateOptions) (*NetworkCreateReport, error) 55 NetworkDisconnect(ctx context.Context, networkname string, options NetworkDisconnectOptions) error 56 NetworkInspect(ctx context.Context, namesOrIds []string, options InspectOptions) ([]NetworkInspectReport, []error, error) 57 NetworkList(ctx context.Context, options NetworkListOptions) ([]*NetworkListReport, error) 58 NetworkRm(ctx context.Context, namesOrIds []string, options NetworkRmOptions) ([]*NetworkRmReport, error) 59 PlayKube(ctx context.Context, path string, opts PlayKubeOptions) (*PlayKubeReport, error) 60 PodCreate(ctx context.Context, opts PodCreateOptions) (*PodCreateReport, error) 61 PodExists(ctx context.Context, nameOrID string) (*BoolReport, error) 62 PodInspect(ctx context.Context, options PodInspectOptions) (*PodInspectReport, error) 63 PodKill(ctx context.Context, namesOrIds []string, options PodKillOptions) ([]*PodKillReport, error) 64 PodPause(ctx context.Context, namesOrIds []string, options PodPauseOptions) ([]*PodPauseReport, error) 65 PodPrune(ctx context.Context, options PodPruneOptions) ([]*PodPruneReport, error) 66 PodPs(ctx context.Context, options PodPSOptions) ([]*ListPodsReport, error) 67 PodRestart(ctx context.Context, namesOrIds []string, options PodRestartOptions) ([]*PodRestartReport, error) 68 PodRm(ctx context.Context, namesOrIds []string, options PodRmOptions) ([]*PodRmReport, error) 69 PodStart(ctx context.Context, namesOrIds []string, options PodStartOptions) ([]*PodStartReport, error) 70 PodStats(ctx context.Context, namesOrIds []string, options PodStatsOptions) ([]*PodStatsReport, error) 71 PodStop(ctx context.Context, namesOrIds []string, options PodStopOptions) ([]*PodStopReport, error) 72 PodTop(ctx context.Context, options PodTopOptions) (*StringSliceReport, error) 73 PodUnpause(ctx context.Context, namesOrIds []string, options PodunpauseOptions) ([]*PodUnpauseReport, error) 74 SetupRootless(ctx context.Context, cmd *cobra.Command) error 75 Shutdown(ctx context.Context) 76 SystemDf(ctx context.Context, options SystemDfOptions) (*SystemDfReport, error) 77 Unshare(ctx context.Context, args []string) error 78 VarlinkService(ctx context.Context, opts ServiceOptions) error 79 Version(ctx context.Context) (*SystemVersionReport, error) 80 VolumeCreate(ctx context.Context, opts VolumeCreateOptions) (*IDOrNameResponse, error) 81 VolumeInspect(ctx context.Context, namesOrIds []string, opts InspectOptions) ([]*VolumeInspectReport, []error, error) 82 VolumeList(ctx context.Context, opts VolumeListOptions) ([]*VolumeListReport, error) 83 VolumePrune(ctx context.Context) ([]*VolumePruneReport, error) 84 VolumeRm(ctx context.Context, namesOrIds []string, opts VolumeRmOptions) ([]*VolumeRmReport, error) 85 }