Documentation
¶
Index ¶
- func ApiMessage(code uint32, message string, description interface{}, path string) map[string]interface{}
- func ApiResponse(w http.ResponseWriter, data map[string]interface{})
- func ApiResponseByteArray(w http.ResponseWriter, data []byte)
- func ApiResponseZip(w http.ResponseWriter, data []byte)
- func AppendFile(fileName string, content string)
- func CreateDir(dirName string)
- func CreateFileIfNotExist(fileName string)
- func DoesFileExists(filename string) bool
- func GetCommandDetailsForEndedCommand(endedCommand *exec.Cmd) *models.CommandDetails
- func GetMessage() map[uint32]string
- func ReadFile(fileName string) string
- func RunCommand(command string) *models.CommandDetails
- func StartCommand(command string) *exec.Cmd
- func StartCommandAndGetError(command []string) error
- func StartCommands(commands []string) []*exec.Cmd
- func TrimSpacesAndLineEndings(data []string) []string
- func WriteFile(fileName string, content []byte)
- func WriteFileJson(fileName string, content interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApiMessage ¶
func ApiResponse ¶
func ApiResponse(w http.ResponseWriter, data map[string]interface{})
func ApiResponseByteArray ¶
func ApiResponseByteArray(w http.ResponseWriter, data []byte)
func ApiResponseZip ¶
func ApiResponseZip(w http.ResponseWriter, data []byte)
func AppendFile ¶
func CreateFileIfNotExist ¶
func CreateFileIfNotExist(fileName string)
func DoesFileExists ¶
func GetCommandDetailsForEndedCommand ¶
func GetCommandDetailsForEndedCommand(endedCommand *exec.Cmd) *models.CommandDetails
* ! The command must have already ended
func GetMessage ¶
func RunCommand ¶
func RunCommand(command string) *models.CommandDetails
func StartCommand ¶
func StartCommandAndGetError ¶
func StartCommands ¶
func WriteFileJson ¶
func WriteFileJson(fileName string, content interface{})
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.