github.com/qichengzx/mattermost-server@v4.5.1-0.20180604164826-2c75247c97d0+incompatible/plugin/rpcplugin/sandbox/sandbox_other.go (about) 1 // Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. 2 // See License.txt for license information. 3 4 // +build !linux 5 6 package sandbox 7 8 import ( 9 "context" 10 "fmt" 11 "io" 12 13 "github.com/mattermost/mattermost-server/plugin/rpcplugin" 14 ) 15 16 func newProcess(ctx context.Context, config *Configuration, path string) (rpcplugin.Process, io.ReadWriteCloser, error) { 17 return nil, nil, checkSupport() 18 } 19 20 func checkSupport() error { 21 return fmt.Errorf("sandboxing is not supported on this platform") 22 }