Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Netflix/p2plab
/ functions
Functions
716 in github.com/Netflix/p2plab
⨍
Functions
716
◇
Types & classes
184
↓ 85 callers
Method
String
String returns the original query.
query.go:52
↓ 78 callers
Method
Close
()
metadata/db.go:49
↓ 49 callers
Method
Get
Get returns an Unixfsv1 file from a given cid.
peer.go:47
↓ 36 callers
Function
CommandContext
(c *cli.Context)
pkg/cliutil/attach.go:47
↓ 36 callers
Method
NewRequest
(method, url string, opts ...RequestOption)
pkg/httputil/client.go:55
↓ 35 callers
Method
Send
(ctx context.Context)
pkg/httputil/request.go:77
↓ 33 callers
Method
Option
(key string, value interface{})
pkg/httputil/request.go:45
↓ 32 callers
Method
Metadata
()
node.go:41
↓ 31 callers
Function
ResolveControl
(c *cli.Context)
cmd/labctl/command/resolve.go:25
↓ 29 callers
Method
Error
Error logs a message at error priority
pkg/logutil/jaeger.go:32
↓ 29 callers
Method
url
(endpoint string, v ...interface{})
labd/controlapi/controlapi.go:42
↓ 26 callers
Method
Print
(v interface{})
printer/printer.go:23
↓ 24 callers
Function
CommandPrinter
(c *cli.Context, auto printer.OutputType)
cmd/labctl/command/common.go:125
↓ 24 callers
Method
ID
ID returns a uniquely identifiable string.
query.go:22
↓ 23 callers
Method
Update
(ctx context.Context, fn func(*bolt.Tx) error)
metadata/db.go:171
↓ 23 callers
Function
WriteJSON
(w http.ResponseWriter, v interface{})
daemon/daemon.go:133
↓ 21 callers
Method
Run
Run executes an task on the node.
api.go:60
↓ 18 callers
Method
Host
Host returns the libp2p host.
peer.go:32
↓ 18 callers
Method
Slice
Slice returns the labeled resources as a slice.
query.go:44
↓ 17 callers
Function
NewGetRoute
(path string, handler Handler)
daemon/router.go:56
↓ 17 callers
Function
StartSpanFromContext
(ctx context.Context, operationName string, opts ...opentracing.StartSpanOption)
pkg/traceutil/tracer.go:43
↓ 14 callers
Function
Elapsed
(ctx context.Context, tick time.Duration, msg string)
pkg/logutil/elapsed.go:25
↓ 13 callers
Method
View
(ctx context.Context, fn func(*bolt.Tx) error)
metadata/db.go:163
↓ 12 callers
Function
getBucket
(tx *bolt.Tx, keys ...[]byte)
metadata/buckets.go:76
↓ 11 callers
Method
Create
Create deploys a cluster.
cluster.go:26
↓ 11 callers
Method
Remove
Remove removes a labeled resource from the set.
query.go:35
↓ 10 callers
Function
Coalesce
(slice []string)
pkg/stringutil/stringutil.go:17
↓ 10 callers
Function
Parse
query := label | '(' func expr ')' expr := query | query expr func := ‘not’ | ‘and’ | ‘or’ label := quoted_string
query/query.go:37
↓ 9 callers
Method
Add
Add adds a labeled resource to the set.
query.go:32
↓ 9 callers
Method
List
(ctx context.Context, cluster string, opts ...ListOption)
node.go:30
↓ 9 callers
Function
NewLabeledSet
()
query/labeled_set.go:27
↓ 9 callers
Method
Open
Open creates a reader for the build's binary.
distribution.go:57
↓ 8 callers
Method
Add
Add adds content from an io.Reader into the Peer's storage.
peer.go:44
↓ 8 callers
Method
Contains
Contains returns whether a labeled resource with the id exists in the set.
query.go:41
↓ 8 callers
Function
NewLabeled
(id string, labels []string)
query/labeled.go:24
↓ 8 callers
Method
git
(ctx context.Context, workDir string, args ...string)
builder/builder.go:216
↓ 7 callers
Method
Benchmark
Benchmark returns an implementation of Benchmark API.
api.go:36
↓ 7 callers
Method
Body
(value interface{})
pkg/httputil/request.go:62
↓ 7 callers
Method
Cluster
Cluster returns an implementaiton of Cluster API.
api.go:27
↓ 7 callers
Function
NewHTTPClient
()
pkg/httputil/client.go:27
↓ 7 callers
Function
NewNode
(client *httputil.Client, m metadata.Node)
labd/controlapi/node.go:123
↓ 7 callers
Function
NewPutRoute
(path string, handler Handler)
daemon/router.go:64
↓ 7 callers
Method
Update
(ctx context.Context, id, link string, pdef metadata.PeerDefinition)
api.go:48
↓ 7 callers
Function
WithQuery
(q string)
cluster.go:100
↓ 6 callers
Method
Build
Build returns an implementation of Build API.
api.go:42
↓ 6 callers
Function
Execute
(ctx context.Context, ls []p2plab.Labeled, q string)
query/execute.go:23
↓ 6 callers
Method
Experiment
Experiment returns an implementation of Experiment API.
api.go:39
↓ 6 callers
Method
GetExperiment
(ctx context.Context, id string)
metadata/db.go:125
↓ 6 callers
Function
LogWriter
(ctx context.Context)
pkg/logutil/console.go:28
↓ 6 callers
Function
NewPostRoute
(path string, handler Handler)
daemon/router.go:60
↓ 6 callers
Function
NewRoute
(method, path string, handler Handler)
daemon/router.go:40
↓ 6 callers
Function
ReadTimestamps
(bkt *bolt.Bucket, created, updated *time.Time)
metadata/helpers.go:30
↓ 6 callers
Function
WriteRemoteLogs
(ctx context.Context, remote io.Reader, writer io.Writer)
pkg/logutil/remote.go:28
↓ 6 callers
Function
WriteTimestamps
(bkt *bolt.Bucket, created, updated time.Time)
metadata/helpers.go:49
↓ 6 callers
Function
createBucketIfNotExists
(tx *bolt.Tx, keys ...[]byte)
metadata/buckets.go:89
↓ 6 callers
Function
readLabels
(bkt *bolt.Bucket)
metadata/helpers.go:181
↓ 6 callers
Function
writeLabels
(bkt *bolt.Bucket, labels []string)
metadata/helpers.go:196
↓ 5 callers
Method
Label
(ctx context.Context, cluster string, ids, adds, removes []string)
node.go:28
↓ 5 callers
Method
ListNodes
(ctx context.Context, cluster string)
metadata/db.go:69
↓ 5 callers
Method
Match
Match returns the subset of lset that matches the query.
query.go:55
↓ 5 callers
Method
Node
Node returns an implementation of Node API.
api.go:30
↓ 5 callers
Method
Scenario
Scenario returns an implementation of Scenario API.
api.go:33
↓ 5 callers
Function
WithResponseLogger
(ctx context.Context, w http.ResponseWriter)
pkg/logutil/http.go:27
↓ 5 callers
Function
batchUpdateLabels
(bkt *bolt.Bucket, ids, adds, removes []string, cb labelCallback)
metadata/helpers.go:128
↓ 4 callers
Method
Close
Close closes its signal receiver and waits for its handlers to exit cleanly.
pkg/cliutil/interrupt.go:77
↓ 4 callers
Function
Connect
(ctx context.Context, ns []p2plab.Node)
nodes/connect.go:34
↓ 4 callers
Method
Connect
Connect connects to the libp2p peers.
peer.go:38
↓ 4 callers
Function
DigestToCid
(dgst digest.Digest)
pkg/digestconv/digestconv.go:26
↓ 4 callers
Method
GetBuild
(ctx context.Context, id string)
metadata/db.go:95
↓ 4 callers
Function
IsNotFound
(err error)
errdefs/errors.go:40
↓ 4 callers
Function
NewDB
(root string)
metadata/db.go:142
↓ 4 callers
Function
NewDeleteRoute
(path string, handler Handler)
daemon/router.go:68
↓ 4 callers
Function
NewInterruptHandler
NewInterruptHandler returns a new interrupt handler that will invoke cancel if any of the signals provided are received.
pkg/cliutil/interrupt.go:38
↓ 4 callers
Function
RecreateBucket
(bkt *bolt.Bucket, key []byte)
metadata/helpers.go:13
↓ 4 callers
Method
Report
Report returns all the metrics collected from the peer.
peer.go:53
↓ 4 callers
Method
Serve
(ctx context.Context)
labd/labd.go:144
↓ 4 callers
Method
Upload
Upload uploads a binary for a build.
distribution.go:46
↓ 4 callers
Method
View
(ctx context.Context, fn func(*bolt.Tx) error)
metadata/db.go:45
↓ 4 callers
Function
WithRetryMax
(max int)
pkg/httputil/client.go:119
↓ 4 callers
Function
WithTransactionContext
(ctx context.Context, tx *bolt.Tx)
metadata/db.go:32
↓ 4 callers
Method
Write
(p []byte)
pkg/logutil/writer.go:42
↓ 4 callers
Function
createBenchmarksBucket
(tx *bolt.Tx)
metadata/buckets.go:161
↓ 4 callers
Function
getBenchmarksBucket
(tx *bolt.Tx)
metadata/buckets.go:153
↓ 4 callers
Function
getJSON
slightly less to type repeatedly
cue/parser/p2plab_instance.go:83
↓ 4 callers
Function
readCluster
(bkt *bolt.Bucket, cluster *Cluster)
metadata/cluster.go:277
↓ 4 callers
Function
readScenario
(bkt *bolt.Bucket, scenario *Scenario)
metadata/scenario.go:255
↓ 4 callers
Function
writeCluster
(bkt *bolt.Bucket, cluster *Cluster)
metadata/cluster.go:366
↓ 4 callers
Function
writeScenario
(bkt *bolt.Bucket, scenario *Scenario)
metadata/scenario.go:312
↓ 3 callers
Function
AttachAppContext
(ctx context.Context, app *cli.App)
pkg/cliutil/attach.go:25
↓ 3 callers
Function
CommandClient
(c *cli.Context)
cmd/labctl/command/common.go:129
↓ 3 callers
Method
Compile
Compile is used to compile the given cue source into our runtime it returns a wrapped cue.Instance that provides helper lookup functions
cue/parser/parser.go:88
↓ 3 callers
Method
CreateCluster
(ctx context.Context, cluster Cluster)
metadata/db.go:57
↓ 3 callers
Method
DeleteCluster
(ctx context.Context, id string)
metadata/db.go:63
↓ 3 callers
Method
Download
Download downloads an artifact with an abstract link.
distribution.go:71
↓ 3 callers
Method
GetCluster
(ctx context.Context, id string)
metadata/db.go:53
↓ 3 callers
Method
Handler
()
daemon/router.go:29
↓ 3 callers
Method
ListExperiments
(ctx context.Context)
metadata/db.go:127
↓ 3 callers
Function
New
(client *http.Client, settings S3UploaderSettings)
uploaders/s3uploader/uploader.go:51
↓ 3 callers
Function
New
(ctx context.Context, root string, port int, pdef metadata.PeerDefinition)
peer/peer.go:83
↓ 3 callers
Function
New
(ctx context.Context, service string, logger jaeger.Logger)
pkg/traceutil/tracer.go:47
next →
1–100 of 716, ranked by callers