modNodeJs

package
v2.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

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 JsFsAccessSync(path string, mode int) error

func JsFsAppendFileBytesSync

func JsFsAppendFileBytesSync(filePath string, data []byte, mode uint32, flag int) error

func JsFsAppendFileTexSync

func JsFsAppendFileTexSync(filePath string, data string, mode uint32, flag int) error

func JsFsChmodAsync

func JsFsChmodAsync(path string, mode uint32, callback progpAPI.JsFunction)

func JsFsChmodSync

func JsFsChmodSync(path string, mode uint32) error

func JsFsChownAsync

func JsFsChownAsync(path string, uid int, gid int, callback progpAPI.JsFunction)

func JsFsChownSync

func JsFsChownSync(path string, uid int, gid int) error

func JsFsCopyFileAsync

func JsFsCopyFileAsync(sourcePath, destPath string, callback progpAPI.JsFunction)

func JsFsCopyFileSync

func JsFsCopyFileSync(sourcePath, destPath string) error

func JsFsExistsAsync

func JsFsExistsAsync(path string, callback progpAPI.JsFunction)

func JsFsExistsSync

func JsFsExistsSync(path string) bool

func JsFsLinkAsync

func JsFsLinkAsync(existingPath, newPath string, callback progpAPI.JsFunction)

func JsFsLinkSync

func JsFsLinkSync(existingPath, newPath string) error

func JsFsMkdirAsync

func JsFsMkdirAsync(dirPath string, recursive bool, flag uint32, callback progpAPI.JsFunction)

func JsFsMkdirSync

func JsFsMkdirSync(dirPath string, recursive bool, flag uint32) error

func JsFsMkdtempAsync

func JsFsMkdtempAsync(prefix string, callback progpAPI.JsFunction)

func JsFsMkdtempSync

func JsFsMkdtempSync(prefix string) (string, error)

func JsFsReadFileBytesSync

func JsFsReadFileBytesSync(path string) ([]byte, error)

func JsFsReadFileUtf8Sync

func JsFsReadFileUtf8Sync(path string) (progpAPI.StringBuffer, error)

func JsFsReadlinkSync

func JsFsReadlinkSync(filePath string) (string, error)

func JsFsRealpathSync

func JsFsRealpathSync(filePath string) (string, error)

func JsFsRenameSync

func JsFsRenameSync(oldPath, newPath string) error

func JsFsRmSync

func JsFsRmSync(dirPath string, recursive bool, force bool) error

func JsFsStatAsync

func JsFsStatAsync(path string, throwErrorIfMissing bool, callback progpAPI.JsFunction)

func JsFsSymLinkAsync

func JsFsSymLinkAsync(existingPath, newPath string, callback progpAPI.JsFunction)

func JsFsSymLinkSync

func JsFsSymLinkSync(existingPath, newPath string) error

func JsFsTruncateAsync

func JsFsTruncateAsync(path string, length int64, callback progpAPI.JsFunction)

func JsFsTruncateSync

func JsFsTruncateSync(path string, length int64) error

func JsFsUnlinkAsync

func JsFsUnlinkAsync(filePath string, callback progpAPI.JsFunction)

func JsFsUnlinkSync

func JsFsUnlinkSync(filePath string) error

func JsOsHomeDir

func JsOsHomeDir() (string, error)

func JsOsHostName

func JsOsHostName() (string, error)

func JsOsTempDir

func JsOsTempDir() string

func JsProcessArch

func JsProcessArch() string

func JsProcessArgV

func JsProcessArgV() []string

func JsProcessChDir

func JsProcessChDir(dir string) error

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 JsProcessKill(pid int, signal int) error

func JsProcessNextTickAsync

func JsProcessNextTickAsync(fct progpAPI.JsFunction)

func JsProcessPID

func JsProcessPID() int

func JsProcessParentPID

func JsProcessParentPID() int

func JsProcessPlatform

func JsProcessPlatform() string

Types

type FsConst

type FsConst uint32

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL