MCPcopy Create free account

hub / github.com/capnspacehook/pandorasbox / functions

Functions265 in github.com/capnspacehook/pandorasbox

↓ 38 callersFunctionNewFS
()
vfs/vfs.go:84
↓ 32 callersMethodClose
Close closes the File, rendering it unusable for I/O. It returns an error, if any.
absfs/file.go:73
↓ 26 callersFunctionConvertVFSPath
(path string)
utils.go:14
↓ 26 callersMethodNew
(mode os.FileMode)
inode/inode.go:53
↓ 26 callersMethodOpenFile
OpenFile is the generalized open call; most users will use Open or Create instead. It opens the named file with specified flag (os.O_RDONLY etc.). If
absfs/filesystem.go:20
↓ 24 callersMethodStat
Stat returns the FileInfo structure describing file. If there is an error, it will be of type *PathError.
absfs/file.go:53
↓ 23 callersMethodMkdir
Mkdir creates a new directory with the specified name and permission bits (before umask). If there is an error, it will be of type *fs.PathError.
absfs/filesystem.go:46
↓ 20 callersMethodLink
Link - link adds a directory entry (DirEntry) for the given node (assumed to be a directory) to the provided child Inode.
inode/inode.go:85
↓ 19 callersMethodName
Name returns the name of the file as presented to Open.
absfs/file.go:9
↓ 19 callersMethodWrite
Write writes len(b) bytes to the File. It returns the number of bytes written and an error, if any. Write returns a non-nil error when n != len(b).
absfs/file.go:40
↓ 18 callersMethodRename
Rename renames (moves) oldpath to newpath. If newpath already exists and is not a directory, Rename replaces it. OS-specific restrictions may apply wh
absfs/filesystem.go:68
↓ 17 callersMethodResolve
(path string)
inode/inode.go:201
↓ 14 callersMethodCreate
Create creates or truncates the named file. If the file already exists, it is truncated. If the file does not exist, it is created with mode 0666 (bef
absfs/filesystem.go:27
↓ 13 callersMethodTruncate
Truncate changes the size of the file. It does not change the I/O offset. If there is an error, it will be of type *fs.PathError.
absfs/file.go:69
↓ 12 callersMethodSize
()
vfs/vfsfile.go:443
↓ 12 callersFunctioncheckSize
(t *testing.T, f absfs.File, size int64)
vfs/vfs_test.go:832
↓ 11 callersMethodIsDir
()
inode/inode.go:150
↓ 11 callersMethodNewDir
(mode os.FileMode)
inode/inode.go:70
↓ 11 callersMethodRead
Read reads up to len(b) bytes from the File. It returns the number of bytes read and any error encountered. At end of file, Read returns 0, io.EOF.
absfs/file.go:13
↓ 11 callersMethodReadFile
ReadFile reads the named file and returns its contents. A successful call returns a nil error, not io.EOF. (Because ReadFile reads the whole file, the
absfs/filesystem.go:33
↓ 11 callersMethodSeek
Seek sets the offset for the next Read or Write on file to offset, interpreted according to whence: 0 means relative to the origin of the file, 1 mean
absfs/file.go:60
↓ 11 callersMethodTempDir
TempDir returns the default directory to use for temporary files. The directory is neither guaranteed to exist nor have accessible permissions.
absfs/filesystem.go:114
↓ 11 callersMethodWriteFile
WriteFile writes data to the named file, creating it if necessary. If the file does not exist, WriteFile creates it with permissions perm (before umas
absfs/filesystem.go:42
↓ 10 callersMethodIsDir
()
vfs/vfsfile.go:422
↓ 10 callersMethodRemove
Remove removes the named file or (empty) directory. If there is an error, it will be of type *fs.PathError.
absfs/filesystem.go:72
↓ 9 callersFunctionMakeVFSPath
(path string)
utils.go:30
↓ 9 callersMethodOpen
Open opens the named file for reading. If successful, methods on the returned file can be used for reading; the associated file descriptor has mode O_
absfs/filesystem.go:13
↓ 9 callersMethodReadDir
Readdir reads the contents of the directory associated with file and returns a slice of up to n FileInfo values, as would be returned by Lstat, in dir
absfs/file.go:35
↓ 8 callersMethodChdir
Chdir changes the current working directory to the named directory. If there is an error, it will be of type *fs.PathError.
absfs/filesystem.go:103
↓ 8 callersMethodWriteString
WriteString is like Write, but writes the contents of string s rather than a slice of bytes.
absfs/file.go:49
↓ 7 callersMethodGetwd
Getwd returns a rooted path name corresponding to the current directory. If the current directory can be reached via multiple paths (due to symbolic l
absfs/filesystem.go:109
↓ 6 callersMethodMkdirAll
MkdirAll creates a directory named path, along with any necessary parents, and returns nil, or else returns an error. The permission bits perm (before
absfs/filesystem.go:52
↓ 6 callersMethodWalkDir
WalkDir walks the file tree rooted at root, calling fn for each file or directory in the tree, including root. All errors that arise visiting files an
absfs/filesystem.go:89
↓ 6 callersFunctionnewFile
(t *testing.T, fs absfs.FileSystem, testName string)
vfs/vfs_test.go:936
↓ 6 callersFunctionwriteFile
nolint:unparam
vfs/vfs_test.go:1115
↓ 5 callersMethodLstat
Lstat returns a FileInfo describing the named file. If the file is a symbolic link, the returned FileInfo describes the symbolic link. Lstat makes no
absfs/filesystem.go:62
↓ 5 callersMethodRemoveAll
RemoveAll removes path and any children it contains. It removes everything it can but returns the first error it encounters. If the path does not exis
absfs/filesystem.go:78
↓ 4 callersMethodAbs
Abs returns an absolute representation of path. If the path is not absolute it will be joined with the current working directory to turn it into an ab
absfs/filesystem.go:96
↓ 4 callersMethodLen
()
inode/inode.go:47
↓ 4 callersMethodReadAt
ReadAt reads len(b) bytes from the File starting at byte offset off. It returns the number of bytes read and the error, if any. ReadAt always returns
absfs/file.go:19
↓ 4 callersMethodUnlink
Unlink - removes the directory entry (DirEntry).
inode/inode.go:108
↓ 4 callersMethodWriteAt
WriteAt writes len(b) bytes to the File starting at byte offset off. It returns the number of bytes written and an error, if any. WriteAt returns a no
absfs/file.go:45
↓ 4 callersFunctioncheckPath
(name, op string)
vfs/vfs.go:63
↓ 4 callersMethodcountDown
()
inode/inode.go:247
↓ 3 callersFunctionAbs
Abs returns name if name is an absolute path. If name is a relative path then an absolute path is constructed by using cwd as the current working dire
inode/pathutils.go:11
↓ 3 callersMethodListSeparator
()
absfs/filesystem.go:99
↓ 3 callersMethodOpenFile
(name string, flag int, perm stdfs.FileMode)
vfs/vfs.go:117
↓ 3 callersMethodSeparator
()
absfs/filesystem.go:98
↓ 3 callersFunctionWalk
(node *Inode, path string, fn func(path string, n *Inode) error)
inode/inode_test.go:630
↓ 3 callersMethodaddOffset
(offset int64)
vfs/vfsfile.go:67
↓ 3 callersMethoddecrypt
decrypt returns the plaintext of the sealed file. It must be called under lock.
vfs/vfsfile.go:77
↓ 3 callersMethodencrypt
encrypt encrypts plaintext, stores the ciphertext in the sealed file and updates the file size. It must be called under lock.
vfs/vfsfile.go:93
↓ 3 callersMethodfind
(name string)
inode/inode.go:281
↓ 3 callersMethodmodified
()
inode/inode.go:236
↓ 3 callersFunctionrandBytes
(t *testing.T, r *rand.Rand)
vfs/vfs_fuzz_test.go:335
↓ 3 callersFunctionreseed
()
ioutil/tempfile.go:28
↓ 3 callersMethodsize
()
vfs/vfsfile.go:52
↓ 3 callersFunctionwalkTree
(n *Node, path string, f func(path string, n *Node))
vfs/walk_test.go:46
↓ 2 callersMethodFS
()
absfs/filesystem.go:8
↓ 2 callersMethodIsPathSeparator
(c uint8, vfsMode bool)
box.go:187
↓ 2 callersFunctionIsVFSPath
(path string)
utils.go:26
↓ 2 callersFunctionMkdir
(name string, perm fs.FileMode)
pandoras_box.go:48
↓ 2 callersMethodModTime
()
vfs/vfsfile.go:454
↓ 2 callersMethodOpen
(name string)
vfs/vfs.go:113
↓ 2 callersFunctionPopPath
PopPath returns the first name in `path` and the rest of the `path` string. The path provided must use forward slashes ("/").
inode/pathutils.go:21
↓ 2 callersMethodTruncate
(size int64)
vfs/vfsfile.go:343
↓ 2 callersMethodaccessed
()
inode/inode.go:232
↓ 2 callersMethodcountUp
()
inode/inode.go:242
↓ 2 callersMethodmkdir
(name string, perm stdfs.FileMode)
vfs/vfs.go:310
↓ 2 callersFunctionnextSuffix
()
ioutil/tempfile.go:32
↓ 2 callersMethodread
(p []byte, offset int64)
vfs/vfsfile.go:117
↓ 2 callersMethodsetOffset
(offset int64)
vfs/vfsfile.go:60
↓ 2 callersMethodwrite
(p []byte, offset int64)
vfs/vfsfile.go:238
↓ 1 callersMethodFS
()
vfs/vfs.go:97
↓ 1 callersMethodGetTempDir
(vfsMode bool)
box.go:211
↓ 1 callersMethodGetwd
()
vfs/vfs.go:595
↓ 1 callersFunctionIsPathSeparator
(c uint8)
osfs/utils.go:7
↓ 1 callersFunctionIsPathSeparator
(c uint8)
vfs/utils.go:3
↓ 1 callersMethodName
()
vfs/vfsfile.go:56
↓ 1 callersFunctionNewBox
()
box.go:18
↓ 1 callersFunctionNewFS
()
osfs/osfs.go:25
↓ 1 callersFunctionSameFile
(fi1, fi2 os.FileInfo)
osfs/utils.go:11
↓ 1 callersFunctionSameFile
(fi1, fi2 *FileInfo)
vfs/utils.go:7
↓ 1 callersMethodSeparator
()
vfs/vfs.go:555
↓ 1 callersMethodStat
(name string)
vfs/vfs.go:367
↓ 1 callersMethodSubIno
()
inode/inode.go:66
↓ 1 callersMethodSync
Sync commits the current contents of the file to stable storage. Typically, this means flushing the file system's in-memory copy of recently written d
absfs/file.go:65
↓ 1 callersFunctionTempDir
TempDir creates a new temporary directory in the directory dir of the absfs.FileSystem fs with a name beginning with prefix and returns the path of th
ioutil/tempfile.go:88
↓ 1 callersFunctionTempFile
TempFile creates a new temporary file in the directory dir of the absfs.FileSystem fs with a name beginning with prefix, opens the file for reading an
ioutil/tempfile.go:53
↓ 1 callersMethodUnlinkAll
()
inode/inode.go:128
↓ 1 callersMethodWrite
(p []byte)
vfs/vfsfile.go:231
↓ 1 callersFunctioncheckErrFunc
checkErrFunc returns a function that checks if an error is nil or of an expected type. Otherwise it will log the error and fail the test. Because we a
vfs/vfs_fuzz_test.go:310
↓ 1 callersFunctioncheckMarks
(t *testing.T, report bool)
vfs/walk_test.go:75
↓ 1 callersFunctionconvertVFSPath
(path string)
utils.go:22
↓ 1 callersMethodfileStat
(cwd, name string)
vfs/vfs.go:382
↓ 1 callersMethodlinkSwapi
(i int, entry *DirEntry)
inode/inode.go:263
↓ 1 callersMethodlinki
(i int, entry *DirEntry)
inode/inode.go:271
↓ 1 callersFunctionmakeTree
(t *testing.T)
vfs/walk_test.go:53
↓ 1 callersFunctionmark
Assumes that each node name is unique. Good enough for a test. If err if not nil, it is appended to errors.
vfs/walk_test.go:88
↓ 1 callersMethodunlinki
(i int)
inode/inode.go:255
next →1–100 of 265, ranked by callers