summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2020-03-21 00:11:42 +0100
committerMiloslav Trmač <mitr@redhat.com>2020-03-21 00:21:59 +0100
commitde7bcca7d5b0129329b6b08fd241cdc1a768bafb (patch)
tree96390dd07ec28b99cf2badd2f9228abe272d4216 /cmd
parent8153ea358a82c044abfd2fa575c2cbf7e441fd2c (diff)
downloadpodman-de7bcca7d5b0129329b6b08fd241cdc1a768bafb.tar.gz
podman-de7bcca7d5b0129329b6b08fd241cdc1a768bafb.tar.bz2
podman-de7bcca7d5b0129329b6b08fd241cdc1a768bafb.zip
Add stubs for cmd/podman in non-Linux local mode
This is _only_ to be able able to run unit tests. I didn't even TRY running the result, I'm scared of what it would do. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/podman/main_local_unsupported.go44
1 files changed, 44 insertions, 0 deletions
diff --git a/cmd/podman/main_local_unsupported.go b/cmd/podman/main_local_unsupported.go
new file mode 100644
index 000000000..75728627e
--- /dev/null
+++ b/cmd/podman/main_local_unsupported.go
@@ -0,0 +1,44 @@
+// +build !remoteclient,!linux
+
+package main
+
+// The ONLY purpose of this file is to allow the subpackage to compile. Don’t expect anything
+// to work.
+
+import (
+ "syscall"
+
+ "github.com/spf13/cobra"
+)
+
+const remote = false
+
+func setSyslog() error {
+ return nil
+}
+
+func profileOn(cmd *cobra.Command) error {
+ return nil
+}
+
+func profileOff(cmd *cobra.Command) error {
+ return nil
+}
+
+func setupRootless(cmd *cobra.Command, args []string) error {
+ return nil
+}
+
+func setRLimits() error {
+ return nil
+}
+
+func setUMask() {
+ // Be sure we can create directories with 0755 mode.
+ syscall.Umask(0022)
+}
+
+// checkInput can be used to verify any of the globalopt values
+func checkInput() error {
+ return nil
+}