controller

package
v0.0.0-...-1f48986 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFilesToContainer

func CopyFilesToContainer(filenames []string, folderHostEnv string)

SOCK STREAM The Function Copies the Files in Host which are located in Folder with Docker ID

in the Host to Docker Contianer

func CreateContainerExecEnv

func CreateContainerExecEnv() string

The Function will be called at hostenvcreator.go::CreateRespectiveEnvOfLanguage()

func CreateOutputErrors

func CreateOutputErrors(language_id int)

func CreateRespectiveEnvOfLanguage

func CreateRespectiveEnvOfLanguage(language_id int, path string, defualt_template_env_path string) (string, string)

To Create Clone Files of Source Code to Move the Code to the Container and Keep and Copy in the Host Env

func GetTheFilesFromContainer

func GetTheFilesFromContainer(filenames []string, container_id string)

func ReturnContantLanguageid

func ReturnContantLanguageid() []string

func ReturnFilesList

func ReturnFilesList(language_id int) []string

func StopContainer

func StopContainer(containerId string) bool

To Stop the Running Container

func StopContainerEnv

func StopContainerEnv(id string)

Types

type OutputTeplStr

type OutputTeplStr struct {
	Code   string
	Output string
	Errors string
	Input  string
}

func Runcode

func Runcode(language_id int, code string, input_for_code string) OutputTeplStr

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL