diff options
author | W. Trevor King <wking@tremily.us> | 2018-06-29 14:18:30 -0700 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-07-05 12:47:10 +0000 |
commit | baa42fd4bd295be9232cde8e528841d3e8fd7d35 (patch) | |
tree | 51a695a7a1cc0a3611cc29d558d9097a2b863d31 /libpod/container_windows.go | |
parent | 49fe03c626dc10781f2d3241a489c95515af9db4 (diff) | |
download | podman-baa42fd4bd295be9232cde8e528841d3e8fd7d35.tar.gz podman-baa42fd4bd295be9232cde8e528841d3e8fd7d35.tar.bz2 podman-baa42fd4bd295be9232cde8e528841d3e8fd7d35.zip |
libpod/container: Replace containerState* with containerPlatformState
This way we don't need to stub in structures for other OSes (e.g. the
Darwin stub in a Linux-only file). Matthew was concerned about errors
unmarshalling, say, a Linux state object on a Windows box [1], but we
can address that in checks when loading the database [2].
[1]: https://github.com/projectatomic/libpod/pull/1015#discussion_r198649043
[2]: https://github.com/projectatomic/libpod/pull/1015#discussion_r198802956
Signed-off-by: W. Trevor King <wking@tremily.us>
Closes: #1033
Approved by: mheon
Diffstat (limited to 'libpod/container_windows.go')
-rw-r--r-- | libpod/container_windows.go | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/libpod/container_windows.go b/libpod/container_windows.go deleted file mode 100644 index db2bf24d7..000000000 --- a/libpod/container_windows.go +++ /dev/null @@ -1,14 +0,0 @@ -// +build windows - -package libpod - -type containerStateWindows struct { -} - -// containerStateLinux is intentionally left as a blank stub -type containerStateLinux struct { -} - -// containerStateDarwin is intentionally left as a blank stub -type containerStateDarwin struct { -} |