Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bbengfort/memfs
/ functions
Functions
79 in github.com/bbengfort/memfs
⨍
Functions
79
◇
Types & classes
12
↓ 37 callers
Method
Debug
Debug message helper function
logger.go:146
↓ 18 callers
Method
Init
Init the directory with the required properties for the directory.
dir.go:26
↓ 15 callers
Function
LevelFromString
LevelFromString parses a string and returns the LogLevel
logger.go:42
↓ 14 callers
Function
randString
Create a random string of length n
memfs_suite_test.go:27
↓ 12 callers
Method
Info
Info message helper function
logger.go:151
↓ 12 callers
Method
Path
Returns the fuse type for listing
node.go:28
↓ 11 callers
Method
String
String returns the full path to the node.
node.go:114
↓ 9 callers
Method
Log
=========================================================================== Logging handlers =========================================================
logger.go:127
↓ 7 callers
Method
IsArchive
Returns true if the entity is a directory
node.go:26
↓ 7 callers
Method
Write
Release the handle to the file. No associated documentation. https://godoc.org/bazil.org/fuse/fs#HandleReleaser func (f *File) Release(ctx context.Co
file.go:196
↓ 5 callers
Method
Error
Error message helper function
logger.go:161
↓ 4 callers
Function
Blocks
Blocks returns the number of 512 byte blocks required
utils.go:93
↓ 4 callers
Function
InitLogger
InitLogger creates a Logger object by passing a configuration that contains the minimum log level and an optional path to write the log out to.
logger.go:79
↓ 4 callers
Method
Read
ReadAll the data from a file. Implements HandleReadAller which has no associated documentation. Note that if ReadAll is implemented it supersedes Rea
file.go:155
↓ 4 callers
Function
makeTestConfig
()
config_test.go:13
↓ 3 callers
Method
IsArchive
IsArchive returns true if the node is an archive node, that is a node constructed to display version history (and is therefore not writeable). TODO: I
node.go:87
↓ 3 callers
Method
IsDir
()
node.go:25
↓ 3 callers
Method
Setattr
=========================================================================== File fuse.Node* Interface ================================================
file.go:58
↓ 3 callers
Method
Size
()
logger.go:222
↓ 2 callers
Method
GetNode
Returns the full path to the entity
node.go:29
↓ 2 callers
Method
IsDir
=========================================================================== Node Methods =============================================================
node.go:80
↓ 2 callers
Function
ListContains
=========================================================================== String Collection Helpers ================================================
utils.go:68
↓ 2 callers
Method
Load
=========================================================================== Config Methods ===========================================================
config.go:37
↓ 2 callers
Function
New
=========================================================================== New MemFS File System ====================================================
memfs.go:41
↓ 2 callers
Method
Root
=========================================================================== Implement fuse.FS* Methods ===============================================
memfs.go:154
↓ 2 callers
Method
Run
Run the FileSystem, mounting the MountPoint and connecting to FUSE
memfs.go:90
↓ 2 callers
Function
Stride
Stride returns an array of N length substrings.
utils.go:26
↓ 1 callers
Method
Close
Close the logger and any open file handles.
logger.go:102
↓ 1 callers
Method
Dump
Dump a configuration to JSON to the path on disk. If dump is an empty string then will dump the config to the path it was loaded from.
config.go:55
↓ 1 callers
Method
Flush
=========================================================================== File fuse.Handle* Interface ==============================================
file.go:102
↓ 1 callers
Method
FuseType
Returns true if the entity is an archive (version history)
node.go:27
↓ 1 callers
Method
GetHandler
GetHandler returns the io.Writer object that is on the logger.
logger.go:110
↓ 1 callers
Function
MaxUInt64
=========================================================================== Numeric Helpers ==========================================================
utils.go:82
↓ 1 callers
Function
PackageVersion
=========================================================================== Version and Package Information ==========================================
memfs.go:220
↓ 1 callers
Method
Path
Path returns a string representation of the full path of the node.
node.go:101
↓ 1 callers
Function
Regularize
=========================================================================== String Helpers ===========================================================
utils.go:19
↓ 1 callers
Method
SetHandler
SetHandler sets a new io.WriteCloser object onto the logger
logger.go:115
↓ 1 callers
Method
Shutdown
Shutdown the FileSystem unmounting the MountPoint and disconnecting FUSE.
memfs.go:134
↓ 1 callers
Method
Status
()
logger.go:218
↓ 1 callers
Function
StrideFixed
StrideFixed returns an array of N length substrings and does not allow the last element to have a length < N (e.g. no remainders).
utils.go:52
↓ 1 callers
Method
Warn
Warn message helper function
logger.go:156
↓ 1 callers
Function
makeConfig
Helper function to make the configuration.
cmd/memfs.go:129
↓ 1 callers
Function
signalHandler
=========================================================================== OS Signal Handlers =======================================================
cmd/memfs.go:19
Method
Access
Access checks whether the calling context has permission for the given operations on the receiver. If so, Access should return nil. If not, Access sho
node.go:161
Method
Attr
=========================================================================== Node Interface ===========================================================
node.go:132
Method
Create
=========================================================================== Dir fuse.Node* Interface =================================================
dir.go:53
Method
Destroy
Destroy is called when the file system is shutting down. Implements the fuse.FSDestroyer interface. Linux only sends this request for block device ba
memfs.go:164
Method
Fatal
Fatal message helper function
logger.go:166
Method
Flush
()
logger.go:226
Method
Forget
Forget about this node. This node will not receive further method calls. Forget is not necessarily seen on unmount, as all nodes are implicitly forgo
node.go:174
Method
Fsync
Fsync must be defined or edting with vim or emacs fails. Implements NodeFsyncer, which has no associated documentation. https://godoc.org/bazil.org/f
file.go:83
Method
FuseType
FuseType returns the fuse type of the node for listing
node.go:92
Method
GenerateInode
GenerateInode is called to pick a dynamic inode number when it would otherwise be 0. Implements the fuse.FSInodeGenerator interface. Not all filesyst
memfs.go:183
Method
GetNode
=========================================================================== File Methods =============================================================
file.go:40
Method
GetNode
GetNode returns a pointer to the embedded Node object
node.go:109
Method
GetNode
=========================================================================== Dir Methods ==============================================================
dir.go:40
Method
Getattr
Getattr obtains the standard metadata for the receiver. It should store that metadata in resp. If this method is not implemented, the attributes will
node.go:185
Method
Getxattr
Getxattr gets an extended attribute by the given name from the node. If there is no xattr by that name, returns fuse.ErrNoXattr. https://godoc.org/b
node.go:196
Method
Header
()
logger.go:199
Method
Init
Init the file and create the data array
file.go:27
Method
Init
Init a Node with the required properties for storage in the file system.
node.go:47
Method
Listxattr
Listxattr lists the extended attributes recorded for the node. https://godoc.org/bazil.org/fuse/fs#NodeListxattrer
node.go:215
Method
Lookup
Lookup looks up a specific entry in the receiver, which must be a directory. Lookup should return a Node corresponding to the entry. If the name doe
dir.go:253
Method
Mkdir
Link creates a new directory entry in the receiver based on an existing Node. Receiver must be a directory. A LinkRequest is a request to create a ha
dir.go:101
Method
ReadDirAll
Symlink creates a new symbolic link in the receiver, which must be a directory. TODO is the above true about directories? https://godoc.org/bazil.org
dir.go:292
Method
Remove
Mknode I assume creates but not opens a node and returns it. https://godoc.org/bazil.org/fuse/fs#NodeMknoder TODO: Implement func (d *Dir) Mknod(ctx
dir.go:149
Method
Removexattr
Open opens the receiver. After a successful open, a client process has a file descriptor referring to this Handle. Open can also be also called on no
node.go:255
Method
Rename
Rename a file in a directory. NOTE: There is no documentation on this. Implemented to move the entry by name from the dir to the newDir. https://godo
dir.go:197
Method
Setattr
Setattr sets the standard metadata for the receiver. Note, this is also used to communicate changes in the size of the file, outside of Writes. req.
node.go:283
Method
Setxattr
Setxattr sets an extended attribute with the given name and value. TODO: Use flags to fail the request if the xattr does/not already exist. https://g
node.go:381
Method
Statfs
Statfs is called to obtain file system metadata. Implements fuse.FSStatfser by writing the metadata to the resp.
memfs.go:189
Method
String
String representation of the log level.
logger.go:37
Function
TestMemfs
(t *testing.T)
memfs_suite_test.go:14
Function
WebLogger
WebLogger is a decorator for http handlers to record HTTP requests using the logger API and syntax, which must be passed in as the first argument.
logger.go:179
Method
Write
(b []byte)
logger.go:203
Method
WriteHeader
(s int)
logger.go:213
Function
init
()
memfs.go:31
Function
main
()
cmd/memfs.go:40
Function
runfs
(c *cli.Context)
cmd/memfs.go:77