diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-12-26 13:26:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-26 13:26:07 +0100 |
commit | e06631d6c22f4d5b7a62f70ccdf623379a9d5fe7 (patch) | |
tree | 54fe3a08b58b9129f87e51cd1b8fcd938f582777 /pkg/machine/config.go | |
parent | 73a54ea54d0a1b4ccaa2a0e23c678e5b7c1d5c37 (diff) | |
parent | 803defbe509af1902a1fdc2ed7f41b49ebd241f6 (diff) | |
download | podman-e06631d6c22f4d5b7a62f70ccdf623379a9d5fe7.tar.gz podman-e06631d6c22f4d5b7a62f70ccdf623379a9d5fe7.tar.bz2 podman-e06631d6c22f4d5b7a62f70ccdf623379a9d5fe7.zip |
Merge pull request #12503 from n1hility/wsl-machine
Introduce Windows WSL implementation of podman machine
Diffstat (limited to 'pkg/machine/config.go')
-rw-r--r-- | pkg/machine/config.go | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/pkg/machine/config.go b/pkg/machine/config.go index e5e701303..4f2947ac0 100644 --- a/pkg/machine/config.go +++ b/pkg/machine/config.go @@ -1,4 +1,4 @@ -// +build amd64,!windows arm64,!windows +// +build amd64 arm64 package machine @@ -24,6 +24,15 @@ type InitOptions struct { TimeZone string URI url.URL Username string + ReExec bool +} + +type Provider interface { + NewMachine(opts InitOptions) (VM, error) + LoadVMByName(name string) (VM, error) + List(opts ListOptions) ([]*ListResponse, error) + IsValidVMName(name string) (bool, error) + CheckExclusiveActiveVM() (bool, string, error) } type RemoteConnectionType string @@ -49,6 +58,7 @@ type Download struct { Sha256sum string URL *url.URL VMName string + Size int64 } type ListOptions struct{} @@ -81,7 +91,7 @@ type RemoveOptions struct { } type VM interface { - Init(opts InitOptions) error + Init(opts InitOptions) (bool, error) Remove(name string, opts RemoveOptions) (string, func() error, error) SSH(name string, opts SSHOptions) error Start(name string, opts StartOptions) error @@ -89,7 +99,7 @@ type VM interface { } type DistributionDownload interface { - DownloadImage() error + HasUsableCache() (bool, error) Get() *Download } |