Documentation
¶
Index ¶
- type Error
- type Mount
- type MountResult
- type MountTable
- type MountTableResult
- type OpResult
- type Progress
- func (p *Progress) Close()
- func (p *Progress) Describe() ([]byte, *Error)
- func (p *Progress) Dump() ([]byte, *Error)
- func (p *Progress) ResumeCall(result []byte) OpResult
- func (p *Progress) ResumeFutures(result []byte) OpResult
- func (p *Progress) ResumeLookup(result []byte) OpResult
- func (p *Progress) ResumeOS(table *MountTable, defaultOnMiss bool) (OpResult, bool)
- func (p *Progress) TakeRepl() ReplResult
- type Repl
- type ReplResult
- type Runner
- type RunnerResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error is an owned handle for a Monty error object.
type Mount ¶
type Mount struct {
// contains filtered or unexported fields
}
Mount is an owned handle for an opened host directory mount.
type MountResult ¶
MountResult wraps mount construction results.
func NewMount ¶
func NewMount(options []byte) MountResult
NewMount opens a host directory mount from serialized options.
type MountTable ¶
type MountTable struct {
// contains filtered or unexported fields
}
MountTable is an owned handle for the mounts of one run or feed.
type MountTableResult ¶
type MountTableResult struct {
Table *MountTable
Error *Error
}
MountTableResult wraps mount table construction results.
func NewMountTable ¶
func NewMountTable(mounts []*Mount) MountTableResult
NewMountTable builds a fresh mount table from open mounts. Overlay writes and write budgets are scoped to the returned table.
type OpResult ¶
type OpResult struct {
Progress *Progress
ProgressPayload []byte
Repl *Repl
Error *Error
Prints string
}
OpResult wraps start/resume/feed operations.
func LoadProgress ¶
LoadProgress restores a serialized progress handle.
type Progress ¶
type Progress struct {
// contains filtered or unexported fields
}
Progress is an owned handle for an in-flight Monty snapshot.
func (*Progress) ResumeCall ¶
ResumeCall resumes a function or OS-call progress handle.
func (*Progress) ResumeFutures ¶
ResumeFutures resumes a future-resolution progress handle.
func (*Progress) ResumeLookup ¶
ResumeLookup resumes a name-lookup progress handle.
func (*Progress) ResumeOS ¶
func (p *Progress) ResumeOS(table *MountTable, defaultOnMiss bool) (OpResult, bool)
ResumeOS answers an OS-call progress handle from a mount table, which may be nil. It reports false, leaving the progress untouched, when no mount covers the call and defaultOnMiss is false. With defaultOnMiss, unhandled calls raise Monty's no-handler error (PermissionError for filesystem calls).
func (*Progress) TakeRepl ¶
func (p *Progress) TakeRepl() ReplResult
TakeRepl extracts a REPL handle from a progress object.
type Repl ¶
type Repl struct {
// contains filtered or unexported fields
}
Repl is an owned handle for a Monty REPL session.
type ReplResult ¶
ReplResult wraps REPL construction or load results.
func NewRepl ¶
func NewRepl(options []byte) ReplResult
NewRepl constructs a new REPL from JSON options.
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
Runner is an owned handle for a compiled Monty runner.
type RunnerResult ¶
RunnerResult wraps runner construction or load results.
func LoadRunner ¶
func LoadRunner(data []byte) RunnerResult
LoadRunner restores a runner from a serialized byte slice.
func NewRunner ¶
func NewRunner(code []byte, options []byte) RunnerResult
NewRunner constructs a compiled runner from source code plus JSON options.