Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CachedFile ¶ added in v0.5.0
type CachedFile struct {
FileID string
}
CachedFile defines file cached in the file store
type Cmd ¶
type Cmd struct {
Args []string
Env []string
Files []CmdFile
CPULimit uint64
RealCPULimit uint64
MemoryLimit uint64
ProcLimit uint64
CopyIn map[string]CmdFile
CopyOut []string
CopyOutCached []string
CopyOutDir string
}
Cmd defines command and limits to start a program using in envexec
type CmdFile ¶
type CmdFile interface {
// EnvFile prepares file for envexec file
EnvFile(fs filestore.FileStore) (interface{}, error)
}
CmdFile defines file used in the cmd
type LocalFile ¶ added in v0.5.0
type LocalFile struct {
Src string
}
LocalFile defines file stores on the local file system
type MemoryFile ¶ added in v0.5.0
type MemoryFile struct {
Content []byte
}
MemoryFile defines file stores in the memory
type PipeCollector ¶ added in v0.5.0
type PipeCollector struct {
Name string // pseudo name generated into copyOut
Max int64 // max size to be collected
}
PipeCollector defines on the output (stdout / stderr) to be collected over pipe
type Result ¶
type Result struct {
Status envexec.Status
ExitStatus int
Error string
Time uint64
Memory uint64
Files map[string][]byte
FileIDs map[string]string
}
Result defines single command response
Click to show internal directories.
Click to hide internal directories.