diff options
author | Paul Holzinger <pholzing@redhat.com> | 2022-07-07 14:13:26 +0200 |
---|---|---|
committer | Paul Holzinger <pholzing@redhat.com> | 2022-07-07 20:48:28 +0200 |
commit | 4374038cc67405e3f5555b1870d5bb7f6570fa5d (patch) | |
tree | 4a4bbc64c1495563715ff9609c909dd574c78f19 /pkg/domain | |
parent | 4cfa8ccb27ba642fc78b37fa733fcd0d6271ad0f (diff) | |
download | podman-4374038cc67405e3f5555b1870d5bb7f6570fa5d.tar.gz podman-4374038cc67405e3f5555b1870d5bb7f6570fa5d.tar.bz2 podman-4374038cc67405e3f5555b1870d5bb7f6570fa5d.zip |
pkg/machine/e2e: do not import from cmd/podman
It should be avoided to import cmd/podman/... packages from outside of
cmd/podman. This can lead in weird hard to debug import paths but also
can have negative consequences when imported in unit tests. In this case
it will set XDG_CONFIG_HOME and thus the machine tests this dir over the
tmp HOME env variable which is set at a later point. This caused machine
files to be leaked into the actual users home dir.
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'pkg/domain')
-rw-r--r-- | pkg/domain/entities/machine.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/pkg/domain/entities/machine.go b/pkg/domain/entities/machine.go new file mode 100644 index 000000000..6ba53dbd1 --- /dev/null +++ b/pkg/domain/entities/machine.go @@ -0,0 +1,18 @@ +package entities + +type ListReporter struct { + Name string + Default bool + Created string + Running bool + Starting bool + LastUp string + Stream string + VMType string + CPUs uint64 + Memory string + DiskSize string + Port int + RemoteUsername string + IdentityPath string +} |