Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DockerfilesFolder = filepath.Join(".", "dockerfiles") CodeFolder = filepath.Join(".", "code") )
View Source
var DefaultRunnerOptions = RunnerOptions{ DockerfileBasePath: filepath.Join(".", "dockerfile_bases", "Dockerfile_base"), Stdin: os.Stdin, Stdout: os.Stdout, Stderr: os.Stderr, Interactive: false, Timeout: 0, }
View Source
var (
UnrecoverableError = errors.New("Server error")
)
Functions ¶
func FreeAllResources ¶
func FreeAllResources()
func SetCodeFolder ¶
func SetCodeFolder(newCodeFolder string)
func SetDockerfilesFolder ¶
func SetDockerfilesFolder(newDockerfilesFolder string)
Types ¶
type ErrorDetail ¶
type ErrorDetail struct {
Message string `json:"message"`
}
type ErrorLine ¶
type ErrorLine struct { Error string `json:"error"` ErrorDetail ErrorDetail `json:"errorDetail"` }
type Runner ¶
type Runner struct { ID string Language languages.Language Context context.Context Client *client.Client CodePath string DockerfilePath string Code []byte Options RunnerOptions }
func (*Runner) BuildImage ¶
func (*Runner) CreateCodeFileFromBytes ¶
func (*Runner) CreateDockerfile ¶
func (*Runner) FreeResources ¶
func (r *Runner) FreeResources()
func (*Runner) InitializeContainer ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.