summaryrefslogtreecommitdiffstats
path: root/plugin/rpcplugin/sandbox/sandbox_other.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/rpcplugin/sandbox/sandbox_other.go')
-rw-r--r--plugin/rpcplugin/sandbox/sandbox_other.go22
1 files changed, 22 insertions, 0 deletions
diff --git a/plugin/rpcplugin/sandbox/sandbox_other.go b/plugin/rpcplugin/sandbox/sandbox_other.go
new file mode 100644
index 000000000..3889ecdcc
--- /dev/null
+++ b/plugin/rpcplugin/sandbox/sandbox_other.go
@@ -0,0 +1,22 @@
+// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved.
+// See License.txt for license information.
+
+// +build !linux
+
+package sandbox
+
+import (
+ "context"
+ "fmt"
+ "io"
+
+ "github.com/mattermost/mattermost-server/plugin/rpcplugin"
+)
+
+func newProcess(ctx context.Context, config *Configuration, path string) (rpcplugin.Process, io.ReadWriteCloser, error) {
+ return nil, nil, checkSupport()
+}
+
+func checkSupport() error {
+ return fmt.Errorf("sandboxing is not supported on this platform")
+}