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
↓ 3 callers
Function
New
(service, addr string, logger *zerolog.Logger, routers ...Router)
daemon/daemon.go:42
↓ 3 callers
Function
NewBuild
(client *httputil.Client, url urlFunc, m metadata.Build)
labd/controlapi/build.go:97
↓ 3 callers
Function
NewClient
(hclient *http.Client, opts ...ClientOption)
pkg/httputil/client.go:40
↓ 3 callers
Function
NewWriter
(logger *zerolog.Logger, level zerolog.Level)
pkg/logutil/writer.go:29
↓ 3 callers
Method
Path
()
daemon/router.go:28
↓ 3 callers
Method
Resolve
Resolve resolves a git-ref to a commit it can uniquely build.
distribution.go:31
↓ 3 callers
Method
ToJSON
ToJSON is a helper function to convert an Experiment into it's JSON representation
metadata/experiment.go:44
↓ 3 callers
Function
Tracer
(ctx context.Context)
pkg/traceutil/tracer.go:35
↓ 3 callers
Method
UpdateCluster
(ctx context.Context, cluster Cluster)
metadata/db.go:59
↓ 3 callers
Function
WaitHealthy
(ctx context.Context, ns []p2plab.Node)
nodes/healthy.go:30
↓ 3 callers
Function
WithLogger
(logger *zerolog.Logger)
pkg/httputil/client.go:90
↓ 3 callers
Function
awscliWithStdio
(ctx context.Context, stdout, stderr io.Writer, args ...string)
providers/terraform/instances.go:74
↓ 3 callers
Function
createClustersBucket
(tx *bolt.Tx)
metadata/buckets.go:113
↓ 3 callers
Function
createExperimentsBucket
(tx *bolt.Tx)
metadata/buckets.go:173
↓ 3 callers
Function
createNodesBucket
(tx *bolt.Tx, cluster string)
metadata/buckets.go:125
↓ 3 callers
Function
createScenariosBucket
(tx *bolt.Tx)
metadata/buckets.go:137
↓ 3 callers
Method
execWithStdio
(ctx context.Context, workDir string, stdout, stderr io.Writer, args ...string)
builder/builder.go:225
↓ 3 callers
Function
getBuildsBucket
(tx *bolt.Tx)
metadata/buckets.go:141
↓ 3 callers
Function
getClustersBucket
(tx *bolt.Tx)
metadata/buckets.go:105
↓ 3 callers
Function
getExperimentsBucket
(tx *bolt.Tx)
metadata/buckets.go:165
↓ 3 callers
Function
getNodesBucket
(tx *bolt.Tx, cluster string)
metadata/buckets.go:117
↓ 3 callers
Function
getScenariosBucket
(tx *bolt.Tx)
metadata/buckets.go:129
↓ 3 callers
Function
newLabeled
(id string)
query/labeled_set_test.go:36
↓ 3 callers
Function
parseAddrs
(addrs []string)
labapp/approuter/router.go:184
↓ 3 callers
Function
readBenchmark
(bkt *bolt.Bucket, benchmark *Benchmark)
metadata/benchmark.go:255
↓ 3 callers
Function
readExperiment
(bkt *bolt.Bucket, experiment *Experiment)
metadata/experiment.go:248
↓ 3 callers
Function
readMap
(bkt *bolt.Bucket, name []byte)
metadata/helpers.go:73
↓ 3 callers
Function
readNode
(bkt *bolt.Bucket, node *Node)
metadata/node.go:263
↓ 3 callers
Method
terraform
(ctx context.Context, args ...string)
providers/terraform/terraform.go:144
↓ 3 callers
Method
url
(endpoint string, v ...interface{})
labapp/appapi/appapi.go:42
↓ 3 callers
Function
writeBenchmark
(bkt *bolt.Bucket, benchmark *Benchmark)
metadata/benchmark.go:373
↓ 3 callers
Function
writeExperiment
(bkt *bolt.Bucket, experiment *Experiment)
metadata/experiment.go:308
↓ 3 callers
Function
writeMap
(bkt *bolt.Bucket, name []byte, m map[string]string)
metadata/helpers.go:91
↓ 3 callers
Function
writeNode
(bkt *bolt.Bucket, node *Node)
metadata/node.go:336
↓ 2 callers
Function
AddBlob
(ctx context.Context, peer p2plab.Peer, r io.Reader, opts ...p2plab.AddOption)
transformers/oci/oci.go:289
↓ 2 callers
Function
CidToDigest
(c cid.Cid)
pkg/digestconv/digestconv.go:45
↓ 2 callers
Function
ComputeAggregates
(reportByNodeId map[string]metadata.ReportNode)
reports/aggregates.go:34
↓ 2 callers
Function
Convert
(ctx context.Context, peer p2plab.Peer, fetcher remotes.Fetcher, store content.Store, desc ocispec.Descriptor,
transformers/oci/oci.go:129
↓ 2 callers
Method
CreateBuild
(ctx context.Context, build Build)
metadata/db.go:99
↓ 2 callers
Method
CreateExperiment
(ctx context.Context, experiment Experiment)
metadata/db.go:129
↓ 2 callers
Method
DeleteExperiment
(ctx context.Context, id string)
metadata/db.go:135
↓ 2 callers
Function
ExtractNameFromFilename
(filename string)
cmd/labctl/command/common.go:156
↓ 2 callers
Method
GetScenario
(ctx context.Context, id string)
metadata/db.go:81
↓ 2 callers
Method
Init
Init initializes the builder.
distribution.go:28
↓ 2 callers
Function
IsAlreadyExists
(err error)
errdefs/errors.go:36
↓ 2 callers
Method
LabelExperiments
(ctx context.Context, ids, adds, removes []string)
metadata/db.go:133
↓ 2 callers
Method
Labels
Labels returns a unique list of labels.
query.go:25
↓ 2 callers
Method
ListBenchmarks
(ctx context.Context)
metadata/db.go:113
↓ 2 callers
Method
ListClusters
(ctx context.Context)
metadata/db.go:55
↓ 2 callers
Method
ListScenarios
(ctx context.Context)
metadata/db.go:83
↓ 2 callers
Method
Method
()
daemon/router.go:27
↓ 2 callers
Function
New
New instantiates our helper type
labd/routers/helpers/helpers.go:24
↓ 2 callers
Function
New
(root, addr, appRoot, appAddr string, logger *zerolog.Logger, opts ...LabagentOption)
labagent/labagent.go:36
↓ 2 callers
Function
New
(client *httputil.Client, addr string)
labagent/agentapi/agentapi.go:36
↓ 2 callers
Function
New
(root string, client *http.Client)
transformers/oci/oci.go:56
↓ 2 callers
Function
New
(root string, settings DownloaderSettings)
downloaders/downloaders.go:41
↓ 2 callers
Function
New
(client *http.Client, settings S3DownloaderSettings)
downloaders/s3downloader/downloader.go:45
↓ 2 callers
Function
New
()
daemon/healthcheckrouter/router.go:26
↓ 2 callers
Function
New
(root string, db metadata.DB, uploader p2plab.Uploader)
builder/builder.go:42
↓ 2 callers
Function
New
(client *httputil.Client, addr string)
labapp/appapi/appapi.go:35
↓ 2 callers
Function
NewParser
NewParser returns a ready to use cue parser
cue/parser/parser.go:74
↓ 2 callers
Function
NewTerraform
(ctx context.Context, root string)
providers/terraform/terraform.go:37
↓ 2 callers
Function
Parse
(objects map[string]cid.Cid, a string)
actions/actions.go:26
↓ 2 callers
Function
Parse
Parse reads the cue source file at filename and converts it to a metadata.ExperimentDefinition type
experiments/definition.go:26
↓ 2 callers
Method
PeerInfo
(ctx context.Context)
api.go:55
↓ 2 callers
Function
Plan
(ctx context.Context, sdef metadata.ScenarioDefinition, ts *transformers.Transformers, peer p2plab.Peer, lset
scenarios/plan.go:31
↓ 2 callers
Function
ReportToCSV
ReportToCSV takes a slice of metadata reports and converts it to csv
experiments/report.go:12
↓ 2 callers
Function
ResolveApp
(c *cli.Context, addr string)
cmd/labctl/command/resolve.go:37
↓ 2 callers
Function
Run
(ctx context.Context, lset p2plab.LabeledSet, plan metadata.ScenarioPlan, seederAddrs []string)
scenarios/run.go:41
↓ 2 callers
Method
Status
()
pkg/httputil/handler.go:29
↓ 2 callers
Method
Tasks
(ctx context.Context, ns []Node)
action.go:26
↓ 2 callers
Method
ToExperimentDefinition
ToExperimentDefinition returns the cue source as a metadata.ExperimentDefinition type
cue/parser/p2plab_instance.go:17
↓ 2 callers
Method
Transform
Transform adds a resource defined by source into an IPFS DAG stored in peer.
transformer.go:27
↓ 2 callers
Function
Update
(ctx context.Context, builder p2plab.Builder, ns []p2plab.Node)
nodes/update.go:30
↓ 2 callers
Method
Update
(ctx context.Context, fn func(*bolt.Tx) error)
metadata/db.go:47
↓ 2 callers
Method
UpdateExperiment
(ctx context.Context, experiment Experiment)
metadata/db.go:131
↓ 2 callers
Function
ValidateClusterID
(id string)
metadata/validate.go:28
↓ 2 callers
Function
WithDownloaderSettings
(settings downloaders.DownloaderSettings)
labagent/settings.go:25
↓ 2 callers
Function
WithLogWriter
(ctx context.Context, writer io.Writer)
pkg/logutil/console.go:24
↓ 2 callers
Function
WithTracer
(ctx context.Context, tracer opentracing.Tracer)
pkg/traceutil/tracer.go:31
↓ 2 callers
Method
acquireLease
()
providers/terraform/terraform.go:128
↓ 2 callers
Method
addHeader
(table *tablewriter.Table, v interface{})
printer/table.go:60
↓ 2 callers
Method
addRow
(table *tablewriter.Table, v interface{})
printer/table.go:77
↓ 2 callers
Function
buildQuery
(tokens []string)
query/query.go:77
↓ 2 callers
Function
cidrFromAddrInfo
(info libp2ppeer.AddrInfo)
peer/peer.go:342
↓ 2 callers
Method
cmd
(ctx context.Context, args ...string)
labagent/supervisor/supervisor.go:275
↓ 2 callers
Method
cmdWithStdio
(ctx context.Context, stdout, stderr io.Writer, args ...string)
labagent/supervisor/supervisor.go:279
↓ 2 callers
Method
matchNodes
(ctx context.Context, clusterId, q string)
labd/routers/noderouter/router.go:141
↓ 2 callers
Function
newLabelQuery
(label string)
query/query.go:271
↓ 2 callers
Function
newLogger
(c *cli.Context)
cmd/labctl/command/common.go:133
↓ 2 callers
Method
newNode
(id string, agentPort, appPort int)
providers/inmemory/provider.go:149
↓ 2 callers
Function
readBuild
(bkt *bolt.Bucket, build *Build)
metadata/build.go:140
↓ 2 callers
Function
readPeerDefinition
(bkt *bolt.Bucket)
metadata/node.go:299
↓ 2 callers
Function
readReport
(bkt *bolt.Bucket, report *Report)
metadata/report.go:125
↓ 2 callers
Function
readTaskMap
(bkt *bolt.Bucket, name []byte)
metadata/benchmark.go:336
↓ 2 callers
Function
sortQueryBuckets
(report metadata.Report)
printer/report.go:149
↓ 2 callers
Method
url
(endpoint string, v ...interface{})
labagent/agentapi/agentapi.go:43
↓ 2 callers
Function
writePeerDefinition
(bkt *bolt.Bucket, pdef PeerDefinition)
metadata/node.go:367
↓ 2 callers
Function
writeReport
(bkt *bolt.Bucket, report Report)
metadata/report.go:139
↓ 2 callers
Function
writeTaskMap
(bkt *bolt.Bucket, name []byte, stage map[string]Task)
metadata/benchmark.go:489
← previous
next →
101–200 of 716, ranked by callers