Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/brendoncarroll/webfs
/ functions
Functions
416 in github.com/brendoncarroll/webfs
⨍
Functions
416
◇
Types & classes
47
↓ 201 callers
Method
Struct
()
src/internal/wfscnp/webfs.capnp.go:500
↓ 26 callers
Method
ToPtr
()
src/internal/wfscnp/webfs.capnp.go:473
↓ 26 callers
Function
toErrno
(err error)
src/webfsfuse/webfsfuse.go:779
↓ 18 callers
Method
Segment
()
src/internal/wfscnp/webfs.capnp.go:484
↓ 18 callers
Method
modify
(ctx context.Context, fn func(*webfs.FSTx) error)
src/webfsfuse/txcoord.go:24
↓ 16 callers
Method
Marshal
(out []byte)
src/webfs/file.go:28
↓ 13 callers
Method
Message
()
src/internal/wfscnp/webfs.capnp.go:480
↓ 13 callers
Method
getNode
getNode assumes the lock is held
src/webfs/fstx.go:117
↓ 13 callers
Function
rootINode
()
src/webfs/models.go:24
↓ 12 callers
Method
Root
()
src/webfsfuse/webfsfuse.go:80
↓ 12 callers
Function
modify
(t testing.TB, sys *System, ctx context.Context, vcfg VolumeConfig, f func(tx *Tx) error)
src/webfs/webfs_test.go:527
↓ 10 callers
Method
Get
(ctx context.Context, s bcsdk.RO, ref gdat.Ref)
src/internal/gdatcache/gdatcache.go:32
↓ 10 callers
Method
Payload
()
src/internal/wfscnp/webfs.capnp.go:287
↓ 9 callers
Method
CreateFileAt
(ctx context.Context, parent INode, name string, mode fs.FileMode, fp FileParams)
src/webfs/file.go:56
↓ 9 callers
Method
Flush
Flush writes out the changes to the store and returns a new root.
src/webfs/fstx.go:80
↓ 9 callers
Method
IsValid
()
src/internal/wfscnp/webfs.capnp.go:476
↓ 9 callers
Method
putNode
putNode overwrites a node. It requires the lock.
src/webfs/fstx.go:146
↓ 9 callers
Function
setupVol
(t testing.TB)
src/webfs/webfs_test.go:508
↓ 8 callers
Method
DecodeFromPtr
(p capnp.Ptr)
src/internal/wfscnp/webfs.capnp.go:469
↓ 8 callers
Method
EncodeAsPtr
(seg *capnp.Segment)
src/internal/wfscnp/webfs.capnp.go:465
↓ 8 callers
Method
SetLock
(ctx context.Context, sessionID inet256.ID, owner uint64, ino INode, kind LockKind, start, length uint64)
src/webfs/locks.go:50
↓ 8 callers
Method
WriteAt
WriteAt writes the contents of buf, starting at offset within the file.
src/webfs/file.go:352
↓ 8 callers
Method
view
(ctx context.Context, fn func(*webfs.FSTx) error)
src/webfsfuse/txcoord.go:15
↓ 7 callers
Function
DefaultPKI
()
src/webfs/webfs.go:54
↓ 7 callers
Method
DeriveSiging
()
src/webfs/webfs.go:45
↓ 7 callers
Method
GetChild
GetChild looks for an entry in the directory at ino with name and returns it. If it does not exist than an ErrNotExist is returned
src/webfs/dir.go:273
↓ 7 callers
Function
NewSystem
(svc blobcache.Service, pki inet256.PKI)
src/webfs/webfs.go:74
↓ 7 callers
Method
SetNanoseconds
(v uint32)
src/internal/wfscnp/webfs.capnp.go:125
↓ 7 callers
Method
SetSeconds
(v uint64)
src/internal/wfscnp/webfs.capnp.go:117
↓ 7 callers
Method
SetXAttr
(ctx context.Context, ino INode, key XAttrKey, value []byte)
src/webfs/xattrs.go:20
↓ 7 callers
Method
ensureSession
ensureSession assumes the lock is held
src/webfs/session.go:24
↓ 7 callers
Method
refreshStats
(ctx context.Context)
src/webfsfuse/webfsfuse.go:739
↓ 6 callers
Method
Error
()
src/webfs/error.go:14
↓ 6 callers
Method
LockCount
()
src/internal/wfscnp/webfs.capnp.go:778
↓ 6 callers
Method
ReadAt
(ctx context.Context, ino INode, offset int64, buf []byte)
src/webfs/file.go:417
↓ 6 callers
Method
Unmarshal
(data []byte)
src/webfs/file.go:34
↓ 6 callers
Function
appendRoot
(out []byte, root gotkv.Root)
src/webfs/models.go:119
↓ 6 callers
Method
getDir
getDir assumes the lock is held
src/webfs/dir.go:24
↓ 6 callers
Function
makeDirEntKey
(out []byte, ino INode, name string)
src/webfs/dir.go:303
↓ 6 callers
Function
readRoot
(data []byte)
src/webfs/models.go:123
↓ 6 callers
Function
requireSessionValue
(t testing.TB, ctx context.Context, sys *System, tx *Tx, pubKey inet256.PublicKey, id inet256.ID)
src/webfs/webfs_test.go:455
↓ 5 callers
Method
Abort
(ctx context.Context)
src/webfs/webfs.go:416
↓ 5 callers
Method
GetMode
(ctx context.Context, ino INode)
src/webfs/file.go:150
↓ 5 callers
Method
GetXAttr
(ctx context.Context, ino INode, key XAttrKey)
src/webfs/xattrs.go:35
↓ 5 callers
Method
Read
(ctx context.Context, _ fs.FileHandle, dest []byte, off int64)
src/webfsfuse/webfsfuse.go:186
↓ 5 callers
Method
Seconds
()
src/internal/wfscnp/webfs.capnp.go:113
↓ 5 callers
Method
Size
()
src/internal/wfscnp/webfs.capnp.go:552
↓ 5 callers
Method
StatFile
(ctx context.Context, ino INode)
src/webfs/file.go:182
↓ 5 callers
Method
Which
()
src/internal/wfscnp/webfs.capnp.go:289
↓ 5 callers
Function
fuseMode
(mode iofs.FileMode)
src/webfsfuse/webfsfuse.go:728
↓ 5 callers
Method
getChild
getChild assumes the lock is held.
src/webfs/dir.go:280
↓ 5 callers
Method
getFile
getFile assumes the lock is held
src/webfs/file.go:109
↓ 4 callers
Method
FindConflictingLock
(ctx context.Context, ino INode, sessionID inet256.ID, owner uint64, kind LockKind, start, length uint64)
src/webfs/locks.go:59
↓ 4 callers
Method
Nanoseconds
()
src/internal/wfscnp/webfs.capnp.go:121
↓ 4 callers
Function
NewTAI64N
(s *capnp.Segment)
src/internal/wfscnp/webfs.capnp.go:71
↓ 4 callers
Method
RefCount
()
src/internal/wfscnp/webfs.capnp.go:263
↓ 4 callers
Method
SetRefCount
(v uint32)
src/internal/wfscnp/webfs.capnp.go:267
↓ 4 callers
Method
Start
()
src/internal/wfscnp/webfs.capnp.go:877
↓ 4 callers
Method
Unlink
(ctx context.Context, targets []blobcache.LinkTokenID)
src/webfs/fstx.go:21
↓ 4 callers
Function
extKey
(ino INode, endAt uint64)
src/webfs/file.go:209
↓ 4 callers
Method
getLock
getLock assumes the lock is held
src/webfs/locks.go:104
↓ 4 callers
Method
getSession
getSession reads and validates a session getSession assumes the lock is held
src/webfs/session.go:120
↓ 4 callers
Method
newChild
(ctx context.Context, ino webfs.INode, out *fuse.EntryOut)
src/webfsfuse/webfsfuse.go:688
↓ 4 callers
Function
newService
()
src/wfscmd/rootcmd.go:216
↓ 4 callers
Function
openSigned
openSigned verifies and returns a value from within a signed envelope
src/webfs/webfs.go:504
↓ 4 callers
Function
readCNPTime
(t testing.TB, get func() (wfscnp.TAI64N, error))
src/webfs/webfs_test.go:465
↓ 4 callers
Function
sealSigned
sealSigned creates a new signed envelope and appends it to out.
src/webfs/webfs.go:529
↓ 4 callers
Function
setCNPTime
(dst wfscnp.TAI64N, t tai64.TAI64N)
src/webfs/session.go:309
↓ 4 callers
Function
setNodeMode
(node wfscnp.Node, mode fs.FileMode)
src/webfs/file.go:131
↓ 4 callers
Method
setSize
(sz uint64)
src/webfsfuse/webfsfuse.go:710
↓ 4 callers
Function
view
(t testing.TB, sys *System, ctx context.Context, vcfg VolumeConfig, f func(tx *Tx) error)
src/webfs/webfs_test.go:539
↓ 3 callers
Method
Commit
(ctx context.Context)
src/webfs/webfs.go:424
↓ 3 callers
Method
CreateAt
()
src/internal/wfscnp/webfs.capnp.go:722
↓ 3 callers
Method
EnsureSession
(ctx context.Context, now tai64.TAI64N)
src/webfs/locks.go:37
↓ 3 callers
Method
FQOID
()
src/webfs/webfs.go:50
↓ 3 callers
Method
GenerateConfig
(fqoid blobcache.FQOID)
src/webfs/webfs.go:85
↓ 3 callers
Method
GetLock
(ctx context.Context, ino INode, sessionID inet256.ID, owner uint64)
src/webfs/locks.go:44
↓ 3 callers
Method
Initialize
Initialize initializes a new webfs filesystem in a volume using config. The volume must have an empty cell.
src/webfs/webfs.go:114
↓ 3 callers
Method
Kind
()
src/internal/wfscnp/webfs.capnp.go:869
↓ 3 callers
Method
Length
()
src/internal/wfscnp/webfs.capnp.go:885
↓ 3 callers
Function
New
(sys *webfs.System, pki inet256.PKI, rootCfg webfs.VolumeConfig)
src/webfsfuse/webfsfuse.go:68
↓ 3 callers
Method
NewDir
NewDir sets the dir field to a newly allocated Dir struct, preferring placement in s's segment.
src/internal/wfscnp/webfs.capnp.go:357
↓ 3 callers
Method
NewModifiedAt
NewModifiedAt sets the modifiedAt field to a newly allocated TAI64N struct, preferring placement in s's segment.
src/internal/wfscnp/webfs.capnp.go:254
↓ 3 callers
Function
NewRootNode
(s *capnp.Segment)
src/internal/wfscnp/webfs.capnp.go:178
↓ 3 callers
Method
SessionExists
(ctx context.Context, id inet256.ID)
src/webfs/session.go:62
↓ 3 callers
Method
SetSize
(v uint64)
src/internal/wfscnp/webfs.capnp.go:556
↓ 3 callers
Method
TouchedAt
()
src/internal/wfscnp/webfs.capnp.go:754
↓ 3 callers
Function
checkName
(name string)
src/webfs/dir.go:311
↓ 3 callers
Function
checkXAttrKey
(key XAttrKey)
src/webfs/xattrs.go:101
↓ 3 callers
Method
editSession
editSession assumes the lock is held
src/webfs/session.go:157
↓ 3 callers
Function
fsErrNotExist
(err error)
src/webfs/locks.go:302
↓ 3 callers
Method
getMode
(ctx context.Context, ino INode)
src/webfs/file.go:156
↓ 3 callers
Method
getPKCache
(fqoid blobcache.FQOID, hashAlgo blobcache.HashAlgo)
src/webfs/webfs.go:257
↓ 3 callers
Method
link
(ctx context.Context, ino INode, name string, child INode)
src/webfs/dir.go:89
↓ 3 callers
Function
locksConflict
(kindA LockKind, startA, lengthA uint64, kindB LockKind, startB, lengthB uint64)
src/webfs/locks.go:276
↓ 3 callers
Function
makeLockKey
(out []byte, ino INode, sessionID inet256.ID, owner uint64)
src/webfs/locks.go:221
↓ 3 callers
Function
makeXAttrKey
(out []byte, ino INode, key XAttrKey)
src/webfs/xattrs.go:95
↓ 3 callers
Function
putTestSession
(ctx context.Context, tx *Tx, privKey inet256.PrivateKey, touchedAt tai64.TAI64N, ttl uint32)
src/webfs/webfs_test.go:472
↓ 3 callers
Method
startAt
()
src/webfs/file.go:503
↓ 3 callers
Method
writeExtents
writeExtents writes data across as many extents as needed.
src/webfs/file.go:331
next →
1–100 of 416, ranked by callers