summaryrefslogtreecommitdiff
path: root/vendor/github.com/seccomp/containers-golang/conversion.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2020-09-11 13:34:59 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2020-09-11 13:37:37 -0400
commit08cc87636e456a084f6c4e70fe183bbec956b561 (patch)
tree011f74eca8389c5f5bf4c5344a86e8eb810b0628 /vendor/github.com/seccomp/containers-golang/conversion.go
parent4f040070b6e9e2213b1fb6daa1502353c90e172d (diff)
downloadpodman-08cc87636e456a084f6c4e70fe183bbec956b561.tar.gz
podman-08cc87636e456a084f6c4e70fe183bbec956b561.tar.bz2
podman-08cc87636e456a084f6c4e70fe183bbec956b561.zip
Vendor in containers/buildah 1.16.1
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'vendor/github.com/seccomp/containers-golang/conversion.go')
-rw-r--r--vendor/github.com/seccomp/containers-golang/conversion.go32
1 files changed, 0 insertions, 32 deletions
diff --git a/vendor/github.com/seccomp/containers-golang/conversion.go b/vendor/github.com/seccomp/containers-golang/conversion.go
deleted file mode 100644
index 05564487b..000000000
--- a/vendor/github.com/seccomp/containers-golang/conversion.go
+++ /dev/null
@@ -1,32 +0,0 @@
-package seccomp // import "github.com/seccomp/containers-golang"
-
-import "fmt"
-
-var goArchToSeccompArchMap = map[string]Arch{
- "386": ArchX86,
- "amd64": ArchX86_64,
- "amd64p32": ArchX32,
- "arm": ArchARM,
- "arm64": ArchAARCH64,
- "mips": ArchMIPS,
- "mips64": ArchMIPS64,
- "mips64le": ArchMIPSEL64,
- "mips64p32": ArchMIPS64N32,
- "mips64p32le": ArchMIPSEL64N32,
- "mipsle": ArchMIPSEL,
- "ppc": ArchPPC,
- "ppc64": ArchPPC64,
- "ppc64le": ArchPPC64LE,
- "s390": ArchS390,
- "s390x": ArchS390X,
-}
-
-// GoArchToSeccompArch converts a runtime.GOARCH to a seccomp `Arch`. The
-// function returns an error if the architecture conversion is not supported.
-func GoArchToSeccompArch(goArch string) (Arch, error) {
- arch, ok := goArchToSeccompArchMap[goArch]
- if !ok {
- return "", fmt.Errorf("unsupported go arch provided: %s", goArch)
- }
- return arch, nil
-}