Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cloudflare/ct-log
/ functions
Functions
172 in github.com/cloudflare/ct-log
⨍
Functions
172
◇
Types & classes
28
↓ 19 callers
Function
fatalf
(format string, args ...interface{})
cmd/admin/ct-log-tester/checks.go:39
↓ 13 callers
Function
simpleCheck
(out interface{}, err error)
cmd/admin/ct-log-tester/checks.go:50
↓ 12 callers
Method
GetSTHConsistency
GetSTHConsistency retrieves the consistency proof between two snapshots.
cmd/admin/ct-log-tester/log_client.go:39
↓ 11 callers
Function
keyB
(typ byte, treeID int64, val []byte)
custom/local.go:35
↓ 9 callers
Function
consistencyCheck
(proof [][]byte, err error)
cmd/admin/ct-log-tester/checks.go:60
↓ 8 callers
Method
Set
Add an item to the cache, replacing any existing item. If the duration is 0 (DefaultExpiration), the cache's default expiration time is used. If it is
ct/cache/cache.go:50
↓ 8 callers
Method
emit
(state fsmState)
ct/fsm.go:64
↓ 7 callers
Function
dupSlice
(in []byte)
custom/local.go:22
↓ 6 callers
Method
Get
Get an item from the cache. Returns the item or nil, and a bool indicating whether the key was found.
ct/cache/cache.go:74
↓ 6 callers
Function
generateNthCert
generateNthCert returns the n^th certificate that should be added to the log. It has "cert${n}.com" as a SAN, which allows tests to verify the correct
cmd/admin/ct-log-tester/generate.go:27
↓ 6 callers
Function
keyS
(typ byte, treeID int64, val string)
custom/local.go:31
↓ 5 callers
Method
GetProofByHash
GetProofByHash returns an audit path for the hash of an SCT.
cmd/admin/ct-log-tester/log_client.go:79
↓ 5 callers
Method
Read
(p []byte)
cmd/admin/ct-log-tester/internal/drand/drand.go:14
↓ 5 callers
Method
String
()
ct/fsm.go:21
↓ 5 callers
Function
rowkeyLeaf
(queueTimestamp int64, noise bool)
custom/local.go:377
↓ 4 callers
Method
GetEntryAndProof
GetEntryAndProof returns an entry and the audit path for the specified leaf.
cmd/admin/ct-log-tester/log_client.go:92
↓ 4 callers
Method
GetRawEntries
GetRawEntries exposes the /ct/v1/get-entries result with only the JSON parsing done.
cmd/admin/ct-log-tester/log_client.go:53
↓ 4 callers
Method
Head
()
custom/frontier/frontier.go:34
↓ 4 callers
Method
MostRecentRoot
MostRecentRoot returns most-recently committed root for the tree with the given treeID.
custom/local.go:57
↓ 4 callers
Method
WaitForSTH
WaitForSTH repeatedly polls the get-sth endpoint and stops blocking with the STH's tree size is `treeSize`.
cmd/admin/ct-log-tester/log_client.go:22
↓ 4 callers
Function
dupSlice
(in []byte)
ct/tree_tx.go:27
↓ 4 callers
Function
hashDomain
(domain byte, slices ...[]byte)
custom/frontier/frontier.go:54
↓ 4 callers
Function
manyEntryAndProofChecks
(ctx context.Context, client *LogClient, treeSize int64, sh *ct.SignedTreeHead)
cmd/admin/ct-log-tester/checks.go:139
↓ 4 callers
Function
manyEntryChecks
(ctx context.Context, client *LogClient, treeSize int64)
cmd/admin/ct-log-tester/checks.go:108
↓ 4 callers
Function
manyProofChecks
(ctx context.Context, client *LogClient, treeSize int64, sh *ct.SignedTreeHead)
cmd/admin/ct-log-tester/checks.go:74
↓ 4 callers
Function
parseTime
(in string)
config/config.go:318
↓ 3 callers
Method
Append
Append adds the merkle hash `h` as the right-most node of the tree.
custom/frontier/frontier.go:17
↓ 3 callers
Method
GetLeaves
(ctx context.Context, treeID int64, seqs []int64)
custom/remote.go:63
↓ 3 callers
Function
dupLeaf
(leaf *trillian.LogLeaf)
ct/tree_tx.go:36
↓ 2 callers
Method
Close
()
ct/tree_tx.go:273
↓ 2 callers
Method
Close
()
ct/read_tree_tx.go:176
↓ 2 callers
Method
Expired
Returns true if the item has expired.
ct/cache/cache.go:18
↓ 2 callers
Method
PutLeaves
PutLeaves creates the index entries that let leaves be looked up by merkle/identity hash. It is assumed that seqs[i] corresponds to merkleHashes[i], c
custom/local.go:308
↓ 2 callers
Method
WriteRevision
WriteRevision returns the tree revision that any writes through this logTreeTX will be stored at.
ct/tree_tx.go:74
↓ 2 callers
Method
getBatch
(ctx context.Context, treeID, batch int64)
custom/remote.go:97
↓ 2 callers
Method
getSequenceBy
(typ byte, treeID int64, hashes [][]byte)
custom/local.go:162
↓ 2 callers
Method
getSubtrees
(ctx context.Context, treeRevision int64, ids []storage.NodeID)
ct/read_tree_tx.go:160
↓ 2 callers
Function
parseKeypair
(meta logMeta)
config/config.go:291
↓ 2 callers
Method
queueLeaf
(ctx context.Context, leaf *trillian.LogLeaf, queueTimestamp time.Time)
ct/tree_tx.go:105
↓ 2 callers
Function
rowkeyNodeID
(treeRevision int64, id storage.NodeID)
custom/local.go:390
↓ 1 callers
Method
Begin
()
custom/local.go:258
↓ 1 callers
Method
Close
()
ct/read_log_tx.go:53
↓ 1 callers
Method
Commit
()
ct/tree_tx.go:247
↓ 1 callers
Method
Commit
()
ct/read_log_tx.go:44
↓ 1 callers
Method
DeleteExpired
Delete all expired items from the cache.
ct/cache/cache.go:87
↓ 1 callers
Method
GetLatestSignedLogRoot
(ctx context.Context, req *trillian.GetLatestSignedLogRootRequest, opts ...grpc.CallOption)
cmd/server/client.go:142
↓ 1 callers
Method
GetLeavesByIndex
GetLeavesByIndex returns leaf metadata and data for a set of specified sequenced leaf indexes.
ct/read_tree_tx.go:49
↓ 1 callers
Method
GetMerkleNodes
GetMerkleNodes looks up the set of nodes identified by ids, at treeRevision, and returns them.
ct/read_tree_tx.go:150
↓ 1 callers
Method
GetRawLeaf
GetRawLeaf returns the LeafInput of the entry at `index`.
cmd/admin/ct-log-tester/log_client.go:67
↓ 1 callers
Method
GetSequenceByIdentityHash
GetSequenceByIdentityHash returns the sequence numbers for the leaves with the given identity hashes, in the tree with the given tree id. Missing sequ
custom/local.go:154
↓ 1 callers
Method
GetSequenceByMerkleHash
GetSequenceByMerkleHash returns the sequence numbers for the leaves with the given Merkle hashes, in the tree with the given tree id. Missing sequence
custom/local.go:143
↓ 1 callers
Method
GetSubtrees
GetSubtrees returns the most recent revision ( <= treeRevision ) of each subtree with a given id. Missing subtrees are silently elided.
custom/local.go:191
↓ 1 callers
Method
InitLog
(ctx context.Context, req *trillian.InitLogRequest, opts ...grpc.CallOption)
cmd/server/client.go:214
↓ 1 callers
Method
ListTrees
ListTrees returns all trees in storage.
config/admin_storage.go:63
↓ 1 callers
Method
PutSubtrees
PutSubtrees serializes the subtrees and writes them to disk, indexed by their id. It is assumed that ids[i] corresponds to subtrees[i].
custom/local.go:328
↓ 1 callers
Method
QueueLeaves
QueueLeaves enqueues leaves for later integration into the tree. If error is nil, the returned slice of leaves will be the same size as the input, an
ct/tree_tx.go:88
↓ 1 callers
Method
ReadRevision
ReadRevision returns the tree revision that was current at the time this transaction was started.
ct/read_tree_tx.go:37
↓ 1 callers
Method
Rollback
()
ct/tree_tx.go:265
↓ 1 callers
Method
Run
(c *cache)
ct/cache/cache.go:108
↓ 1 callers
Method
StoreRoot
(treeID int64, root trillian.SignedLogRoot, front frontier.Frontier)
custom/local.go:348
↓ 1 callers
Method
Unsequenced
Unsequenced returns the number of unsequenced leaves that a log has on disk.
custom/local.go:116
↓ 1 callers
Method
WatchLog
WatchLog spawns a goroutine to keep track of the number of unsequenced leaves in the log with the given treeID.
ct/quota_manager.go:53
↓ 1 callers
Function
addLeaf
(treeID int64, leaf *trillian.LogLeaf)
ct/tree_tx.go:46
↓ 1 callers
Function
awaitSignal
awaitSignal waits for standard termination signals, then exits the process.
cmd/server/main.go:228
↓ 1 callers
Method
beginForTree
beginForTree starts a transaction for the specified treeID.
ct/log_storage.go:78
↓ 1 callers
Function
entriesCheck
(entries []ct.LogEntry, err error)
cmd/admin/ct-log-tester/checks.go:117
↓ 1 callers
Function
entryAndProofCheck
(resp *ct.GetEntryAndProofResponse, err error)
cmd/admin/ct-log-tester/checks.go:147
↓ 1 callers
Method
evictAt
(i int)
ct/cache/cache.go:204
↓ 1 callers
Function
getBounds
(search)
devdata/get-entries.js:12
↓ 1 callers
Function
getLeafByIdentityHash
(treeID int64, id []byte)
ct/tree_tx.go:53
↓ 1 callers
Method
getSequenceByIdentityHash
(ctx context.Context, id []byte)
ct/tree_tx.go:137
↓ 1 callers
Method
getSubtree
(ctx context.Context, treeRevision int64, nodeID storage.NodeID)
ct/read_tree_tx.go:164
↓ 1 callers
Method
getSubtree
(treeID, treeRevision int64, id storage.NodeID)
custom/local.go:206
↓ 1 callers
Method
getSubtreesAtRev
(ctx context.Context, treeRevision int64)
ct/read_tree_tx.go:154
↓ 1 callers
Method
getTokens
(ctx context.Context, numTokens int, spec quota.Spec)
ct/quota_manager.go:107
↓ 1 callers
Function
handleRequest
(request)
devdata/get-entries.js:76
↓ 1 callers
Method
insert
(key string)
ct/cache/cache.go:178
↓ 1 callers
Function
logConfig
(meta logMeta)
config/config.go:205
↓ 1 callers
Function
metrics
(qm *ct.QuotaManager, metricsList net.Listener)
cmd/server/metrics.go:33
↓ 1 callers
Function
newCache
(de time.Duration, maxSize int, m map[string]Item)
ct/cache/cache.go:134
↓ 1 callers
Function
newCacheWithJanitor
(de time.Duration, ci time.Duration, maxSize int, m map[string]Item)
ct/cache/cache.go:146
↓ 1 callers
Function
proofCheck
(resp *ct.GetProofByHashResponse, err error)
cmd/admin/ct-log-tester/checks.go:87
↓ 1 callers
Method
putTokens
(ctx context.Context, numTokens int, spec quota.Spec)
ct/quota_manager.go:145
↓ 1 callers
Function
rangeNodeID
(treeRevision int64, id storage.NodeID)
custom/local.go:411
↓ 1 callers
Function
readTree
(meta logMeta)
config/config.go:237
↓ 1 callers
Function
runJanitor
(c *cache, ci time.Duration)
ct/cache/cache.go:125
↓ 1 callers
Function
transformJSON
(bounds, leaves)
devdata/get-entries.js:41
Method
AddSequencedLeaf
(ctx context.Context, req *trillian.AddSequencedLeafRequest, opts ...grpc.CallOption)
cmd/server/client.go:46
Method
AddSequencedLeaves
(ctx context.Context, leaves []*trillian.LogLeaf, ts time.Time)
ct/tree_tx.go:158
Method
AddSequencedLeaves
AddSequencedLeaves stores the `leaves` and associates them with the log positions according to their `LeafIndex` field. The indices must be contiguous
ct/log_storage.go:162
Method
AddSequencedLeaves
(ctx context.Context, req *trillian.AddSequencedLeavesRequest, opts ...grpc.CallOption)
cmd/server/client.go:262
Method
CheckDatabaseAccessible
CheckDatabaseAccessible returns nil if the database is accessible, error otherwise.
ct/log_storage.go:35
Method
CheckDatabaseAccessible
CheckDatabaseAccessible checks whether we are able to connect to / open the underlying storage.
config/admin_storage.go:27
Method
Close
()
config/admin_storage.go:37
Method
Commit
()
ct/read_tree_tx.go:181
Method
Commit
()
custom/local.go:361
Method
Commit
()
config/admin_storage.go:35
Method
CreateTree
CreateTree inserts the specified tree in storage, returning a tree with all storage-generated fields set.
config/admin_storage.go:69
Method
DequeueLeaves
DequeueLeaves will return between [0, limit] leaves from the queue. Leaves which have been dequeued within a rolled-back tx will become available for
ct/tree_tx.go:150
Method
DequeueLeaves
(treeID, seq, cutoffTime int64, limit int)
custom/local.go:272
next →
1–100 of 172, ranked by callers