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
↓ 5 callers
Method
splitName
Splits provided name into bucket name and path
gcsfs/fs.go:98
↓ 4 callers
Function
AdaptClient
AdaptClient adapts a storage.Client so that it satisfies the Client interface.
gcsfs/internal/stiface/adapters.go:25
↓ 4 callers
Function
ChangeFileName
(f *FileData, newname string)
mem/file.go:82
↓ 4 callers
Method
Create
(context.Context, string, *storage.BucketAttrs)
gcsfs/internal/stiface/interfaces.go:52
↓ 4 callers
Function
CreateFile
(name string)
mem/file.go:74
↓ 4 callers
Method
Name
()
tarfs/file.go:74
↓ 4 callers
Function
NewIOFS
(fs Fs)
iofs.go:22
↓ 4 callers
Method
NewRangeReader
(context.Context, int64, int64)
gcsfs/internal/stiface/interfaces.go:42
↓ 4 callers
Function
NewTempOsBaseFs
(t *testing.T)
composite_test.go:14
↓ 4 callers
Method
Read
(p []byte)
gcsfs/file.go:137
↓ 4 callers
Method
ReadFile
ReadFile reads the file named by filename and returns the contents. A successful call returns err == nil, not err == EOF. Because ReadFile reads the w
ioutil.go:61
↓ 4 callers
Method
Remove
(name string)
memmap.go:279
↓ 4 callers
Method
Rename
(oldname, newname string)
memmap.go:318
↓ 4 callers
Method
Seek
(newOffset int64, whence int)
gcsfs/file.go:102
↓ 4 callers
Method
Stat
()
gcsfs/file.go:284
↓ 4 callers
Method
SymlinkIfPossible
(oldname, newname string)
symlink.go:38
↓ 4 callers
Method
Sync
()
afero.go:49
↓ 4 callers
Method
Write
(p []byte)
gcsfs/file.go:151
↓ 4 callers
Method
copyToLayer
(name string)
copyOnWriteFs.go:49
↓ 4 callers
Function
normSeparators
sets filesystem separators to the one, expected (and hard-coded) in the tests
gcsfs/gcs_mocks.go:28
↓ 4 callers
Function
setModTime
(f *FileData, mtime time.Time)
mem/file.go:100
↓ 4 callers
Function
setupTestDir
(t *testing.T, fs Fs)
afero_test.go:428
↓ 4 callers
Function
splitpath
(name string)
tarfs/fs.go:20
↓ 4 callers
Function
splitpath
(name string)
zipfs/fs.go:18
↓ 4 callers
Method
unRegisterWithParent
(fileName string)
memmap.go:66
↓ 3 callers
Function
CreateDir
(name string)
mem/file.go:78
↓ 3 callers
Method
IsDir
()
zipfs/fs.go:89
↓ 3 callers
Method
MkdirAll
(name string, mode os.FileMode)
basepath.go:168
↓ 3 callers
Method
ModTime
()
gcsfs/file_info.go:122
↓ 3 callers
Method
Name
()
gcsfs/file_info.go:107
↓ 3 callers
Function
NewCopyOnWriteFs
(base Fs, layer Fs)
copyOnWriteFs.go:25
↓ 3 callers
Method
Next
()
gcsfs/internal/stiface/interfaces.go:72
↓ 3 callers
Method
Object
(string)
gcsfs/internal/stiface/interfaces.go:55
↓ 3 callers
Method
Objects
(context.Context, *storage.Query)
gcsfs/internal/stiface/interfaces.go:59
↓ 3 callers
Method
Read
(p []byte)
zipfs/file.go:55
↓ 3 callers
Method
ReadAt
(b []byte, off int64)
mem/file.go:230
↓ 3 callers
Method
ReadAt
(p []byte, off int64)
gcsfs/file.go:141
↓ 3 callers
Method
Readdir
(count int)
gcsfs/file.go:254
↓ 3 callers
Function
SetModTime
(f *FileData, mtime time.Time)
mem/file.go:94
↓ 3 callers
Method
Stat
(name string)
iofs.go:200
↓ 3 callers
Method
Stat
(name string)
gcsfs/fs.go:397
↓ 3 callers
Method
Sync
()
gcsfs/file.go:293
↓ 3 callers
Function
Walk
(fs Fs, root string, walkFn filepath.WalkFunc)
path.go:100
↓ 3 callers
Function
equal
(name1, name2 string)
afero_test.go:741
↓ 3 callers
Method
isNotExist
(err error)
copyOnWriteFs.go:154
↓ 3 callers
Method
lockfreeOpen
(name string)
memmap.go:232
↓ 3 callers
Function
lstatIfPossible
if the filesystem supports it, use Lstat, else use fs.Stat
path.go:81
↓ 3 callers
Function
newFileInfo
(name string, fs *Fs, fileMode os.FileMode)
gcsfs/file_info.go:41
↓ 3 callers
Function
reseed
()
ioutil.go:149
↓ 3 callers
Method
setFileMode
(name string, mode os.FileMode)
memmap.go:408
↓ 3 callers
Function
setupTestFiles
(t *testing.T, fs Fs, path string)
afero_test.go:444
↓ 2 callers
Method
ACL
()
gcsfs/internal/stiface/interfaces.go:34
↓ 2 callers
Method
Chmod
(name string, mode os.FileMode)
memmap.go:393
↓ 2 callers
Function
CleanupTempDirs
(t *testing.T)
composite_test.go:25
↓ 2 callers
Method
CopierFrom
(ObjectHandle)
gcsfs/internal/stiface/interfaces.go:45
↓ 2 callers
Method
Create
(name string)
cacheOnReadFs.go:302
↓ 2 callers
Method
Create
(name string)
regexpfs.go:149
↓ 2 callers
Method
Data
()
mem/file.go:52
↓ 2 callers
Function
DirExists
DirExists checks if a path exists and is a directory.
util.go:254
↓ 2 callers
Function
GetFileInfo
(f *FileData)
mem/file.go:116
↓ 2 callers
Function
GetTempDir
GetTempDir returns the default temp directory with trailing slash if subPath is not empty then it will be created recursively with mode 777 rwx rwx rw
util.go:104
↓ 2 callers
Method
If
(storage.Conditions)
gcsfs/internal/stiface/interfaces.go:36
↓ 2 callers
Function
IsEmpty
IsEmpty checks if a given file or directory is empty.
util.go:283
↓ 2 callers
Method
Lstat
(p string)
sftpfs/sftp.go:127
↓ 2 callers
Method
Mkdir
( name string, perm os.FileMode, )
iofs.go:164
↓ 2 callers
Function
New
(t *tar.Reader)
tarfs/fs.go:31
↓ 2 callers
Function
New
(r *zip.Reader)
zipfs/fs.go:29
↓ 2 callers
Function
NewCacheOnReadFs
(base Fs, layer Fs, cacheTime time.Duration)
cacheOnReadFs.go:28
↓ 2 callers
Function
NewGcsFile
( ctx context.Context, fs *Fs, obj stiface.ObjectHandle, openFlags int, // Unused: there is no use to the
gcsfs/file.go:44
↓ 2 callers
Function
NewGcsFs
(ctx context.Context, client stiface.Client)
gcsfs/fs.go:48
↓ 2 callers
Function
NewGcsFsWithSeparator
(ctx context.Context, client stiface.Client, folderSep string)
gcsfs/fs.go:52
↓ 2 callers
Function
NewReadOnlyFileHandle
(data *FileData)
mem/file.go:48
↓ 2 callers
Function
NewReadOnlyFs
(source Fs)
readonlyfs.go:15
↓ 2 callers
Method
Open
(n string)
readonlyfs.go:82
↓ 2 callers
Method
Open
(name string)
gcsfs/fs.go:224
↓ 2 callers
Method
OpenFile
(name string, flag int, mode os.FileMode)
basepath.go:139
↓ 2 callers
Method
OpenFile
(name string, flag int, perm os.FileMode)
copyOnWriteFs.go:207
↓ 2 callers
Method
Read
(p []byte)
tarfs/file.go:34
↓ 2 callers
Function
ReadAll
ReadAll reads from r until an error or EOF and returns the data it read. A successful call returns err == nil, not err == EOF. Because ReadAll is defi
ioutil.go:114
↓ 2 callers
Method
ReadAt
(p []byte, off int64)
tarfs/file.go:46
↓ 2 callers
Method
Readdir
(count int)
mem/file.go:151
↓ 2 callers
Method
Remove
(name string)
gcsfs/fs.go:285
↓ 2 callers
Method
RemoveAll
(path string)
memmap.go:297
↓ 2 callers
Function
SafeWriteReader
(fs Fs, path string, r io.Reader)
util.go:69
↓ 2 callers
Method
Seek
(o int64, w int)
unionFile.go:78
↓ 2 callers
Method
Seek
(offset int64, whence int)
tarfs/file.go:58
↓ 2 callers
Method
Size
()
gcsfs/file_info.go:111
↓ 2 callers
Method
Stat
(name string)
basepath.go:108
↓ 2 callers
Method
Stat
(name string)
copyOnWriteFs.go:92
↓ 2 callers
Method
Write
(b []byte)
sftpfs/file.go:99
↓ 2 callers
Method
WriteFile
WriteFile writes data to a file named by filename. If the file does not exist, WriteFile creates it with permissions perm; otherwise WriteFile truncat
ioutil.go:121
↓ 2 callers
Function
WriteReader
(fs Fs, path string, r io.Reader)
util.go:41
↓ 2 callers
Function
basicTests
(t *testing.T, bucketName string, bkt BucketHandle)
gcsfs/internal/stiface/stiface_test.go:47
↓ 2 callers
Function
contains
contains returns true if vector contains the string s.
match_test.go:25
↓ 2 callers
Function
copyFile
(base Fs, layer Fs, name string, bfh File)
unionFile.go:271
↓ 2 callers
Function
copyToLayer
(base Fs, layer Fs, name string)
unionFile.go:313
↓ 2 callers
Function
createNonZeroSizedFileInTempDir
()
util_test.go:199
↓ 2 callers
Method
fillBuffer
(offset int64)
zipfs/file.go:22
↓ 2 callers
Function
findNames
(fs Fs, t *testing.T, tDir, testSubDir string, root, sub []string)
afero_test.go:683
↓ 2 callers
Method
findParent
(f *mem.FileData)
memmap.go:82
← previous
next →
101–200 of 803, ranked by callers