summaryrefslogtreecommitdiff
path: root/libpod/runtime_pod_unsupported.go
diff options
context:
space:
mode:
authorDoug Rabson <dfr@rabson.org>2022-08-12 10:51:48 +0100
committerDoug Rabson <dfr@rabson.org>2022-08-17 11:45:07 +0100
commit1b88927c2cf1db7b6530748d67528b5209d93b42 (patch)
tree1007201debe0b3697a12092cd2a15f4a64a748fa /libpod/runtime_pod_unsupported.go
parentc90eec2700d2e00a4b8f1e06ca640c034af5a530 (diff)
downloadpodman-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/runtime_pod_unsupported.go')
-rw-r--r--libpod/runtime_pod_unsupported.go30
1 files changed, 30 insertions, 0 deletions
diff --git a/libpod/runtime_pod_unsupported.go b/libpod/runtime_pod_unsupported.go
new file mode 100644
index 000000000..0c7ff8655
--- /dev/null
+++ b/libpod/runtime_pod_unsupported.go
@@ -0,0 +1,30 @@
+//go:build !linux
+// +build !linux
+
+package libpod
+
+import (
+ "context"
+ "errors"
+
+ "github.com/containers/podman/v4/pkg/specgen"
+)
+
+// NewPod makes a new, empty pod
+func (r *Runtime) NewPod(ctx context.Context, p specgen.PodSpecGenerator, options ...PodCreateOption) (_ *Pod, deferredErr error) {
+ return nil, errors.New("not implemented (*Runtime) NewPod")
+}
+
+// AddInfra adds the created infra container to the pod state
+func (r *Runtime) AddInfra(ctx context.Context, pod *Pod, infraCtr *Container) (*Pod, error) {
+ return nil, errors.New("not implemented (*Runtime) AddInfra")
+}
+
+// SavePod is a helper function to save the pod state from outside of libpod
+func (r *Runtime) SavePod(pod *Pod) error {
+ return errors.New("not implemented (*Runtime) SavePod")
+}
+
+func (r *Runtime) removePod(ctx context.Context, p *Pod, removeCtrs, force bool, timeout *uint) error {
+ return errors.New("not implemented (*Runtime) removePod")
+}