docker

package
v0.0.0-...-da21aa5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MaxOutInBytes    int64 = 2 * 1024 * 1024
	ErrTooMuchOutPut       = errors.New("too much out put")
	ErrWorkerTimeOut       = errors.New("time out")
)
View Source
var (
	GccWorker  chan string
	GoWorker   chan string
	QuitSignal chan int
)

Functions

func CreateContainer

func CreateContainer(image string) (string, error)

func JobStop

func JobStop()

JobStop stop all jobs

func StartManagers

func StartManagers()

Types

type Job

type Job struct {
	Image   string // images name
	Payload io.Reader
}

func (*Job) Do

func (jb *Job) Do() (string, string, error)

type Worker

type Worker struct {
	Image string // images name
	// contains filtered or unexported fields
}

Worker store all infomations about the run job

func (*Worker) Run

func (w *Worker) Run() (string, string, error)

Run start a worker

Jump to

Keyboard shortcuts

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