diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-01-13 00:34:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-13 00:34:19 +0100 |
commit | cb06133d42e4041fe19d2e66f254abf188f1025e (patch) | |
tree | f844dfca0894a1f7bdb5f90ac659b8ffecea989c /pkg/machine/config.go | |
parent | 6aefbf1216fc1173bf0eab4c021054bebeba0a6a (diff) | |
parent | b7fe25dc2829aee80f02ff625bfc5ae8f6858578 (diff) | |
download | podman-cb06133d42e4041fe19d2e66f254abf188f1025e.tar.gz podman-cb06133d42e4041fe19d2e66f254abf188f1025e.tar.bz2 podman-cb06133d42e4041fe19d2e66f254abf188f1025e.zip |
Merge pull request #12835 from baude/issue12815
Wait for podman stop to complete
Diffstat (limited to 'pkg/machine/config.go')
-rw-r--r-- | pkg/machine/config.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkg/machine/config.go b/pkg/machine/config.go index 27a7c1b1f..97237f5e5 100644 --- a/pkg/machine/config.go +++ b/pkg/machine/config.go @@ -29,6 +29,15 @@ type InitOptions struct { ReExec bool } +type QemuMachineStatus = string + +const ( + // Running indicates the qemu vm is running + Running QemuMachineStatus = "running" + // Stopped indicates the vm has stopped + Stopped QemuMachineStatus = "stopped" +) + type Provider interface { NewMachine(opts InitOptions) (VM, error) LoadVMByName(name string) (VM, error) |