diff options
author | Ashley Cui <acui@redhat.com> | 2021-03-25 15:28:49 -0400 |
---|---|---|
committer | Ashley Cui <acui@redhat.com> | 2021-03-25 17:45:27 -0400 |
commit | f6638571037c3d92066540e32fa08b76ce7f1fd8 (patch) | |
tree | 5c7332668bb4aae33f3f278f8b50ddd5ed8cff1d /pkg/machine/config.go | |
parent | db356748738762c31a036c179d23488d7978dabf (diff) | |
download | podman-f6638571037c3d92066540e32fa08b76ce7f1fd8.tar.gz podman-f6638571037c3d92066540e32fa08b76ce7f1fd8.tar.bz2 podman-f6638571037c3d92066540e32fa08b76ce7f1fd8.zip |
Rename podman machine create to init and clean up
Rename podman machine create to init because we're initing a VM, not
really creating it
Wire up CPUs flag
Suppress QEMU GUI from popping up when not in debug mode
[NO TESTS NEEDED]
Signed-off-by: Ashley Cui <acui@redhat.com>
Diffstat (limited to 'pkg/machine/config.go')
-rw-r--r-- | pkg/machine/config.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/machine/config.go b/pkg/machine/config.go index 242401ab4..4933deee8 100644 --- a/pkg/machine/config.go +++ b/pkg/machine/config.go @@ -9,7 +9,7 @@ import ( "github.com/containers/storage/pkg/homedir" ) -type CreateOptions struct { +type InitOptions struct { Name string CPUS uint64 Memory uint64 @@ -58,7 +58,7 @@ type RemoveOptions struct { } type VM interface { - Create(opts CreateOptions) error + Init(opts InitOptions) error Remove(name string, opts RemoveOptions) (string, func() error, error) SSH(name string, opts SSHOptions) error Start(name string, opts StartOptions) error |