diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-03-28 10:55:45 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-28 10:55:45 +0000 |
commit | b2e7a3e45c89132e41b0d864dbc4eacacbecf08d (patch) | |
tree | f990f0b9b079cecce73f0730ffc2c6a1fe2bec82 /pkg/machine/config.go | |
parent | 4831d4134606699615454caa1ee75e7d37ee778b (diff) | |
parent | 7a79f708a4521ba7c42da83a204a01ace010ace3 (diff) | |
download | podman-b2e7a3e45c89132e41b0d864dbc4eacacbecf08d.tar.gz podman-b2e7a3e45c89132e41b0d864dbc4eacacbecf08d.tar.bz2 podman-b2e7a3e45c89132e41b0d864dbc4eacacbecf08d.zip |
Merge pull request #9836 from baude/vmcreateresize
Podman machine enhancements
Diffstat (limited to 'pkg/machine/config.go')
-rw-r--r-- | pkg/machine/config.go | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/pkg/machine/config.go b/pkg/machine/config.go index 4933deee8..273deca00 100644 --- a/pkg/machine/config.go +++ b/pkg/machine/config.go @@ -7,19 +7,19 @@ import ( "path/filepath" "github.com/containers/storage/pkg/homedir" + "github.com/pkg/errors" ) type InitOptions struct { - Name string CPUS uint64 - Memory uint64 + DiskSize uint64 IgnitionPath string ImagePath string - Username string - URI url.URL IsDefault bool - //KernelPath string - //Devices []VMDevices + Memory uint64 + Name string + URI url.URL + Username string } type RemoteConnectionType string @@ -27,6 +27,8 @@ type RemoteConnectionType string var ( SSHRemoteConnection RemoteConnectionType = "ssh" DefaultIgnitionUserName = "core" + ErrNoSuchVM = errors.New("VM does not exist") + ErrVMAlreadyExists = errors.New("VM already exists") ) type Download struct { |