github.com/apptainer/singularity@v3.1.1+incompatible/internal/pkg/util/exec/pipe_unsupported.go (about) 1 // Copyright (c) 2019, Sylabs Inc. All rights reserved. 2 // This software is licensed under a 3-clause BSD license. Please consult the 3 // LICENSE.md file distributed with the sources of this project regarding your 4 // rights to use or distribute this software. 5 6 // +build !linux 7 8 package exec 9 10 import ( 11 "fmt" 12 "os/exec" 13 ) 14 15 // Pipe execute a command with arguments and pass data over pipe 16 func Pipe(command string, args []string, env []string, data []byte) error { 17 return fmt.Errorf("unsupported on this platform") 18 } 19 20 // PipeCommand creates an exec.Command struct which will execute the starter binary 21 func PipeCommand(command string, args []string, env []string, data []byte) (*exec.Cmd, error) { 22 return nil, fmt.Errorf("unsupported on this platform") 23 } 24 25 // SetPipe sets the PIPE_EXEC_FD environment variable containing the JSON configuration data 26 func SetPipe(data []byte) (string, error) { 27 return "", fmt.Errorf("unsupported on this platform") 28 }