summaryrefslogtreecommitdiff
path: root/pkg/machine/config.go
diff options
context:
space:
mode:
authorAshley Cui <acui@redhat.com>2021-03-30 02:30:28 -0400
committerAshley Cui <acui@redhat.com>2021-03-30 14:56:21 -0400
commitef4e91a59eed957e56bf1536bc03df94cd096576 (patch)
tree4a72e690181c5e0bfada6e67424197b10d459b12 /pkg/machine/config.go
parent5e28b35aa511e699dffb2172458fda35ac01a4d2 (diff)
downloadpodman-ef4e91a59eed957e56bf1536bc03df94cd096576.tar.gz
podman-ef4e91a59eed957e56bf1536bc03df94cd096576.tar.bz2
podman-ef4e91a59eed957e56bf1536bc03df94cd096576.zip
Add podman machine list
podman machine list lists all virtual machines & indicates the default VM connection, if it exists. it also can take a --format flag arg as a go template. [NO TESTS NEEDED] Signed-off-by: Ashley Cui <acui@redhat.com>
Diffstat (limited to 'pkg/machine/config.go')
-rw-r--r--pkg/machine/config.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/pkg/machine/config.go b/pkg/machine/config.go
index 273deca00..554ea7c97 100644
--- a/pkg/machine/config.go
+++ b/pkg/machine/config.go
@@ -5,6 +5,7 @@ import (
"net/url"
"os"
"path/filepath"
+ "time"
"github.com/containers/storage/pkg/homedir"
"github.com/pkg/errors"
@@ -44,6 +45,16 @@ type Download struct {
VMName string
}
+type ListOptions struct{}
+
+type ListResponse struct {
+ Name string
+ CreatedAt time.Time
+ LastUp time.Time
+ Running bool
+ VMType string
+}
+
type SSHOptions struct {
Execute bool
Args []string