Documentation
¶
Overview ¶
Package dagger is the first attempt at an API for webassembly modules to communicate with the outside world. It is based on the idea of files being used as the intermediate between user modules and resources.
Consider this the first draft of Dagger, everything here is subject to change. This is going to be the experimental phase.
Index ¶
- type Errno
- type Error
- type Process
- func (p *Process) CloseFD(fd int64) int64
- func (p Process) Files() []abi.File
- func (p *Process) Name() string
- func (p *Process) Open(f abi.File)
- func (p *Process) OpenFD(furl string, flags uint32) int64
- func (p *Process) ReadFD(fd int64, buf []byte) int64
- func (p *Process) ResolveFunc(module, field string) exec.FunctionImport
- func (p *Process) ResolveGlobal(module, field string) int64
- func (p *Process) SyncFD(fd int64) int64
- func (p *Process) WriteFD(fd int64, data []byte) int64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Process ¶
type Process struct {
// contains filtered or unexported fields
}
Process is a higher level wrapper around a set of files for dagger modules.
func (*Process) OpenFD ¶
OpenFD opens a file descriptor for this Process with the given file url string and flags integer.
func (*Process) ResolveFunc ¶
func (p *Process) ResolveFunc(module, field string) exec.FunctionImport
ResolveFunc resolves dagger's ABI and importable functions.
func (*Process) ResolveGlobal ¶
ResolveGlobal does nothing, currently.