Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/spf13/afero
/ types & classes
Types & classes
89 in github.com/spf13/afero
⨍
Functions
803
◇
Types & classes
89
↓ 4 callers
TypeAlias
myFileInfo
afero_test.go:633
↓ 2 callers
TypeAlias
byName
byName implements sort.Interface.
ioutil.go:31
↓ 1 callers
TypeAlias
ByName
gcsfs/file_info.go:134
↓ 1 callers
TypeAlias
filesSorter
implement sort.Interface for []*FileData
mem/dirmap.go:32
Interface
ACLHandle
gcsfs/internal/stiface/interfaces.go:86
Struct
Afero
afero.go:32
Struct
BasePathFile
basepath.go:30
Struct
BasePathFs
The BasePathFs restricts all operations to a given path within an Fs. The given file name to the operations on this Fs will be prepended with the base
basepath.go:25
Interface
BucketHandle
gcsfs/internal/stiface/interfaces.go:51
Interface
BucketIterator
gcsfs/internal/stiface/interfaces.go:78
Struct
CacheOnReadFs
If the cache duration is 0, cache time will be unlimited, i.e. once a file is in the layer, the base will never be read again for this file. For cach
cacheOnReadFs.go:22
Interface
Client
gcsfs/internal/stiface/interfaces.go:25
Interface
Composer
gcsfs/internal/stiface/interfaces.go:127
Interface
Copier
gcsfs/internal/stiface/interfaces.go:117
Struct
CopyOnWriteFs
The CopyOnWriteFs is a union filesystem: a read only base file system with a possibly writeable layer on top. Changes to the file system will only be
copyOnWriteFs.go:20
Interface
Dir
mem/dir.go:16
TypeAlias
DirMap
mem/dirmap.go:18
FuncType
DirsMerger
DirsMerger is how UnionFile weaves two directories together. It takes the FileInfo slices from the layer and the base and returns a single view.
unionFile.go:131
Interface
File
File represents a file in the filesystem.
afero.go:37
Struct
File
tarfs/file.go:14
Struct
File
mem/file.go:35
Struct
File
zipfs/file.go:13
Struct
File
sftpfs/file.go:22
Struct
FileData
mem/file.go:56
Struct
FileInfo
mem/file.go:327
Struct
FileInfo
gcsfs/file_info.go:33
Struct
FileInfoDirEntry
FileInfoDirEntry provides an adapter from os.FileInfo to fs.DirEntry
internal/common/adapters.go:19
Struct
FromIOFS
FromIOFS adopts io/fs.FS to use it as afero.Fs Note that io/fs.FS is read-only so all mutating methods will return fs.PathError with fs.ErrPermission
iofs.go:156
Interface
Fs
Fs is the filesystem interface. Any simulated or real filesystem should implement this interface.
afero.go:57
Struct
Fs
tarfs/fs.go:16
Struct
Fs
zipfs/fs.go:13
Struct
Fs
Fs is a Fs implementation that uses functions provided by google cloud storage
gcsfs/fs.go:37
Struct
Fs
Fs is a afero.Fs implementation that uses functions provided by the sftp package. For details in any method, check the documentation of the sftp pack
sftpfs/sftp.go:29
Struct
GcsFile
GcsFs is the Afero version adapted for GCS
gcsfs/file.go:36
Struct
GcsFs
gcsfs/gcs.go:31
Struct
HttpFs
httpFs.go:48
Struct
IOFS
IOFS adopts afero.Fs to stdlib io/fs.FS
iofs.go:18
Interface
LinkReader
LinkReader is an optional interface in Afero. It is only implemented by the filesystems saying so.
symlink.go:48
Interface
Linker
Linker is an optional interface in Afero. It is only implemented by the filesystems saying so. It will call Symlink if the filesystem itself is, or it
symlink.go:37
Interface
Lstater
Lstater is an optional interface in Afero. It is only implemented by the filesystems saying so. It will call Lstat if the filesystem itself is, or it
lstater.go:25
Struct
MemMapFs
Only a subset of bits are allowed to be changed. Documented under os.Chmod()
memmap.go:32
Interface
ObjectHandle
gcsfs/internal/stiface/interfaces.go:33
Interface
ObjectIterator
gcsfs/internal/stiface/interfaces.go:71
Struct
OsFs
OsFs is a Fs implementation that uses functions provided by the os package. For details in any method, check the documentation of the os package (htt
os.go:28
Struct
ReadOnlyFs
readonlyfs.go:11
Interface
Reader
gcsfs/internal/stiface/interfaces.go:94
Struct
RegexpFile
regexpfs.go:22
Struct
RegexpFs
The RegexpFs filters files (not directories) by regular expression. Only files matching the given regexp will be allowed, all others get a ENOENT erro
regexpfs.go:13
Struct
SftpFsContext
sftpfs/sftp_test.go:34
Interface
Symlinker
Symlinker is an optional interface in Afero. It is only implemented by the filesystems saying so. It indicates support for 3 symlink related interface
symlink.go:27
Struct
UnionFile
The UnionFile implements the afero.File interface and will be returned when reading a directory present at least in the overlay or opening a file for
unionFile.go:23
Interface
Writer
gcsfs/internal/stiface/interfaces.go:105
Struct
aclHandle
gcsfs/internal/stiface/adapters.go:39
Struct
args
ioutil_test.go:119
Struct
bucketHandle
gcsfs/internal/stiface/adapters.go:31
Struct
bucketIterator
gcsfs/internal/stiface/adapters.go:33
Struct
bucketMock
gcsfs/gcs_mocks.go:45
TypeAlias
cacheState
cacheOnReadFs.go:32
Struct
client
gcsfs/internal/stiface/adapters.go:30
Struct
clientMock
gcsfs/gcs_mocks.go:32
Struct
composer
gcsfs/internal/stiface/adapters.go:38
Struct
copier
gcsfs/internal/stiface/adapters.go:37
Struct
dirSpec
util_test.go:443
Struct
dirSpec
basepath_test.go:92
Struct
ev
composite_test.go:27
Struct
fakeBucket
gcsfs/internal/stiface/stiface_test.go:105
Struct
fakeBucketHandle
gcsfs/internal/stiface/stiface_test.go:118
Struct
fakeClient
gcsfs/internal/stiface/stiface_test.go:100
Struct
fakeObjectHandle
gcsfs/internal/stiface/stiface_test.go:148
Struct
fakeReader
gcsfs/internal/stiface/stiface_test.go:176
Struct
fakeWriter
gcsfs/internal/stiface/stiface_test.go:193
Struct
fromIOFSFile
iofs.go:216
Struct
gcsFileResource
gcsFileResource represents a singleton version of each GCS object; Google cloud storage allows users to open multiple writers(!) to the same underlyin
gcsfs/file_resource.go:40
Struct
httpDir
httpFs.go:26
Struct
objectHandle
gcsfs/internal/stiface/adapters.go:32
Struct
objectItMock
gcsfs/gcs_mocks.go:218
Struct
objectIterator
gcsfs/internal/stiface/adapters.go:34
Struct
objectMock
gcsfs/gcs_mocks.go:65
Struct
pseudoRoot
zipfs/fs.go:83
Struct
readDirFile
readDirFile provides adapter from afero.File to fs.ReadDirFile needed for correct Open
iofs.go:133
Struct
reader
gcsfs/internal/stiface/adapters.go:35
Struct
readerMock
gcsfs/gcs_mocks.go:194
Struct
spec
util_test.go:459
Struct
spec
basepath_test.go:108
Struct
test
memmap_test.go:17
Struct
test
util_test.go:33
Struct
test
afero_test.go:342
Struct
writer
gcsfs/internal/stiface/adapters.go:36
Struct
writerMock
gcsfs/gcs_mocks.go:146