Documentation
¶
Index ¶
- Variables
- func Export(t *Task, export fs.FS)
- func GetWorker(t *Task) any
- func SetWorker(t *Task, worker any)
- type Factory
- type Resource
- type Task
- func (r *Task) Alias() string
- func (r *Task) Arg(idx int) string
- func (r *Task) Bind(srcPath, dstPath string) error
- func (r *Task) CloseFD(fd int) error
- func (r *Task) Cmd() string
- func (r *Task) Context() context.Context
- func (r *Task) Dir() string
- func (r *Task) Env() []string
- func (r *Task) Export() (fs.FS, error)
- func (r *Task) FD(fd int) (fs.File, string, error)
- func (r *Task) ID() string
- func (t *Task) Lookup(rid string) (*Task, error)
- func (r *Task) NS() *vfs.NS
- func (r *Task) Open(name string) (fs.File, error)
- func (r *Task) OpenContext(ctx context.Context, name string) (fs.File, error)
- func (r *Task) OpenFD(file fs.File, path string) int
- func (r *Task) Parent() *Task
- func (t *Task) Register(kind string, driver TaskDriver)
- func (r *Task) ResolveFS(ctx context.Context, name string) (fs.FS, string, error)
- func (r *Task) Root() *Task
- func (t *Task) Start() error
- func (t *Task) Tasks() (tasks []*Task)
- func (r *Task) Unbind(srcPath, dstPath string) error
- type TaskDriver
- type TaskFS
- func (d *TaskFS) Alloc(kind string, parent *Task) (*Task, error)
- func (t *TaskFS) Lookup(rid string) (*Task, error)
- func (d *TaskFS) Open(name string) (fs.File, error)
- func (d *TaskFS) OpenContext(ctx context.Context, name string) (fs.File, error)
- func (d *TaskFS) Register(kind string, driver TaskDriver)
- func (d *TaskFS) ResolveFS(ctx context.Context, name string) (fs.FS, string, error)
- func (d *TaskFS) Stat(name string) (fs.FileInfo, error)
- func (d *TaskFS) StatContext(ctx context.Context, name string) (fs.FileInfo, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ControlFile = misc.ControlFile
View Source
var FieldFile = misc.FieldFile
View Source
var (
TaskContextKey = &contextKey{"task"}
)
View Source
var Version string
Functions ¶
Types ¶
type Task ¶
type Task struct {
// contains filtered or unexported fields
}
func NewRootWithTasks ¶
func (*Task) OpenContext ¶
func (*Task) Register ¶
func (t *Task) Register(kind string, driver TaskDriver)
kludge: this would imply task specific registration, but its global. this is until we have a better registration system.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
wanix
command
|
|
|
gojs-export
command
|
|
|
repl-gojs
command
|
|
|
extras
|
|
|
hostexport
command
|
|
|
wexec
command
|
|
|
cowfs
Package cowfs implements a copy-on-write filesystem that combines a read-only base filesystem with a writable overlay filesystem.
|
Package cowfs implements a copy-on-write filesystem that combines a read-only base filesystem with a writable overlay filesystem. |
|
httpfs/fstest
command
|
|
|
tarfs
tarfs implements a read-only in-memory representation of a tar archive
|
tarfs implements a read-only in-memory representation of a tar archive |
|
shlex
Package shlex provides a simple lexical analysis like Unix shell.
|
Package shlex provides a simple lexical analysis like Unix shell. |
|
test
|
|
|
gojs
command
|
|
|
wasi/golang
command
|
|
|
wasi/tinygo
command
|
|
|
caches
Package caches provides a filesystem that exposes the browser's Cache API.
|
Package caches provides a filesystem that exposes the browser's Cache API. |
|
fsa
File System Access API
|
File System Access API |
Click to show internal directories.
Click to hide internal directories.