Versions in this module Expand all Collapse all v0 v0.8.7 Aug 25, 2023 Changes in this version + func ExportHostFunctions(env wazero.HostModuleBuilder) wazero.HostModuleBuilder + func Register(name string, vfs VFS) + func Unregister(name string) + type AccessFlag uint32 + const ACCESS_EXISTS + const ACCESS_READ + const ACCESS_READWRITE + type DeviceCharacteristic uint32 + const IOCAP_ATOMIC + const IOCAP_ATOMIC16K + const IOCAP_ATOMIC1K + const IOCAP_ATOMIC2K + const IOCAP_ATOMIC32K + const IOCAP_ATOMIC4K + const IOCAP_ATOMIC512 + const IOCAP_ATOMIC64K + const IOCAP_ATOMIC8K + const IOCAP_BATCH_ATOMIC + const IOCAP_IMMUTABLE + const IOCAP_POWERSAFE_OVERWRITE + const IOCAP_SAFE_APPEND + const IOCAP_SEQUENTIAL + const IOCAP_UNDELETABLE_WHEN_OPEN + type File interface + CheckReservedLock func() (bool, error) + Close func() error + DeviceCharacteristics func() DeviceCharacteristic + Lock func(lock LockLevel) error + ReadAt func(p []byte, off int64) (n int, err error) + SectorSize func() int + Size func() (int64, error) + Sync func(flags SyncFlag) error + Truncate func(size int64) error + Unlock func(lock LockLevel) error + WriteAt func(p []byte, off int64) (n int, err error) + type FileBatchAtomicWrite interface + BeginAtomicWrite func() error + CommitAtomicWrite func() error + RollbackAtomicWrite func() error + type FileCommitPhaseTwo interface + CommitPhaseTwo func() error + type FileHasMoved interface + HasMoved func() (bool, error) + type FileLockState interface + LockState func() LockLevel + type FilePowersafeOverwrite interface + PowersafeOverwrite func() bool + SetPowersafeOverwrite func(bool) + type FileSizeHint interface + SizeHint func(size int64) error + type LockLevel uint32 + const LOCK_EXCLUSIVE + const LOCK_NONE + const LOCK_PENDING + const LOCK_RESERVED + const LOCK_SHARED + type OpenFlag uint32 + const OPEN_AUTOPROXY + const OPEN_CREATE + const OPEN_DELETEONCLOSE + const OPEN_EXCLUSIVE + const OPEN_FULLMUTEX + const OPEN_MAIN_DB + const OPEN_MAIN_JOURNAL + const OPEN_MEMORY + const OPEN_NOFOLLOW + const OPEN_NOMUTEX + const OPEN_PRIVATECACHE + const OPEN_READONLY + const OPEN_READWRITE + const OPEN_SHAREDCACHE + const OPEN_SUBJOURNAL + const OPEN_SUPER_JOURNAL + const OPEN_TEMP_DB + const OPEN_TEMP_JOURNAL + const OPEN_TRANSIENT_DB + const OPEN_URI + const OPEN_WAL + type SyncFlag uint32 + const SYNC_DATAONLY + const SYNC_FULL + const SYNC_NORMAL + type VFS interface + Access func(name string, flags AccessFlag) (bool, error) + Delete func(name string, syncDir bool) error + FullPathname func(name string) (string, error) + Open func(name string, flags OpenFlag) (File, OpenFlag, error) + func Find(name string) VFS + type VFSParams interface + OpenParams func(name string, flags OpenFlag, params url.Values) (File, OpenFlag, error)