summaryrefslogtreecommitdiff
path: root/pkg/specgen/generate/oci_unsupported.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-09-01 10:47:47 +0200
committerGitHub <noreply@github.com>2022-09-01 10:47:47 +0200
commit009afb50b308548eb129bc68e654db6c6ad82e7a (patch)
tree13f70461e3e03e64f768e849e03b4e6233d5b363 /pkg/specgen/generate/oci_unsupported.go
parent54873c1f5e8fcdcbfe3b4b7e67ce2b489aa43577 (diff)
parent4781bc7fe7ef33c5d1f1892b2da274ed3d4bd6c8 (diff)
downloadpodman-009afb50b308548eb129bc68e654db6c6ad82e7a.tar.gz
podman-009afb50b308548eb129bc68e654db6c6ad82e7a.tar.bz2
podman-009afb50b308548eb129bc68e654db6c6ad82e7a.zip
Merge pull request #15560 from dfr/freebsd-specgen
Add FreeBSD support for pkg/specgen/generate
Diffstat (limited to 'pkg/specgen/generate/oci_unsupported.go')
-rw-r--r--pkg/specgen/generate/oci_unsupported.go24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkg/specgen/generate/oci_unsupported.go b/pkg/specgen/generate/oci_unsupported.go
new file mode 100644
index 000000000..7e1b8c42c
--- /dev/null
+++ b/pkg/specgen/generate/oci_unsupported.go
@@ -0,0 +1,24 @@
+//go:build !linux && !freebsd
+// +build !linux,!freebsd
+
+package generate
+
+import (
+ "context"
+ "errors"
+
+ "github.com/containers/common/libimage"
+ "github.com/containers/common/pkg/config"
+ "github.com/containers/podman/v4/libpod"
+ "github.com/containers/podman/v4/pkg/specgen"
+ spec "github.com/opencontainers/runtime-spec/specs-go"
+)
+
+// SpecGenToOCI returns the base configuration for the container.
+func SpecGenToOCI(ctx context.Context, s *specgen.SpecGenerator, rt *libpod.Runtime, rtc *config.Config, newImage *libimage.Image, mounts []spec.Mount, pod *libpod.Pod, finalCmd []string, compatibleOptions *libpod.InfraInherit) (*spec.Spec, error) {
+ return nil, errors.New("unsupported SpecGenToOCI")
+}
+
+func WeightDevices(wtDevices map[string]spec.LinuxWeightDevice) ([]spec.LinuxWeightDevice, error) {
+ return []spec.LinuxWeightDevice{}, errors.New("unsupported WeightDevices")
+}