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
Function
FromFile
(path string)
config/config.go:99
Method
GetActiveLogIDs
GetActiveLogs returns a list of the IDs of all the logs that are configured in storage.
ct/read_log_tx.go:20
Method
GetConsistencyProof
(ctx context.Context, req *trillian.GetConsistencyProofRequest, opts ...grpc.CallOption)
cmd/server/client.go:118
Method
GetEntryAndProof
(ctx context.Context, req *trillian.GetEntryAndProofRequest, opts ...grpc.CallOption)
cmd/server/client.go:190
Method
GetInclusionProof
(ctx context.Context, req *trillian.GetInclusionProofRequest, opts ...grpc.CallOption)
cmd/server/client.go:70
Method
GetInclusionProofByHash
(ctx context.Context, req *trillian.GetInclusionProofByHashRequest, opts ...grpc.CallOption)
cmd/server/client.go:94
Method
GetLeavesByHash
GetLeavesByHash looks up sequenced leaf metadata and data by their Merkle leaf hash.
ct/read_tree_tx.go:106
Method
GetLeavesByHash
(ctx context.Context, req *trillian.GetLeavesByHashRequest, opts ...grpc.CallOption)
cmd/server/client.go:334
Method
GetLeavesByIndex
(ctx context.Context, req *trillian.GetLeavesByIndexRequest, opts ...grpc.CallOption)
cmd/server/client.go:286
Method
GetLeavesByRange
GetLeavesByRange returns leaf data for a range of indexes.
ct/read_tree_tx.go:96
Method
GetLeavesByRange
(ctx context.Context, req *trillian.GetLeavesByRangeRequest, opts ...grpc.CallOption)
cmd/server/client.go:310
Method
GetSequencedLeafCount
GetSequencedLeafCount returns the total number of leaves that have been integrated into the tree via sequencing.
ct/read_tree_tx.go:43
Method
GetSequencedLeafCount
(ctx context.Context, req *trillian.GetSequencedLeafCountRequest, opts ...grpc.CallOption)
cmd/server/client.go:166
Method
GetTokens
GetTokens acquires numTokens from all specs. Tokens are taken in the order specified by specs. Returns error if numTokens could not be acquired for al
ct/quota_manager.go:95
Method
GetTree
GetTree returns the tree corresponding to treeID or an error.
config/admin_storage.go:41
Method
GetUnsequencedCounts
(ctx context.Context)
ct/read_log_tx.go:40
Method
GetUser
GetUser returns the quota user, as defined by the manager implementation. req is the RPC request message.
ct/quota_manager.go:88
Method
HardDeleteTree
HardDeleteTree hard deletes (i.e. completely removes from storage) the specified tree and all records related to it.
config/admin_storage.go:86
Method
IsClosed
()
config/admin_storage.go:38
Method
IsOpen
()
ct/tree_tx.go:281
Method
IsOpen
()
ct/read_tree_tx.go:183
Method
LatestSignedLogRoot
LatestSignedLogRoot returns the most recent SignedLogRoot, if any.
ct/read_tree_tx.go:31
Method
Len
()
custom/custom.go:8
Method
Less
(i, j int)
custom/custom.go:9
Method
ListTreeIDs
ListTreeIDs returns the IDs of all trees in storage.
config/admin_storage.go:52
Function
New
New returns a new cache with a given default expiration duration and cleanup interval. If the expiration duration is less than one (or NoExpiration),
ct/cache/cache.go:166
Function
NewLocal
NewLocal returns a new local database, with data stored at `path`.
custom/local.go:47
Function
NewQuotaManager
(maxUnsequencedLeaves int64)
ct/quota_manager.go:31
Function
NewReader
NewReader returns a deterministic, cryptographically-secure source of random bytes seeded by `seed`.
cmd/admin/ct-log-tester/internal/drand/drand.go:34
Function
NewRemote
NewRemote returns a new remote database, where `acctId` and `appKey` are the Account ID and Application Key of a B2 bucket. `bucket` is the name of th
custom/remote.go:48
Method
PeekTokens
PeekTokens returns how many tokens are available for each spec, without acquiring any. Infinite quotas should return MaxTokens.
ct/quota_manager.go:128
Method
PutLeaves
(ctx context.Context, treeID int64, leaves []*trillian.LogLeaf)
custom/remote.go:125
Method
PutTokens
PutTokens adds numTokens for all specs.
ct/quota_manager.go:133
Method
QueueLeaf
(ctx context.Context, req *trillian.QueueLeafRequest, opts ...grpc.CallOption)
cmd/server/client.go:22
Method
QueueLeaves
QueueLeaves enqueues leaves for later integration into the tree.
ct/log_storage.go:124
Method
QueueLeaves
(treeID, queueTimestamp int64, leaves []*trillian.LogLeaf)
custom/local.go:103
Method
QueueLeaves
(ctx context.Context, req *trillian.QueueLeavesRequest, opts ...grpc.CallOption)
cmd/server/client.go:238
Method
Read
(p []byte)
cmd/admin/ct-log-tester/internal/drand/drand.go:25
Method
ReadWriteTransaction
ReadWriteTransaction starts a RW transaction on the underlying storage, and calls f with it.
ct/log_storage.go:109
Method
ReadWriteTransaction
ReadWriteTransaction creates a transaction, and runs f with it.
config/admin_storage.go:21
Method
ResetQuota
ResetQuota resets the quota for all specs.
ct/quota_manager.go:166
Method
Rollback
()
ct/read_log_tx.go:51
Method
Rollback
()
ct/read_tree_tx.go:182
Method
Rollback
()
config/admin_storage.go:36
Method
ServeHTTP
(rw http.ResponseWriter, req *http.Request)
cmd/server/main.go:244
Function
SetLeafCacheSize
SetLeafCacheSize sets the max size of the in-memory cache of leaves that have been queued but may not have been integrated into an STH yet. This helps
ct/tree_tx.go:23
Method
SetMerkleNodes
SetMerkleNodes stores the provided nodes, at the transaction's WriteRevision.
ct/tree_tx.go:195
Method
Snapshot
Snapshot starts a read-only transaction not tied to any particular tree.
ct/log_storage.go:40
Method
Snapshot
Snapshot starts a read-only transaction.
config/admin_storage.go:16
Method
SnapshotForTree
SnapshotForTree starts a read-only transaction for the specified treeID.
ct/log_storage.go:53
Method
SoftDeleteTree
SoftDeleteTree soft deletes the specified tree.
config/admin_storage.go:80
Method
StoreSignedLogRoot
StoreSignedLogRoot stores a freshly created SignedLogRoot.
ct/tree_tx.go:218
Method
Swap
(i, j int)
custom/custom.go:10
Function
TestDupLeaf
(t *testing.T)
ct/tree_tx_test.go:30
Function
TestStructLeaf
(t *testing.T)
ct/tree_tx_test.go:12
Function
TestStructLeaf
(t *testing.T)
custom/local_test.go:23
Function
TestStructLogConfig
(t *testing.T)
config/config_test.go:11
Function
TestStructNodeID
(t *testing.T)
custom/local_test.go:33
Function
TestStructQueuedLeaf
(t *testing.T)
ct/tree_tx_test.go:21
Function
TestStructRoot
(t *testing.T)
custom/local_test.go:13
Function
TestStructSubtreeProto
(t *testing.T)
custom/local_test.go:42
Function
TestTreeHead
(t *testing.T)
custom/frontier/frontier_test.go:15
Method
UndeleteTree
UndeleteTree undeletes a soft-deleted tree.
config/admin_storage.go:91
Method
UpdateSequencedLeaves
(ctx context.Context, leaves []*trillian.LogLeaf)
ct/tree_tx.go:162
Method
UpdateTree
UpdateTree updates the specified tree in storage, returning a tree with all storage-generated fields set.
config/admin_storage.go:75
Function
init
()
cmd/server/main.go:53
Function
init
()
cmd/admin/ct-log-tester/checks.go:28
Function
main
go:generate go run ./../admin/gen-server-client/main.go
cmd/server/main.go:63
Function
main
()
cmd/admin/ct-log-tester/main.go:24
Function
main
()
cmd/admin/gen-server-client/main.go:26
Function
stopJanitor
(c *Cache)
ct/cache/cache.go:121
Method
storeSubtrees
(subtrees []*storagepb.SubtreeProto)
ct/tree_tx.go:232
← previous
101–172 of 172, ranked by callers