diff options
author | Jason T. Greene <jason.greene@redhat.com> | 2022-05-11 16:42:18 -0500 |
---|---|---|
committer | Jason T. Greene <jason.greene@redhat.com> | 2022-05-15 12:01:05 -0500 |
commit | 44d253b6c0346319e88287cb14e7e0b2769ccdf9 (patch) | |
tree | 90617c8670f3b3b7230b4c5b6dd78595d3c42a10 /cmd/podman/machine/machine_unix.go | |
parent | a87bba317e403c69b38c65958f2121d7e3f8a58e (diff) | |
download | podman-44d253b6c0346319e88287cb14e7e0b2769ccdf9.tar.gz podman-44d253b6c0346319e88287cb14e7e0b2769ccdf9.tar.bz2 podman-44d253b6c0346319e88287cb14e7e0b2769ccdf9.zip |
Add support for machine events on Windows
Signed-off-by: Jason T. Greene <jason.greene@redhat.com>
Diffstat (limited to 'cmd/podman/machine/machine_unix.go')
-rw-r--r-- | cmd/podman/machine/machine_unix.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cmd/podman/machine/machine_unix.go b/cmd/podman/machine/machine_unix.go new file mode 100644 index 000000000..213c24f8c --- /dev/null +++ b/cmd/podman/machine/machine_unix.go @@ -0,0 +1,12 @@ +//go:build linux || ignore || aix || ignore || android || ignore || darwin || ignore || freebsd || ignore || hurd || ignore || illumos || ignore || ios || ignore || netbsd || ignore || openbsd || ignore || solaris +// +build linux ignore aix ignore android ignore darwin ignore freebsd ignore hurd ignore illumos ignore ios ignore netbsd ignore openbsd ignore solaris + +package machine + +import ( + "os" +) + +func isUnixSocket(file os.DirEntry) bool { + return file.Type()&os.ModeSocket != 0 +} |