Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MilenMT/torus
/ functions
Functions
1,324 in github.com/MilenMT/torus
⨍
Functions
1,324
◇
Types & classes
158
↓ 136 callers
Method
Intn
(n int)
models/rpc.pb.go:1071
↓ 97 callers
Method
Size
()
internal/nbd/nbd.go:78
↓ 89 callers
Method
Equal
(that interface{})
models/torus.pb.go:827
↓ 89 callers
Method
Marshal
()
ring.go:19
↓ 85 callers
Method
Unmarshal
Unmarshal parses the bytes representation of the Blockset and stores the result in the Blockset.
blockset.go:33
↓ 84 callers
Method
VerboseEqual
(that interface{})
models/torus.pb.go:775
↓ 65 callers
Method
Unlock
()
block/metadata.go:24
↓ 62 callers
Method
Close
()
storage.go:44
↓ 61 callers
Method
Lock
(lease int64)
block/metadata.go:23
↓ 54 callers
Function
die
(why string, args ...interface{})
cmd/torusctl/common.go:18
↓ 45 callers
Method
Intn
(n int)
models/torus.pb.go:1547
↓ 42 callers
Method
Version
()
ring.go:17
↓ 39 callers
Function
sovTorus
(x uint64)
models/torus.pb.go:1783
↓ 36 callers
Method
Close
()
distributor/protocols/protocols.go:19
↓ 34 callers
Function
encodeVarintTorus
(dAtA []byte, offset int, v uint64)
models/torus.pb.go:1403
↓ 33 callers
Method
Write
(b []byte)
file.go:132
↓ 27 callers
Method
String
String implements the fmt.Stringer interface.
blockset.go:44
↓ 26 callers
Method
GetBlock
GetBlock returns the ith block in the Blockset.
blockset.go:17
↓ 25 callers
Function
MkKey
(s ...string)
metadata/etcd/helpers.go:10
↓ 23 callers
Function
onErr
(err error)
cmd/torusblk/flex.go:374
↓ 21 callers
Method
Add
(b *BlockHeader)
storage/block_device/blockHeader.go:108
↓ 20 callers
Method
Read
(b []byte)
file.go:252
↓ 18 callers
Method
Uint32
()
models/torus.pb.go:1546
↓ 17 callers
Method
Close
()
internal/nbd/nbd.go:79
↓ 17 callers
Method
GetPeers
(key BlockRef)
ring.go:12
↓ 17 callers
Method
MarshalTo
(dAtA []byte)
models/torus.pb.go:1266
↓ 17 callers
Method
getContext
Context-sensitive calls
metadata/etcd/etcd.go:170
↓ 16 callers
Method
Sync
()
block/aoe/device.go:20
↓ 16 callers
Method
WriteBlock
(ctx context.Context, b BlockRef, data []byte)
storage.go:253
↓ 15 callers
Method
Volume
()
storage.go:57
↓ 14 callers
Method
Get
(key string)
distributor/lru.go:56
↓ 14 callers
Method
Seek
(offset int64, whence int)
file.go:295
↓ 13 callers
Function
NewPopulatedBlockRef
(r randyTorus, easy bool)
models/torus.pb.go:1522
↓ 13 callers
Function
pshort
poke a short into p at off
block/aoe/device.go:62
↓ 12 callers
Method
BlockSize
()
distributor/protocols/tdp/tdp_test.go:53
↓ 12 callers
Method
Flush
()
storage.go:43
↓ 12 callers
Function
mustConnectToMDS
()
cmd/torusctl/common.go:23
↓ 11 callers
Method
Equal
(b2 *BlockHeader)
storage/block_device/blockHeader.go:43
↓ 11 callers
Function
NewPopulatedBlockLayer
(r randyTorus, easy bool)
models/torus.pb.go:1436
↓ 11 callers
Function
NewPopulatedPeerInfo
(r randyTorus, easy bool)
models/torus.pb.go:1460
↓ 11 callers
Function
NewPopulatedRebalanceInfo
(r randyTorus, easy bool)
models/torus.pb.go:1480
↓ 11 callers
Method
PeerList
()
ring.go:139
↓ 11 callers
Method
ToBytes
()
storage.go:61
↓ 11 callers
Function
readConnIntoBuffer
(conn net.Conn, buf []byte)
distributor/protocols/tdp/tdp.go:134
↓ 10 callers
Method
Equal
(that interface{})
models/rpc.pb.go:435
↓ 10 callers
Function
NewPopulatedBlockRequest
(r randyRpc, easy bool)
models/rpc.pb.go:980
↓ 10 callers
Function
NewPopulatedBlockResponse
(r randyRpc, easy bool)
models/rpc.pb.go:990
↓ 10 callers
Function
NewPopulatedINode
(r randyTorus, easy bool)
models/torus.pb.go:1412
↓ 10 callers
Function
NewPopulatedINodeRef
(r randyTorus, easy bool)
models/torus.pb.go:1532
↓ 10 callers
Function
NewPopulatedPutBlockRequest
(r randyRpc, easy bool)
models/rpc.pb.go:1003
↓ 10 callers
Function
NewPopulatedPutResponse
(r randyRpc, easy bool)
models/rpc.pb.go:1026
↓ 10 callers
Function
NewPopulatedRebalanceCheckRequest
(r randyRpc, easy bool)
models/rpc.pb.go:1035
↓ 10 callers
Function
NewPopulatedRebalanceCheckResponse
(r randyRpc, easy bool)
models/rpc.pb.go:1049
↓ 10 callers
Function
NewPopulatedRing
(r randyTorus, easy bool)
models/torus.pb.go:1493
↓ 10 callers
Function
NewPopulatedVolume
(r randyTorus, easy bool)
models/torus.pb.go:1449
↓ 10 callers
Method
NumBlocks
()
storage.go:256
↓ 10 callers
Method
OpenBlockFile
()
block/blockfile.go:14
↓ 10 callers
Method
UUID
Returns a UUID based on the underlying datadir. Should be unique for every created datadir.
metadata.go:37
↓ 10 callers
Method
getContext
()
block/etcd.go:67
↓ 10 callers
Function
ioctl
ioctl() helper function
internal/nbd/nbd.go:64
↓ 9 callers
Method
BlockSize
()
storage.go:259
↓ 9 callers
Method
GetData
(x string)
metadata/temp/temp.go:245
↓ 9 callers
Method
GetRing
()
metadata.go:39
↓ 9 callers
Method
GlobalMetadata
GlobalMetadata backing struct must be instantiated upon the service creation. If it can not be created the MetadataService creation must fail.
metadata.go:33
↓ 9 callers
Method
LockData
()
metadata/temp/temp.go:237
↓ 9 callers
Method
PutBlock
PutBlock puts a block with data `b` into the Blockset as its ith block. The block belongs to the given inode.
blockset.go:20
↓ 9 callers
Method
String
()
storage/block_device_test.go:118
↓ 9 callers
Method
UnlockData
()
metadata/temp/temp.go:241
↓ 9 callers
Function
sovRpc
(x uint64)
models/rpc.pb.go:1215
↓ 8 callers
Function
Dial
(addr string, timeout time.Duration, blockSize uint64)
distributor/protocols/tdp/client.go:42
↓ 8 callers
Function
Serve
(addr string, handler Handler, blocksize uint64)
distributor/protocols/tdp/tdp.go:55
↓ 8 callers
Method
SetRing
(ring Ring)
metadata.go:42
↓ 8 callers
Method
ToProto
()
storage.go:72
↓ 8 callers
Function
encodeVarintRpc
(dAtA []byte, offset int, v uint64)
models/rpc.pb.go:971
↓ 8 callers
Function
makeTestData
(size int)
distributor/protocols/tdp/tdp_test.go:98
↓ 8 callers
Function
skipTorus
(dAtA []byte)
models/torus.pb.go:3091
↓ 7 callers
Method
CreateBlockVolume
(vol *models.Volume)
block/metadata.go:29
↓ 7 callers
Method
Serve
(iface *Interface)
block/aoe/aoe.go:116
↓ 7 callers
Function
createServer
()
cmd/torusctl/common.go:32
↓ 7 callers
Function
randStringTorus
(r randyTorus)
models/torus.pb.go:1559
↓ 6 callers
Method
GetSnapshots
()
block/metadata.go:33
↓ 6 callers
Method
Has
(uuid string)
ring.go:52
↓ 6 callers
Method
Length
Length returns the number of blocks in the Blockset.
blockset.go:13
↓ 6 callers
Method
ListenAddr
()
distributor/protocols/tdp/tdp.go:69
↓ 6 callers
Method
Members
()
ring.go:13
↓ 6 callers
Function
OpenBlockVolume
(s *torus.Server, volume string)
block/volume.go:93
↓ 6 callers
Method
ToBytesBuf
(buf []byte)
storage.go:121
↓ 6 callers
Method
Truncate
Truncate changes the length of the Blockset and the block. If the Blockset has less blocks than the required size, truncate adds zero blocks. If the b
blockset.go:40
↓ 6 callers
Method
UUID
()
distributor/distributor.go:73
↓ 6 callers
Function
Uint64ToHex
(x uint64)
metadata/etcd/helpers.go:34
↓ 6 callers
Function
encodeVarintPopulateRpc
(dAtA []byte, v uint64)
models/rpc.pb.go:1129
↓ 6 callers
Function
encodeVarintPopulateTorus
(dAtA []byte, v uint64)
models/torus.pb.go:1605
↓ 6 callers
Function
newServer
(t testing.TB, md *temp.Server)
integration/integration_test.go:30
↓ 6 callers
Function
skipRpc
(dAtA []byte)
models/rpc.pb.go:1833
↓ 6 callers
Function
stderr
(msg string, args ...interface{})
storage/block_device_test.go:22
↓ 6 callers
Function
stderr
(msg string, args ...interface{})
cmd/fsck.torus/lib/lib.go:11
↓ 6 callers
Function
writeResponse
(resp Response)
cmd/torusblk/flex.go:365
↓ 5 callers
Method
Block
(ctx context.Context, ref torus.BlockRef)
distributor/protocols/tdp/tdp.go:47
↓ 5 callers
Method
BlockIterator
()
storage.go:258
↓ 5 callers
Method
BlockRef
()
storage.go:266
next →
1–100 of 1,324, ranked by callers