MCPcopy Create free account

hub / github.com/cloudflare/ct-log / functions

Functions172 in github.com/cloudflare/ct-log

↓ 19 callersFunctionfatalf
(format string, args ...interface{})
cmd/admin/ct-log-tester/checks.go:39
↓ 13 callersFunctionsimpleCheck
(out interface{}, err error)
cmd/admin/ct-log-tester/checks.go:50
↓ 12 callersMethodGetSTHConsistency
GetSTHConsistency retrieves the consistency proof between two snapshots.
cmd/admin/ct-log-tester/log_client.go:39
↓ 11 callersFunctionkeyB
(typ byte, treeID int64, val []byte)
custom/local.go:35
↓ 9 callersFunctionconsistencyCheck
(proof [][]byte, err error)
cmd/admin/ct-log-tester/checks.go:60
↓ 8 callersMethodSet
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 callersMethodemit
(state fsmState)
ct/fsm.go:64
↓ 7 callersFunctiondupSlice
(in []byte)
custom/local.go:22
↓ 6 callersMethodGet
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 callersFunctiongenerateNthCert
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 callersFunctionkeyS
(typ byte, treeID int64, val string)
custom/local.go:31
↓ 5 callersMethodGetProofByHash
GetProofByHash returns an audit path for the hash of an SCT.
cmd/admin/ct-log-tester/log_client.go:79
↓ 5 callersMethodRead
(p []byte)
cmd/admin/ct-log-tester/internal/drand/drand.go:14
↓ 5 callersMethodString
()
ct/fsm.go:21
↓ 5 callersFunctionrowkeyLeaf
(queueTimestamp int64, noise bool)
custom/local.go:377
↓ 4 callersMethodGetEntryAndProof
GetEntryAndProof returns an entry and the audit path for the specified leaf.
cmd/admin/ct-log-tester/log_client.go:92
↓ 4 callersMethodGetRawEntries
GetRawEntries exposes the /ct/v1/get-entries result with only the JSON parsing done.
cmd/admin/ct-log-tester/log_client.go:53
↓ 4 callersMethodHead
()
custom/frontier/frontier.go:34
↓ 4 callersMethodMostRecentRoot
MostRecentRoot returns most-recently committed root for the tree with the given treeID.
custom/local.go:57
↓ 4 callersMethodWaitForSTH
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 callersFunctiondupSlice
(in []byte)
ct/tree_tx.go:27
↓ 4 callersFunctionhashDomain
(domain byte, slices ...[]byte)
custom/frontier/frontier.go:54
↓ 4 callersFunctionmanyEntryAndProofChecks
(ctx context.Context, client *LogClient, treeSize int64, sh *ct.SignedTreeHead)
cmd/admin/ct-log-tester/checks.go:139
↓ 4 callersFunctionmanyEntryChecks
(ctx context.Context, client *LogClient, treeSize int64)
cmd/admin/ct-log-tester/checks.go:108
↓ 4 callersFunctionmanyProofChecks
(ctx context.Context, client *LogClient, treeSize int64, sh *ct.SignedTreeHead)
cmd/admin/ct-log-tester/checks.go:74
↓ 4 callersFunctionparseTime
(in string)
config/config.go:318
↓ 3 callersMethodAppend
Append adds the merkle hash `h` as the right-most node of the tree.
custom/frontier/frontier.go:17
↓ 3 callersMethodGetLeaves
(ctx context.Context, treeID int64, seqs []int64)
custom/remote.go:63
↓ 3 callersFunctiondupLeaf
(leaf *trillian.LogLeaf)
ct/tree_tx.go:36
↓ 2 callersMethodClose
()
ct/tree_tx.go:273
↓ 2 callersMethodClose
()
ct/read_tree_tx.go:176
↓ 2 callersMethodExpired
Returns true if the item has expired.
ct/cache/cache.go:18
↓ 2 callersMethodPutLeaves
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 callersMethodWriteRevision
WriteRevision returns the tree revision that any writes through this logTreeTX will be stored at.
ct/tree_tx.go:74
↓ 2 callersMethodgetBatch
(ctx context.Context, treeID, batch int64)
custom/remote.go:97
↓ 2 callersMethodgetSequenceBy
(typ byte, treeID int64, hashes [][]byte)
custom/local.go:162
↓ 2 callersMethodgetSubtrees
(ctx context.Context, treeRevision int64, ids []storage.NodeID)
ct/read_tree_tx.go:160
↓ 2 callersFunctionparseKeypair
(meta logMeta)
config/config.go:291
↓ 2 callersMethodqueueLeaf
(ctx context.Context, leaf *trillian.LogLeaf, queueTimestamp time.Time)
ct/tree_tx.go:105
↓ 2 callersFunctionrowkeyNodeID
(treeRevision int64, id storage.NodeID)
custom/local.go:390
↓ 1 callersMethodBegin
()
custom/local.go:258
↓ 1 callersMethodClose
()
ct/read_log_tx.go:53
↓ 1 callersMethodCommit
()
ct/tree_tx.go:247
↓ 1 callersMethodCommit
()
ct/read_log_tx.go:44
↓ 1 callersMethodDeleteExpired
Delete all expired items from the cache.
ct/cache/cache.go:87
↓ 1 callersMethodGetLatestSignedLogRoot
(ctx context.Context, req *trillian.GetLatestSignedLogRootRequest, opts ...grpc.CallOption)
cmd/server/client.go:142
↓ 1 callersMethodGetLeavesByIndex
GetLeavesByIndex returns leaf metadata and data for a set of specified sequenced leaf indexes.
ct/read_tree_tx.go:49
↓ 1 callersMethodGetMerkleNodes
GetMerkleNodes looks up the set of nodes identified by ids, at treeRevision, and returns them.
ct/read_tree_tx.go:150
↓ 1 callersMethodGetRawLeaf
GetRawLeaf returns the LeafInput of the entry at `index`.
cmd/admin/ct-log-tester/log_client.go:67
↓ 1 callersMethodGetSequenceByIdentityHash
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 callersMethodGetSequenceByMerkleHash
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 callersMethodGetSubtrees
GetSubtrees returns the most recent revision ( <= treeRevision ) of each subtree with a given id. Missing subtrees are silently elided.
custom/local.go:191
↓ 1 callersMethodInitLog
(ctx context.Context, req *trillian.InitLogRequest, opts ...grpc.CallOption)
cmd/server/client.go:214
↓ 1 callersMethodListTrees
ListTrees returns all trees in storage.
config/admin_storage.go:63
↓ 1 callersMethodPutSubtrees
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 callersMethodQueueLeaves
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 callersMethodReadRevision
ReadRevision returns the tree revision that was current at the time this transaction was started.
ct/read_tree_tx.go:37
↓ 1 callersMethodRollback
()
ct/tree_tx.go:265
↓ 1 callersMethodRun
(c *cache)
ct/cache/cache.go:108
↓ 1 callersMethodStoreRoot
(treeID int64, root trillian.SignedLogRoot, front frontier.Frontier)
custom/local.go:348
↓ 1 callersMethodUnsequenced
Unsequenced returns the number of unsequenced leaves that a log has on disk.
custom/local.go:116
↓ 1 callersMethodWatchLog
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 callersFunctionaddLeaf
(treeID int64, leaf *trillian.LogLeaf)
ct/tree_tx.go:46
↓ 1 callersFunctionawaitSignal
awaitSignal waits for standard termination signals, then exits the process.
cmd/server/main.go:228
↓ 1 callersMethodbeginForTree
beginForTree starts a transaction for the specified treeID.
ct/log_storage.go:78
↓ 1 callersFunctionentriesCheck
(entries []ct.LogEntry, err error)
cmd/admin/ct-log-tester/checks.go:117
↓ 1 callersFunctionentryAndProofCheck
(resp *ct.GetEntryAndProofResponse, err error)
cmd/admin/ct-log-tester/checks.go:147
↓ 1 callersMethodevictAt
(i int)
ct/cache/cache.go:204
↓ 1 callersFunctiongetBounds
(search)
devdata/get-entries.js:12
↓ 1 callersFunctiongetLeafByIdentityHash
(treeID int64, id []byte)
ct/tree_tx.go:53
↓ 1 callersMethodgetSequenceByIdentityHash
(ctx context.Context, id []byte)
ct/tree_tx.go:137
↓ 1 callersMethodgetSubtree
(ctx context.Context, treeRevision int64, nodeID storage.NodeID)
ct/read_tree_tx.go:164
↓ 1 callersMethodgetSubtree
(treeID, treeRevision int64, id storage.NodeID)
custom/local.go:206
↓ 1 callersMethodgetSubtreesAtRev
(ctx context.Context, treeRevision int64)
ct/read_tree_tx.go:154
↓ 1 callersMethodgetTokens
(ctx context.Context, numTokens int, spec quota.Spec)
ct/quota_manager.go:107
↓ 1 callersFunctionhandleRequest
(request)
devdata/get-entries.js:76
↓ 1 callersMethodinsert
(key string)
ct/cache/cache.go:178
↓ 1 callersFunctionlogConfig
(meta logMeta)
config/config.go:205
↓ 1 callersFunctionmetrics
(qm *ct.QuotaManager, metricsList net.Listener)
cmd/server/metrics.go:33
↓ 1 callersFunctionnewCache
(de time.Duration, maxSize int, m map[string]Item)
ct/cache/cache.go:134
↓ 1 callersFunctionnewCacheWithJanitor
(de time.Duration, ci time.Duration, maxSize int, m map[string]Item)
ct/cache/cache.go:146
↓ 1 callersFunctionproofCheck
(resp *ct.GetProofByHashResponse, err error)
cmd/admin/ct-log-tester/checks.go:87
↓ 1 callersMethodputTokens
(ctx context.Context, numTokens int, spec quota.Spec)
ct/quota_manager.go:145
↓ 1 callersFunctionrangeNodeID
(treeRevision int64, id storage.NodeID)
custom/local.go:411
↓ 1 callersFunctionreadTree
(meta logMeta)
config/config.go:237
↓ 1 callersFunctionrunJanitor
(c *cache, ci time.Duration)
ct/cache/cache.go:125
↓ 1 callersFunctiontransformJSON
(bounds, leaves)
devdata/get-entries.js:41
MethodAddSequencedLeaf
(ctx context.Context, req *trillian.AddSequencedLeafRequest, opts ...grpc.CallOption)
cmd/server/client.go:46
MethodAddSequencedLeaves
(ctx context.Context, leaves []*trillian.LogLeaf, ts time.Time)
ct/tree_tx.go:158
MethodAddSequencedLeaves
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
MethodAddSequencedLeaves
(ctx context.Context, req *trillian.AddSequencedLeavesRequest, opts ...grpc.CallOption)
cmd/server/client.go:262
MethodCheckDatabaseAccessible
CheckDatabaseAccessible returns nil if the database is accessible, error otherwise.
ct/log_storage.go:35
MethodCheckDatabaseAccessible
CheckDatabaseAccessible checks whether we are able to connect to / open the underlying storage.
config/admin_storage.go:27
MethodClose
()
config/admin_storage.go:37
MethodCommit
()
ct/read_tree_tx.go:181
MethodCommit
()
custom/local.go:361
MethodCommit
()
config/admin_storage.go:35
MethodCreateTree
CreateTree inserts the specified tree in storage, returning a tree with all storage-generated fields set.
config/admin_storage.go:69
MethodDequeueLeaves
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
MethodDequeueLeaves
(treeID, seq, cutoffTime int64, limit int)
custom/local.go:272
next →1–100 of 172, ranked by callers