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/oci_conmon_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/oci_conmon_unsupported.go')
-rw-r--r-- | libpod/oci_conmon_unsupported.go | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/libpod/oci_conmon_unsupported.go b/libpod/oci_conmon_unsupported.go new file mode 100644 index 000000000..c72dc0f0d --- /dev/null +++ b/libpod/oci_conmon_unsupported.go @@ -0,0 +1,24 @@ +//go:build !linux +// +build !linux + +package libpod + +import ( + "errors" + + "github.com/containers/common/pkg/config" + "github.com/containers/common/pkg/resize" +) + +// Make a new Conmon-based OCI runtime with the given options. +// Conmon will wrap the given OCI runtime, which can be `runc`, `crun`, or +// any runtime with a runc-compatible CLI. +// The first path that points to a valid executable will be used. +// Deliberately private. Someone should not be able to construct this outside of +// libpod. +func newConmonOCIRuntime(name string, paths []string, conmonPath string, runtimeFlags []string, runtimeCfg *config.Config) (OCIRuntime, error) { + return nil, errors.New("newConmonOCIRuntime not supported on this platform") +} + +func registerResizeFunc(r <-chan resize.TerminalSize, bundlePath string) { +} |