MCPcopy Create free account

hub / github.com/crytic/attacknet / functions

Functions157 in github.com/crytic/attacknet

↓ 1 callersFunctiondialBeaconRpcClient
(ctx context.Context, session *kubernetes.PortForwardsSession)
pkg/health/ethereum/beacon_rpc.go:121
↓ 1 callersFunctiondialExecRpcClient
(session *kubernetes.PortForwardsSession)
pkg/health/ethereum/execution_rpc.go:92
↓ 1 callersMethoddialToBeaconClients
(ctx context.Context)
pkg/health/ethereum/beacon_rpc.go:61
↓ 1 callersMethoddialToExecutionClients
(ctx context.Context)
pkg/health/ethereum/execution_rpc.go:56
↓ 1 callersFunctionfilterInjectedPods
filterInjectedPods takes a list of chaos mesh records and returns a list of pod names that are currently in the injected phase.
pkg/chaos-mesh/session.go:327
↓ 1 callersFunctionfilterNodesByConsensusClient
(clClientType string)
pkg/plan/suite/targeting.go:205
↓ 1 callersFunctionfilterNodesByExecClient
(elClientType string)
pkg/plan/suite/targeting.go:192
↓ 1 callersFunctiongetBeaconNetworkConsensus
(ctx context.Context, nodeClients []*BeaconClientRpc, blockType string)
pkg/health/ethereum/consensus.go:33
↓ 1 callersMethodgetDuration
(ctx context.Context)
pkg/chaos-mesh/session.go:282
↓ 1 callersFunctiongetEnclaveName
(namespace string)
pkg/kurtosis/kurtosis.go:68
↓ 1 callersFunctiongetExecNetworkConsensus
(ctx context.Context, nodeClients []*ExecClientRPC, blockType string)
pkg/health/ethereum/consensus.go:20
↓ 1 callersMethodgetFaultRecords
(ctx context.Context)
pkg/chaos-mesh/session.go:133
↓ 1 callersFunctiongetFreeEphemeralPort
getFreeEphemeralPort note: you should use this port immediately otherwise another resource may claim it.
pkg/kubernetes/port_forward.go:69
↓ 1 callersFunctiongetStringValue
(key string, m map[string]string)
pkg/plan/suite/suite_builder.go:119
↓ 1 callersFunctiongetVolumePathForIOFault
(podName string)
pkg/plan/suite/faults.go:232
↓ 1 callersFunctioninitializeDirectoriesAndFiles
(suitePath string, configPath string)
pkg/project/project.go:24
↓ 1 callersFunctionisErrorNoEnclaveFound
(err error)
pkg/kurtosis/kurtosis.go:78
↓ 1 callersFunctionloadEnclaveFromExistingDevnet
(ctx context.Context, cfg *types.ConfigParsed)
pkg/runtime/runtime.go:33
↓ 1 callersFunctionloadSuiteFromPath
(path string)
pkg/project/config.go:42
↓ 1 callersFunctionopenPortForward
(target string, dialer httpstream.Dialer, printToStdout bool, retriesRemaining int)
pkg/kubernetes/port_forward.go:83
↓ 1 callersFunctionpickExtraNodeClients
(startNodeIndex, nodeCount int, clientUnderTest string, execClients, consClients []ClientVersion)
pkg/plan/network/network_builder.go:108
↓ 1 callersMethodpopulatePodsUnderTest
* This must be run after the fault manifest has been applied and the handler webhook has run. */
pkg/chaos-mesh/session.go:196
↓ 1 callersFunctionpreparePaths
(testName string)
pkg/plan/file.go:10
↓ 1 callersFunctionprojectAlreadyExists
(suitePath string, configPath string)
pkg/project/project.go:13
↓ 1 callersMethodrunInjectFaultStep
(ctx context.Context, step PlanStepSingleFault)
pkg/test_executor/executor.go:101
↓ 1 callersMethodrunWaitForDuration
(step PlanStepWait)
pkg/test_executor/executor.go:136
↓ 1 callersMethodrunWaitForFaultCompletion
(ctx context.Context, _ PlanStepWaitForFaultCompletion)
pkg/test_executor/executor.go:112
↓ 1 callersFunctionserializeNodes
(nodes []*network.Node)
pkg/plan/serialization.go:87
↓ 1 callersFunctionsetupDevnet
(ctx context.Context, cfg *types.ConfigParsed)
pkg/runtime/runtime.go:10
↓ 1 callersFunctionvalidatePlannerFaultConfiguration
(c PlannerConfig)
pkg/plan/config.go:10
↓ 1 callersFunctionwaitForFaultRecovery
(ctx context.Context, session *chaos_mesh.FaultSession)
pkg/test_executor/executor.go:189
↓ 1 callersFunctionwaitForInjectionCompleted
(ctx context.Context, session *chaos_mesh.FaultSession)
pkg/test_executor/executor.go:142
↓ 1 callersFunctionwritePlans
(netConfigPath, suiteConfigPath string, netConfig, suiteConfig []byte)
pkg/plan/file.go:45
MethodCleanup
(skipInspection bool)
pkg/grafana.go:50
MethodClose
()
pkg/health/ethereum/execution_rpc.go:100
FunctionCreateClient
(namespace string, kubeClient *kubernetes.KubeClient)
pkg/chaos-mesh/client.go:26
FunctionCreateGrafanaClient
(ctx context.Context, kubeClient *kubernetes.KubeClient, config types.AttacknetConfig)
pkg/grafana.go:21
FunctionDeserializeNetworkTopology
(conf []byte)
pkg/plan/serialization.go:33
MethodGetLabels
()
pkg/chaos-mesh/pods.go:16
MethodGetLatestBlockBy
(ctx context.Context, blockType string)
pkg/health/ethereum/execution_rpc.go:105
MethodGetName
()
pkg/chaos-mesh/pods.go:12
MethodGetName
()
pkg/kubernetes/types.go:16
FunctionGetPodsExpectedToBeDead
(pods []*PodUnderTest)
pkg/chaos-mesh/pods.go:39
MethodMatchesLabel
(key, value string)
pkg/chaos-mesh/pods.go:20
MethodMatchesLabel
(key, value string)
pkg/kubernetes/types.go:24
MethodRunAllChecks
(ctx context.Context, prevHealthCheckResult *types.HealthCheckResult)
pkg/health/ethereum/network_checker.go:35
MethodRunStarlarkRemotePackageBlocking
pass-thru func. Figure out how to remove eventually.
pkg/kurtosis/kurtosis.go:39
FunctionTestChooseTargetsUsingAttackSize
(t *testing.T)
pkg/plan/suite/targeting_test.go:16
MethodToKubePods
()
pkg/chaos-mesh/pods.go:31
MethodToString
()
pkg/plan/network/types.go:61
FunctioncreateTargetSelectorForConsensusClient
(networkNodeCount int, node *network.Node)
pkg/plan/suite/targeting.go:155
FunctioncreateTargetSelectorForExecClient
(networkNodeCount int, node *network.Node)
pkg/plan/suite/targeting.go:140
FunctioncreateTargetSelectorForNode
(networkNodeCount int, node *network.Node)
pkg/plan/suite/targeting.go:113
FunctionfilterNodesByClientCombo
(elClientType, clClientType string)
pkg/plan/suite/targeting.go:216
FunctiongetFloat32Value
(key string, m map[string]string)
pkg/plan/suite/suite_builder.go:107
Functionmain
()
cmd/attacknet/main.go:28
FunctionpickClient
(startIndex int, clientUnderTest string, clients []ClientVersion)
pkg/plan/network/network_builder.go:134
← previous101–157 of 157, ranked by callers