Documentation
¶
Index ¶
- Constants
- func InstallModule()
- func JsFsAccessAsync(path string, mode int, callback progpAPI.JsFunction)
- func JsFsAccessSync(path string, mode int) error
- func JsFsAppendFileBytesSync(filePath string, data []byte, mode uint32, flag int) error
- func JsFsAppendFileTexSync(filePath string, data string, mode uint32, flag int) error
- func JsFsChmodAsync(path string, mode uint32, callback progpAPI.JsFunction)
- func JsFsChmodSync(path string, mode uint32) error
- func JsFsChownAsync(path string, uid int, gid int, callback progpAPI.JsFunction)
- func JsFsChownSync(path string, uid int, gid int) error
- func JsFsCopyFileAsync(sourcePath, destPath string, callback progpAPI.JsFunction)
- func JsFsCopyFileSync(sourcePath, destPath string) error
- func JsFsExistsAsync(path string, callback progpAPI.JsFunction)
- func JsFsExistsSync(path string) bool
- func JsFsLinkAsync(existingPath, newPath string, callback progpAPI.JsFunction)
- func JsFsLinkSync(existingPath, newPath string) error
- func JsFsMkdirAsync(dirPath string, recursive bool, flag uint32, callback progpAPI.JsFunction)
- func JsFsMkdirSync(dirPath string, recursive bool, flag uint32) error
- func JsFsMkdtempAsync(prefix string, callback progpAPI.JsFunction)
- func JsFsMkdtempSync(prefix string) (string, error)
- func JsFsReadFileBytesSync(path string) ([]byte, error)
- func JsFsReadFileUtf8Sync(path string) (progpAPI.StringBuffer, error)
- func JsFsReadlinkSync(filePath string) (string, error)
- func JsFsRealpathSync(filePath string) (string, error)
- func JsFsRenameSync(oldPath, newPath string) error
- func JsFsRmSync(dirPath string, recursive bool, force bool) error
- func JsFsStatAsync(path string, throwErrorIfMissing bool, callback progpAPI.JsFunction)
- func JsFsSymLinkAsync(existingPath, newPath string, callback progpAPI.JsFunction)
- func JsFsSymLinkSync(existingPath, newPath string) error
- func JsFsTruncateAsync(path string, length int64, callback progpAPI.JsFunction)
- func JsFsTruncateSync(path string, length int64) error
- func JsFsUnlinkAsync(filePath string, callback progpAPI.JsFunction)
- func JsFsUnlinkSync(filePath string) error
- func JsOsHomeDir() (string, error)
- func JsOsHostName() (string, error)
- func JsOsTempDir() string
- func JsProcessArch() string
- func JsProcessArgV() []string
- func JsProcessChDir(dir string) error
- func JsProcessCwd() string
- func JsProcessEnv() progpAPI.StringBuffer
- func JsProcessExit(code int)
- func JsProcessGetUid() int
- func JsProcessKill(pid int, signal int) error
- func JsProcessNextTickAsync(fct progpAPI.JsFunction)
- func JsProcessPID() int
- func JsProcessParentPID() int
- func JsProcessPlatform() string
- type FsConst
- type FsFileState
Constants ¶
View Source
const ( FSCONST__UV_FS_SYMLINK_DIR FsConst = 1 FSCONST__UV_FS_SYMLINK_JUNCTION = 2 FSCONST__O_RDONLY = 0 FSCONST__O_WRONLY = 1 FSCONST__O_RDWR = 2 FSCONST__UV_DIRENT_UNKNOWN = 0 FSCONST__UV_DIRENT_FILE = 1 FSCONST__UV_DIRENT_DIR = 2 FSCONST__UV_DIRENT_LINK = 3 FSCONST__UV_DIRENT_FIFO = 4 FSCONST__UV_DIRENT_SOCKET = 5 FSCONST__UV_DIRENT_CHAR = 6 FSCONST__UV_DIRENT_BLOCK = 7 FSCONST__EXTENSIONLESS_FORMAT_JAVASCRIPT = 0 FSCONST__EXTENSIONLESS_FORMAT_WASM = 1 FSCONST__S_IFMT = 61440 FSCONST__S_IFREG = 32768 FSCONST__S_IFDIR = 16384 FSCONST__S_IFCHR = 8192 FSCONST__S_IFBLK = 24576 FSCONST__S_IFIFO = 4096 FSCONST__S_IFLNK = 40960 FSCONST__S_IFSOCK = 49152 FSCONST__O_CREAT = 512 FSCONST__O_EXCL = 2048 FSCONST__UV_FS_O_FILEMAP = 0 FSCONST__O_NOCTTY = 131072 FSCONST__O_TRUNC = 1024 FSCONST__O_APPEND = 8 FSCONST__O_DIRECTORY = 1048576 FSCONST__O_NOFOLLOW = 256 FSCONST__O_SYNC = 128 FSCONST__O_DSYNC = 4194304 FSCONST__O_SYMLINK = 2097152 FSCONST__O_NONBLOCK = 4 FSCONST__S_IRWXU = 448 FSCONST__S_IRUSR = 256 FSCONST__S_IWUSR = 128 FSCONST__S_IXUSR = 64 FSCONST__S_IRWXG = 56 FSCONST__S_IRGRP = 32 FSCONST__S_IWGRP = 16 FSCONST__S_IXGRP = 8 FSCONST__S_IRWXO = 7 FSCONST__S_IROTH = 4 FSCONST__S_IWOTH = 2 FSCONST__S_IXOTH = 1 FSCONST__F_OK = 0 FSCONST__R_OK = 4 FSCONST__W_OK = 2 FSCONST__X_OK = 1 FSCONST__UV_FS_COPYFILE_EXCL = 1 FSCONST__COPYFILE_EXCL = 1 FSCONST__UV_FS_COPYFILE_FICLONE = 2 FSCONST__COPYFILE_FICLONE = 2 FSCONST__UV_FS_COPYFILE_FICLONE_FORCE = 4 FSCONST__COPYFILE_FICLONE_FORCE = 4 )
Variables ¶
This section is empty.
Functions ¶
func InstallModule ¶
func InstallModule()
func JsFsAccessAsync ¶
func JsFsAccessAsync(path string, mode int, callback progpAPI.JsFunction)
func JsFsAccessSync ¶
func JsFsAppendFileBytesSync ¶
func JsFsAppendFileTexSync ¶
func JsFsChmodAsync ¶
func JsFsChmodAsync(path string, mode uint32, callback progpAPI.JsFunction)
func JsFsChmodSync ¶
func JsFsChownAsync ¶
func JsFsChownAsync(path string, uid int, gid int, callback progpAPI.JsFunction)
func JsFsCopyFileAsync ¶
func JsFsCopyFileAsync(sourcePath, destPath string, callback progpAPI.JsFunction)
func JsFsCopyFileSync ¶
func JsFsExistsAsync ¶
func JsFsExistsAsync(path string, callback progpAPI.JsFunction)
func JsFsExistsSync ¶
func JsFsLinkAsync ¶
func JsFsLinkAsync(existingPath, newPath string, callback progpAPI.JsFunction)
func JsFsLinkSync ¶
func JsFsMkdirAsync ¶
func JsFsMkdirAsync(dirPath string, recursive bool, flag uint32, callback progpAPI.JsFunction)
func JsFsMkdtempAsync ¶
func JsFsMkdtempAsync(prefix string, callback progpAPI.JsFunction)
func JsFsMkdtempSync ¶
func JsFsReadFileBytesSync ¶
func JsFsReadFileUtf8Sync ¶
func JsFsReadFileUtf8Sync(path string) (progpAPI.StringBuffer, error)
func JsFsReadlinkSync ¶
func JsFsRealpathSync ¶
func JsFsRenameSync ¶
func JsFsStatAsync ¶
func JsFsStatAsync(path string, throwErrorIfMissing bool, callback progpAPI.JsFunction)
func JsFsSymLinkAsync ¶
func JsFsSymLinkAsync(existingPath, newPath string, callback progpAPI.JsFunction)
func JsFsSymLinkSync ¶
func JsFsTruncateAsync ¶
func JsFsTruncateAsync(path string, length int64, callback progpAPI.JsFunction)
func JsFsTruncateSync ¶
func JsFsUnlinkAsync ¶
func JsFsUnlinkAsync(filePath string, callback progpAPI.JsFunction)
func JsFsUnlinkSync ¶
func JsOsHomeDir ¶
func JsOsHostName ¶
func JsOsTempDir ¶
func JsOsTempDir() string
func JsProcessArch ¶
func JsProcessArch() string
func JsProcessArgV ¶
func JsProcessArgV() []string
func JsProcessChDir ¶
func JsProcessCwd ¶
func JsProcessCwd() string
func JsProcessEnv ¶
func JsProcessEnv() progpAPI.StringBuffer
func JsProcessExit ¶
func JsProcessExit(code int)
func JsProcessGetUid ¶
func JsProcessGetUid() int
func JsProcessKill ¶
func JsProcessNextTickAsync ¶
func JsProcessNextTickAsync(fct progpAPI.JsFunction)
func JsProcessPID ¶
func JsProcessPID() int
func JsProcessParentPID ¶
func JsProcessParentPID() int
func JsProcessPlatform ¶
func JsProcessPlatform() string
Types ¶
type FsFileState ¶
type FsFileState struct {
Mode uint16 `json:"mode"`
Size int64 `json:"size"`
Gid uint32 `json:"gid"`
Uid uint32 `json:"uid"`
Dev int32 `json:"dev"`
Rdev int32 `json:"rdev"`
Ino uint64 `json:"ino"`
Nlink uint16 `json:"nlink"`
Blksize int32 `json:"blksize"`
Blocks int64 `json:"blocks"`
ATimeMs int64 `json:"atimeMs"`
Atime string `json:"atime"`
MTimeMs int64 `json:"mtimeMs"`
Mtime string `json:"mtime"`
CTimeMs int64 `json:"ctimeMs"`
Ctime string `json:"ctime"`
BirthtimeMs int64 `json:"birthtimeMs"`
Birthtime string `json:"birthtime"`
}
func JsFsStatSync ¶
func JsFsStatSync(path string, throwErrorIfMissing bool) (*FsFileState, error)
Click to show internal directories.
Click to hide internal directories.