MCPcopy Create free account

hub / github.com/bbengfort/memfs / functions

Functions79 in github.com/bbengfort/memfs

↓ 37 callersMethodDebug
Debug message helper function
logger.go:146
↓ 18 callersMethodInit
Init the directory with the required properties for the directory.
dir.go:26
↓ 15 callersFunctionLevelFromString
LevelFromString parses a string and returns the LogLevel
logger.go:42
↓ 14 callersFunctionrandString
Create a random string of length n
memfs_suite_test.go:27
↓ 12 callersMethodInfo
Info message helper function
logger.go:151
↓ 12 callersMethodPath
Returns the fuse type for listing
node.go:28
↓ 11 callersMethodString
String returns the full path to the node.
node.go:114
↓ 9 callersMethodLog
=========================================================================== Logging handlers =========================================================
logger.go:127
↓ 7 callersMethodIsArchive
Returns true if the entity is a directory
node.go:26
↓ 7 callersMethodWrite
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 callersMethodError
Error message helper function
logger.go:161
↓ 4 callersFunctionBlocks
Blocks returns the number of 512 byte blocks required
utils.go:93
↓ 4 callersFunctionInitLogger
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 callersMethodRead
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 callersFunctionmakeTestConfig
()
config_test.go:13
↓ 3 callersMethodIsArchive
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 callersMethodIsDir
()
node.go:25
↓ 3 callersMethodSetattr
=========================================================================== File fuse.Node* Interface ================================================
file.go:58
↓ 3 callersMethodSize
()
logger.go:222
↓ 2 callersMethodGetNode
Returns the full path to the entity
node.go:29
↓ 2 callersMethodIsDir
=========================================================================== Node Methods =============================================================
node.go:80
↓ 2 callersFunctionListContains
=========================================================================== String Collection Helpers ================================================
utils.go:68
↓ 2 callersMethodLoad
=========================================================================== Config Methods ===========================================================
config.go:37
↓ 2 callersFunctionNew
=========================================================================== New MemFS File System ====================================================
memfs.go:41
↓ 2 callersMethodRoot
=========================================================================== Implement fuse.FS* Methods ===============================================
memfs.go:154
↓ 2 callersMethodRun
Run the FileSystem, mounting the MountPoint and connecting to FUSE
memfs.go:90
↓ 2 callersFunctionStride
Stride returns an array of N length substrings.
utils.go:26
↓ 1 callersMethodClose
Close the logger and any open file handles.
logger.go:102
↓ 1 callersMethodDump
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 callersMethodFlush
=========================================================================== File fuse.Handle* Interface ==============================================
file.go:102
↓ 1 callersMethodFuseType
Returns true if the entity is an archive (version history)
node.go:27
↓ 1 callersMethodGetHandler
GetHandler returns the io.Writer object that is on the logger.
logger.go:110
↓ 1 callersFunctionMaxUInt64
=========================================================================== Numeric Helpers ==========================================================
utils.go:82
↓ 1 callersFunctionPackageVersion
=========================================================================== Version and Package Information ==========================================
memfs.go:220
↓ 1 callersMethodPath
Path returns a string representation of the full path of the node.
node.go:101
↓ 1 callersFunctionRegularize
=========================================================================== String Helpers ===========================================================
utils.go:19
↓ 1 callersMethodSetHandler
SetHandler sets a new io.WriteCloser object onto the logger
logger.go:115
↓ 1 callersMethodShutdown
Shutdown the FileSystem unmounting the MountPoint and disconnecting FUSE.
memfs.go:134
↓ 1 callersMethodStatus
()
logger.go:218
↓ 1 callersFunctionStrideFixed
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 callersMethodWarn
Warn message helper function
logger.go:156
↓ 1 callersFunctionmakeConfig
Helper function to make the configuration.
cmd/memfs.go:129
↓ 1 callersFunctionsignalHandler
=========================================================================== OS Signal Handlers =======================================================
cmd/memfs.go:19
MethodAccess
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
MethodAttr
=========================================================================== Node Interface ===========================================================
node.go:132
MethodCreate
=========================================================================== Dir fuse.Node* Interface =================================================
dir.go:53
MethodDestroy
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
MethodFatal
Fatal message helper function
logger.go:166
MethodFlush
()
logger.go:226
MethodForget
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
MethodFsync
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
MethodFuseType
FuseType returns the fuse type of the node for listing
node.go:92
MethodGenerateInode
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
MethodGetNode
=========================================================================== File Methods =============================================================
file.go:40
MethodGetNode
GetNode returns a pointer to the embedded Node object
node.go:109
MethodGetNode
=========================================================================== Dir Methods ==============================================================
dir.go:40
MethodGetattr
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
MethodGetxattr
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
MethodHeader
()
logger.go:199
MethodInit
Init the file and create the data array
file.go:27
MethodInit
Init a Node with the required properties for storage in the file system.
node.go:47
MethodListxattr
Listxattr lists the extended attributes recorded for the node. https://godoc.org/bazil.org/fuse/fs#NodeListxattrer
node.go:215
MethodLookup
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
MethodMkdir
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
MethodReadDirAll
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
MethodRemove
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
MethodRemovexattr
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
MethodRename
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
MethodSetattr
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
MethodSetxattr
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
MethodStatfs
Statfs is called to obtain file system metadata. Implements fuse.FSStatfser by writing the metadata to the resp.
memfs.go:189
MethodString
String representation of the log level.
logger.go:37
FunctionTestMemfs
(t *testing.T)
memfs_suite_test.go:14
FunctionWebLogger
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
MethodWrite
(b []byte)
logger.go:203
MethodWriteHeader
(s int)
logger.go:213
Functioninit
()
memfs.go:31
Functionmain
()
cmd/memfs.go:40
Functionrunfs
(c *cli.Context)
cmd/memfs.go:77