submitor

package
v0.0.0-...-9f22dab Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildImage

func BuildImage(imageName string)

func CreateContainer

func CreateContainer(submission *Submission)

func SetLogger

func SetLogger(logger *logrus.Logger)

Types

type BuildImageLog

type BuildImageLog struct {
	// contains filtered or unexported fields
}

type ContainerLog

type ContainerLog struct {
	ErrorType string
	Error     error
	Message   string
}

type FunctionType

type FunctionType string
const (
	String  FunctionType = "str"
	Int     FunctionType = "int"
	Float   FunctionType = "float"
	Complex FunctionType = "complex"
	List    FunctionType = "list"
	Dict    FunctionType = "dict"
)

type ImageBuildLog

type ImageBuildLog struct {
	ImageName string
	Error     string
}

type Submission

type Submission struct {
	ImageName     string
	ContainerName string
	BindedDir     string
	Command       []string
	TargetDir     string
}

type SubmitPayload

type SubmitPayload struct {
	Filename  string `json:"filename"`
	Stdout    bool   `json:"stdout"`
	Functions []struct {
		FunctionName string `json:"function_name"`
		FunctionArgs []struct {
			Type  string `json:"type"`
			Value string `json:"value"`
		} `json:"function_args"`
	} `json:"functions"`
}

Jump to

Keyboard shortcuts

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