Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/spf13/afero
/ functions
Functions
803 in github.com/spf13/afero
⨍
Functions
803
◇
Types & classes
89
↓ 2 callers
Method
getDirEntries
()
zipfs/file.go:114
↓ 2 callers
Function
glob
glob searches for files matching pattern in the directory dir and appends them to matches. If the directory cannot be opened, it returns the existing
match.go:75
↓ 2 callers
Function
hasMeta
hasMeta reports whether path contains any of the magic characters recognized by Match.
match.go:107
↓ 2 callers
Function
nextRandom
()
ioutil.go:153
↓ 2 callers
Method
open
(name string)
memmap.go:220
↓ 2 callers
Function
readAll
readAll reads from r until an error or EOF and returns the data it read from the internal buffer allocated with a specified capacity.
ioutil.go:91
↓ 2 callers
Function
readDirNames
readDirNames reads the directory named by dirname and returns a sorted list of directory entries. adapted from https://golang.org/src/path/filepath/pa
path.go:27
↓ 2 callers
Function
setupGlobDirRoot
(t *testing.T, fs Fs)
match_test.go:34
↓ 2 callers
Function
setupGlobFiles
(t *testing.T, fs Fs, path string)
match_test.go:45
↓ 1 callers
Function
AddToMemDir
(dir *FileData, f *FileData)
mem/dir.go:28
↓ 1 callers
Method
Buckets
(ctx context.Context, projectID string)
gcsfs/internal/stiface/interfaces.go:27
↓ 1 callers
Method
Chmod
(name string, mode os.FileMode)
iofs.go:204
↓ 1 callers
Method
Chown
(name string, uid, gid int)
memmap.go:425
↓ 1 callers
Method
Chown
(name string, uid, gid int)
iofs.go:208
↓ 1 callers
Method
Chtimes
(name string, atime time.Time, mtime time.Time)
memmap.go:441
↓ 1 callers
Method
Chtimes
(name string, atime time.Time, mtime time.Time)
iofs.go:212
↓ 1 callers
Method
Close
()
mem/file.go:129
↓ 1 callers
Method
ComposerFrom
(...ObjectHandle)
gcsfs/internal/stiface/interfaces.go:46
↓ 1 callers
Method
Create
(n string)
readonlyfs.go:94
↓ 1 callers
Method
Create
(name string)
iofs.go:162
↓ 1 callers
Method
Create
(name string)
os.go:36
↓ 1 callers
Method
Create
(name string)
gcsfs/fs.go:129
↓ 1 callers
Method
DefaultObjectACL
()
gcsfs/internal/stiface/interfaces.go:54
↓ 1 callers
Method
Disconnect
()
sftpfs/sftp_test.go:90
↓ 1 callers
Function
FileContainsAnyBytes
Check if a file contains any of the specified byte slices.
util.go:188
↓ 1 callers
Function
FileContainsBytes
Check if a file contains a specified byte slice.
util.go:173
↓ 1 callers
Function
FileCreate
(s *sftp.Client, name string)
sftpfs/file.go:35
↓ 1 callers
Function
FileOpen
(s *sftp.Client, name string)
sftpfs/file.go:27
↓ 1 callers
Method
Files
()
mem/dir.go:19
↓ 1 callers
Function
FullBaseFsPath
(basePathFs *BasePathFs, relativePath string)
util.go:322
↓ 1 callers
Method
Generation
(int64)
gcsfs/internal/stiface/interfaces.go:35
↓ 1 callers
Method
Info
()
mem/file.go:323
↓ 1 callers
Function
InitializeDir
(d *FileData)
mem/dir.go:32
↓ 1 callers
Method
Key
([]byte)
gcsfs/internal/stiface/interfaces.go:37
↓ 1 callers
Function
MakeSSHKeyPair
MakeSSHKeyPair make a pair of public and private keys for SSH access. Public key is encoded in the format for inclusion in an OpenSSH authorized_keys
sftpfs/sftp_test.go:210
↓ 1 callers
Method
Mkdir
(name string, _ os.FileMode)
gcsfs/fs.go:160
↓ 1 callers
Method
Mkdir
(name string, perm os.FileMode)
sftpfs/sftp.go:43
↓ 1 callers
Method
MkdirAll
(name string, perm os.FileMode)
copyOnWriteFs.go:318
↓ 1 callers
Method
MkdirAll
(path string, perm os.FileMode)
gcsfs/fs.go:185
↓ 1 callers
Method
Name
()
regexpfs.go:180
↓ 1 callers
Method
Name
()
mem/file.go:139
↓ 1 callers
Method
Name
()
zipfs/file.go:107
↓ 1 callers
Method
Name
()
sftpfs/file.go:47
↓ 1 callers
Function
New
(client *sftp.Client)
sftpfs/sftp.go:33
↓ 1 callers
Function
NewGcsFSFromClient
NewGcsFSFromClient creates a GCS file system from a given storage client
gcsfs/gcs.go:65
↓ 1 callers
Function
NewGcsFSFromClientWithSeparator
NewGcsFSFromClientWithSeparator is the same as NewGcsFSFromClient, but the file system will use the provided folder separator.
gcsfs/gcs.go:72
↓ 1 callers
Function
NewGcsFileFromOldFH
( openFlags int, fileMode os.FileMode, oldFile *gcsFileResource, )
gcsfs/file.go:75
↓ 1 callers
Function
NewRegexpFs
(source Fs, re *regexp.Regexp)
regexpfs.go:18
↓ 1 callers
Method
Open
(name string)
cacheOnReadFs.go:238
↓ 1 callers
Method
Open
(name string)
basepath.go:150
↓ 1 callers
Method
Open
(name string)
regexpfs.go:124
↓ 1 callers
Method
Open
(name string)
tarfs/fs.go:83
↓ 1 callers
Method
Open
(name string)
zipfs/fs.go:55
↓ 1 callers
Method
OpenFile
(name string, flag int, fileMode os.FileMode)
gcsfs/fs.go:228
↓ 1 callers
Method
Read
(p []byte)
gcsfs/gcs_mocks.go:206
↓ 1 callers
Method
Read
(b []byte)
sftpfs/file.go:63
↓ 1 callers
Method
ReadAt
(p []byte, off int64)
zipfs/file.go:68
↓ 1 callers
Method
ReadCompressed
(bool)
gcsfs/internal/stiface/interfaces.go:38
↓ 1 callers
Method
ReadFile
(name string)
iofs.go:103
↓ 1 callers
Method
Readdir
Readdir will weave the two directories together and return a single view of the overlayed directories. At the end of the directory view, the error is
unionFile.go:160
↓ 1 callers
Method
Readdir
(c int)
regexpfs.go:184
↓ 1 callers
Method
Readdir
(count int)
tarfs/file.go:93
↓ 1 callers
Method
Readdir
(count int)
sftpfs/file.go:71
↓ 1 callers
Method
Remain
()
gcsfs/internal/stiface/interfaces.go:97
↓ 1 callers
Method
Remove
(n string)
readonlyfs.go:71
↓ 1 callers
Method
Remove
(name string)
iofs.go:188
↓ 1 callers
Method
Remove
(name string)
os.go:74
↓ 1 callers
Method
Remove
(*FileData)
mem/dir.go:21
↓ 1 callers
Function
RemoveFromMemDir
(dir *FileData, f *FileData)
mem/dir.go:24
↓ 1 callers
Method
Rename
(oldname, newname string)
iofs.go:196
↓ 1 callers
Function
RunSftpServer
TODO for such a weird reason rootpath is "." when writing "file1" with afero sftp backend
sftpfs/sftp_test.go:97
↓ 1 callers
Function
SetGID
(f *FileData, gid int)
mem/file.go:110
↓ 1 callers
Function
SetUID
(f *FileData, uid int)
mem/file.go:104
↓ 1 callers
Function
SftpConnect
TODO we only connect with hardcoded user+pass for now it should be possible to use $HOME/.ssh/id_rsa to login into the stub sftp server
sftpfs/sftp_test.go:42
↓ 1 callers
Method
Stat
(name string)
readonlyfs.go:39
↓ 1 callers
Method
Stat
(name string)
sftpfs/sftp.go:123
↓ 1 callers
Method
TempFile
TempFile creates a new temporary file in the directory dir, opens the file for reading and writing, and returns the resulting *os.File. The filename i
ioutil.go:176
↓ 1 callers
Function
UnicodeSanitize
Rewrite string to remove non-standard path characters
util.go:137
↓ 1 callers
Method
UserProject
IAM() *iam.Handle
gcsfs/internal/stiface/interfaces.go:62
↓ 1 callers
Method
Write
(p []byte)
gcsfs/gcs_mocks.go:155
↓ 1 callers
Method
WriteAt
(b []byte, off int64)
gcsfs/file.go:155
↓ 1 callers
Method
WriteString
(s string)
gcsfs/file.go:307
↓ 1 callers
Function
checkSizePath
(t *testing.T, path string, size int64)
ioutil_test.go:24
↓ 1 callers
Function
copyFileToLayer
(base Fs, layer Fs, name string, flag int, perm os.FileMode)
unionFile.go:323
↓ 1 callers
Method
copyFileToLayer
(name string, flag int, perm os.FileMode)
cacheOnReadFs.go:78
↓ 1 callers
Function
createTempDirWithNonZeroLengthFiles
()
util_test.go:248
↓ 1 callers
Function
createTempDirWithZeroLengthFiles
()
util_test.go:231
↓ 1 callers
Method
findDescendants
(name string)
memmap.go:92
↓ 1 callers
Method
getBucket
(name string)
gcsfs/fs.go:104
↓ 1 callers
Method
getDirectoryNames
()
tarfs/file.go:78
↓ 1 callers
Method
lockfreeMkdir
(name string, perm os.FileMode)
memmap.go:135
↓ 1 callers
Method
maybeCloseReader
()
gcsfs/file_resource.go:74
↓ 1 callers
Method
maybeCloseWriter
()
gcsfs/file_resource.go:85
↓ 1 callers
Function
min
(x, y int)
gcsfs/file_resource.go:226
↓ 1 callers
Function
newClientMock
()
gcsfs/gcs_mocks.go:37
↓ 1 callers
Function
newFakeClient
()
gcsfs/internal/stiface/stiface_test.go:110
↓ 1 callers
Function
newFileInfoFromAttrs
(objAttrs *storage.ObjectAttrs, fileMode os.FileMode)
gcsfs/file_info.go:85
↓ 1 callers
Method
openWrite
(name string)
memmap.go:212
↓ 1 callers
Function
readObject
(t *testing.T, obj ObjectHandle)
gcsfs/internal/stiface/stiface_test.go:75
↓ 1 callers
Method
readdirImpl
(count int)
gcsfs/file.go:184
← previous
next →
201–300 of 803, ranked by callers