diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-04-27 16:02:57 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-27 16:02:57 -0400 |
commit | 60d6cc8e1eb33be2f9822e227a7cadf0dceb5543 (patch) | |
tree | cd1d4bc238100b3335471348b4c8d51caf4f82a7 /pkg/machine/config.go | |
parent | 9133a6d044c0ab525cc087ca12c1bbc005f5f325 (diff) | |
parent | e7390f30b95daf90c0f32e8cf963dce3f8d5cf9d (diff) | |
download | podman-60d6cc8e1eb33be2f9822e227a7cadf0dceb5543.tar.gz podman-60d6cc8e1eb33be2f9822e227a7cadf0dceb5543.tar.bz2 podman-60d6cc8e1eb33be2f9822e227a7cadf0dceb5543.zip |
Merge pull request #13953 from ashley-cui/mach
Allow changing of CPUs, Memory, and Disk Size
Diffstat (limited to 'pkg/machine/config.go')
-rw-r--r-- | pkg/machine/config.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pkg/machine/config.go b/pkg/machine/config.go index 5bbaf8c51..833f9cba8 100644 --- a/pkg/machine/config.go +++ b/pkg/machine/config.go @@ -95,7 +95,10 @@ type ListResponse struct { } type SetOptions struct { - Rootful bool + CPUs *uint64 + DiskSize *uint64 + Memory *uint64 + Rootful *bool } type SSHOptions struct { @@ -118,7 +121,7 @@ type InspectOptions struct{} type VM interface { Init(opts InitOptions) (bool, error) Remove(name string, opts RemoveOptions) (string, func() error, error) - Set(name string, opts SetOptions) error + Set(name string, opts SetOptions) ([]error, error) SSH(name string, opts SSHOptions) error Start(name string, opts StartOptions) error State(bypass bool) (Status, error) |