Documentation ¶
Index ¶
- Variables
- func NewIsolate(id int) language.Sandbox
- type Dummy
- func (s *Dummy) AddArg(string) language.Sandbox
- func (s *Dummy) Cleanup() error
- func (s *Dummy) CreateFile(name string, r io.Reader) error
- func (s *Dummy) Env() language.Sandbox
- func (s Dummy) GetFile(name string) (io.Reader, error)
- func (s Dummy) Id() string
- func (s *Dummy) Init(logger *log.Logger) error
- func (s Dummy) MakeExecutable(name string) error
- func (s *Dummy) MapDir(x string, y string, i []string, b bool) language.Sandbox
- func (s *Dummy) MemoryLimit(int) language.Sandbox
- func (s Dummy) Pwd() string
- func (s *Dummy) Run(prg string, needStatus bool) (language.Status, error)
- func (s *Dummy) SetEnv(env string) language.Sandbox
- func (s *Dummy) SetMaxProcesses(i int) language.Sandbox
- func (s *Dummy) Stderr(writer io.Writer) language.Sandbox
- func (s *Dummy) Stdin(reader io.Reader) language.Sandbox
- func (s *Dummy) Stdout(writer io.Writer) language.Sandbox
- func (s *Dummy) TimeLimit(tl time.Duration) language.Sandbox
- func (s *Dummy) Verbose() language.Sandbox
- func (s *Dummy) WorkingDirectory(dir string) language.Sandbox
- type Isolate
- func (s *Isolate) AddArg(a string) language.Sandbox
- func (s *Isolate) Cleanup() error
- func (s *Isolate) ClearArguments()
- func (s *Isolate) CreateFile(name string, r io.Reader) error
- func (s *Isolate) Env() language.Sandbox
- func (s *Isolate) GetFile(name string) (io.Reader, error)
- func (s *Isolate) Id() string
- func (s *Isolate) Init(l *log.Logger) error
- func (s *Isolate) MakeExecutable(name string) error
- func (s *Isolate) MapDir(src string, dest string, opts []string, checkExists bool) language.Sandbox
- func (s *Isolate) MemoryLimit(ml int) language.Sandbox
- func (s *Isolate) Pwd() string
- func (s *Isolate) Run(args string, needStatus bool) (language.Status, error)
- func (s *Isolate) SetEnv(e string) language.Sandbox
- func (s *Isolate) SetMaxProcesses(num int) language.Sandbox
- func (s *Isolate) Stderr(writer io.Writer) language.Sandbox
- func (s *Isolate) Stdin(reader io.Reader) language.Sandbox
- func (s *Isolate) Stdout(writer io.Writer) language.Sandbox
- func (s *Isolate) TimeLimit(tl time.Duration) language.Sandbox
- func (s *Isolate) Verbose() language.Sandbox
- func (s *Isolate) WorkingDirectory(wd string) language.Sandbox
- type PrefixBuffer
Constants ¶
This section is empty.
Variables ¶
View Source
var IsolateRoot = getEnv("ISOLATE_ROOT", "/var/local/lib/isolate/")
Functions ¶
func NewIsolate ¶
Types ¶
type Dummy ¶
type Dummy struct {
// contains filtered or unexported fields
}
func (Dummy) MakeExecutable ¶
type Isolate ¶
type Isolate struct {
// contains filtered or unexported fields
}
func (*Isolate) ClearArguments ¶
func (s *Isolate) ClearArguments()
func (*Isolate) MakeExecutable ¶
type PrefixBuffer ¶ added in v0.2.0
func NewPrefixBuffer ¶ added in v0.2.0
func NewPrefixBuffer(w io.Writer, len int) *PrefixBuffer
func (*PrefixBuffer) Prefix ¶ added in v0.2.0
func (pb *PrefixBuffer) Prefix() []byte
Click to show internal directories.
Click to hide internal directories.