diff options
author | Doug Rabson <dfr@rabson.org> | 2022-08-12 10:51:48 +0100 |
---|---|---|
committer | Doug Rabson <dfr@rabson.org> | 2022-08-17 11:45:07 +0100 |
commit | 1b88927c2cf1db7b6530748d67528b5209d93b42 (patch) | |
tree | 1007201debe0b3697a12092cd2a15f4a64a748fa /libpod/info_unsupported.go | |
parent | c90eec2700d2e00a4b8f1e06ca640c034af5a530 (diff) | |
download | podman-1b88927c2cf1db7b6530748d67528b5209d93b42.tar.gz podman-1b88927c2cf1db7b6530748d67528b5209d93b42.tar.bz2 podman-1b88927c2cf1db7b6530748d67528b5209d93b42.zip |
libpod: Add stubs for non-linux builds
Note: this makes info.go linux-only since it mixes linux-specific and
generic code. This should be addressed in a separate refactoring PR.
[NO NEW TESTS NEEDED]
Signed-off-by: Doug Rabson <dfr@rabson.org>
Diffstat (limited to 'libpod/info_unsupported.go')
-rw-r--r-- | libpod/info_unsupported.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libpod/info_unsupported.go b/libpod/info_unsupported.go new file mode 100644 index 000000000..53ee4b32f --- /dev/null +++ b/libpod/info_unsupported.go @@ -0,0 +1,14 @@ +//go:build !linux +// +build !linux + +package libpod + +import ( + "errors" + + "github.com/containers/podman/v4/libpod/define" +) + +func (r *Runtime) info() (*define.Info, error) { + return nil, errors.New("not implemented (*Runtime) info") +} |