api

package
v0.0.0-...-d841fba Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2017 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RunRequest

type RunRequest struct {
	BinUri    string        `json:"bin_uri"`    // location of binary .tar
	RootfsUri string        `json:"rootfs_uri"` // location of rootfs .tar
	Timeout   time.Duration `json:"timeout"`    // cpu time limit
	MemLimit  int64         `json:"mem_limit"`  // memory limit in bytes
	Command   []string      `json:"command"`    // startup command
	Stdin     string        `json:"stdin"`      // stdin
}

type RunResponse

type RunResponse struct {
	RuntimeStats *cgroups.Stats `json:"runtime_stats"`
	// stdout is graded, stderr is not
	Stdout string `"json:stdout"`
	Stderr string `"json:stderr"`
}

Jump to

Keyboard shortcuts

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