Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/eth-easl/dirigent
/ functions
Functions
1,276 in github.com/eth-easl/dirigent
⨍
Functions
1,276
◇
Types & classes
154
↓ 77 callers
Method
Unlock
()
pkg/synchronization/control_plane_sync.go:34
↓ 72 callers
Method
Lock
()
pkg/synchronization/control_plane_sync.go:32
↓ 39 callers
Method
Get
Not thread safe
pkg/synchronization/control_plane_sync.go:42
↓ 32 callers
Method
Set
Not thread safe
pkg/synchronization/control_plane_sync.go:41
↓ 31 callers
Method
GetMap
()
pkg/synchronization/control_plane_sync.go:37
↓ 23 callers
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
mock/mock_core/mock_core.go:43
↓ 23 callers
Method
GetNumberConnectedWorkers
* * Functions used for testing */
internal/control_plane/helpers.go:122
↓ 23 callers
Method
GetNumberDataplanes
()
internal/control_plane/helpers.go:126
↓ 23 callers
Method
GetNumberServices
()
internal/control_plane/helpers.go:130
↓ 21 callers
Function
CreateResourceMap
CreateResourceMap CPU in milliCPUs.
internal/control_plane/placement_policy/resource_map.go:85
↓ 21 callers
Method
GetName
()
internal/control_plane/core/interface.go:55
↓ 21 callers
Function
NewRandomPlacement
()
internal/control_plane/placement_policy/random.go:35
↓ 20 callers
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
mock/mock_persistence/mock_persistence.go:39
↓ 20 callers
Method
Len
()
pkg/synchronization/control_plane_sync.go:52
↓ 20 callers
Function
NewControlPlane
(client persistence.PersistenceLayer, outputFile string, placementPolicy placement_policy.PlacementPolicy, da
internal/control_plane/control_plane.go:62
↓ 20 callers
Method
String
()
internal/control_plane/leader_election/state.go:38
↓ 19 callers
Method
RUnlock
()
pkg/synchronization/control_plane_sync.go:35
↓ 18 callers
Method
GetUpstreamEndpoints
()
internal/data_plane/function_metadata/function_metadata.go:129
↓ 17 callers
Method
RLock
()
pkg/synchronization/control_plane_sync.go:33
↓ 17 callers
Method
ReconstructState
ReconstructState Single threaded function - reconstruction happend before starting the control plane
internal/control_plane/reconstruction.go:42
↓ 16 callers
Method
IsLeader
()
internal/control_plane/leader_election/server.go:91
↓ 14 callers
Function
NewAtomicMap
()
pkg/atomic_map/atomic_map.go:37
↓ 14 callers
Function
deleteNetworkNamespaceByName
(name string)
internal/worker_node/sandbox/firecracker/networking.go:348
↓ 14 callers
Function
simplePersistenceLayer
Smoke test
internal/control_plane/control_plane_test.go:65
↓ 12 callers
Method
GetLeader
()
internal/control_plane/leader_election/server.go:95
↓ 12 callers
Method
GetStatistics
()
internal/data_plane/function_metadata/function_metadata.go:121
↓ 11 callers
Method
GetEndpointMap
()
internal/control_plane/core/interface.go:67
↓ 11 callers
Method
Remove
Not thread safe
pkg/synchronization/control_plane_sync.go:44
↓ 10 callers
Function
ExtendCPU
(resourceMap *ResourceMap)
internal/control_plane/placement_policy/resource_map.go:96
↓ 10 callers
Method
GetMemory
()
internal/control_plane/core/interface.go:61
↓ 10 callers
Method
GetNoCheck
Not thread safe
pkg/synchronization/control_plane_sync.go:43
↓ 10 callers
Method
Int
()
internal/worker_node/managers/thread_safe_random.go:45
↓ 10 callers
Method
RegisterService
(ctx context.Context, in *ServiceInfo, opts ...grpc.CallOption)
api/proto/control_plane_interface_grpc.pb.go:25
↓ 9 callers
Function
NewConsensusModule
NewConsensusModule creates a new CM with the given ID, list of peer IDs and server. The ready channel signals the CM that all peers are connected and
internal/control_plane/leader_election/consensus_module.go:73
↓ 9 callers
Method
RegisterNode
(ctx context.Context, in *proto.NodeInfo)
internal/control_plane/control_plane.go:191
↓ 9 callers
Method
RegisterService
Service functions
internal/control_plane/control_plane.go:283
↓ 9 callers
Function
file_common_proto_rawDescGZIP
()
api/proto/common.pb.go:782
↓ 9 callers
Function
getTestEndpoints
()
internal/data_plane/proxy/load_balancing/load_balancing_test.go:35
↓ 8 callers
Method
GetCPUCores
()
internal/control_plane/placement_policy/resource_map.go:38
↓ 8 callers
Method
GetIP
()
internal/control_plane/core/interface.go:45
↓ 8 callers
Method
HandleFunc
(path string, f func(w http.ResponseWriter, r *http.Request))
workload/http_workload.go:171
↓ 8 callers
Method
RegisterDataplane
Dataplanes functions
internal/control_plane/control_plane.go:83
↓ 8 callers
Function
deleteDeviceByName
(name string)
internal/worker_node/sandbox/firecracker/networking.go:341
↓ 7 callers
Method
AppendEntries
(ctx context.Context, in *AppendEntriesArgs, opts ...grpc.CallOption)
api/proto/control_plane_interface_grpc.pb.go:35
↓ 7 callers
Method
AtomicIncrement
(key K)
pkg/atomic_map/atomic_map_counter.go:74
↓ 7 callers
Method
Keys
()
pkg/atomic_map/atomic_map.go:78
↓ 7 callers
Function
NewControlPlaneSyncStructure
()
pkg/synchronization/control_plane_sync.go:61
↓ 7 callers
Method
RequestVote
RAFT leader election
api/proto/control_plane_interface_grpc.pb.go:34
↓ 7 callers
Method
Start
()
internal/control_plane/autoscaling/controller.go:65
↓ 7 callers
Method
StoreServiceInformation
(ctx context.Context, serviceInfo *proto.ServiceInfo)
internal/control_plane/persistence/interface.go:40
↓ 7 callers
Method
StoreWorkerNodeInformation
(ctx context.Context, workerNodeInfo *proto.WorkerNodeInformation)
internal/control_plane/persistence/interface.go:37
↓ 7 callers
Method
WaitForQuorumWrite
(ctx context.Context)
internal/control_plane/persistence/redis_persistence.go:74
↓ 7 callers
Function
file_control_plane_interface_proto_rawDescGZIP
()
api/proto/control_plane_interface.pb.go:590
↓ 6 callers
Method
Delete
(key K)
pkg/atomic_map/atomic_map_counter.go:82
↓ 6 callers
Method
Find
(key K)
pkg/atomic_map/atomic_map.go:41
↓ 6 callers
Method
ListDataplanes
()
internal/data_plane/haproxy/manager.go:124
↓ 6 callers
Method
SetLeader
(ctx context.Context)
internal/control_plane/persistence/interface.go:43
↓ 6 callers
Function
SplitAddress
(address string)
pkg/grpc_helpers/grpc_helpers.go:97
↓ 6 callers
Method
StoreDataPlaneInformation
(ctx context.Context, dataplaneInfo *proto.DataplaneInformation)
internal/control_plane/persistence/interface.go:34
↓ 6 callers
Function
SumResources
(a, b *ResourceMap)
internal/control_plane/placement_policy/resource_map.go:102
↓ 6 callers
Method
becomeFollower
becomeFollower makes cm a follower and resets its state. Expects cm.mu to be locked.
internal/control_plane/leader_election/consensus_module.go:323
↓ 5 callers
Method
AddDeployment
(context.Context, *proto.ServiceInfo)
internal/control_plane/core/interface.go:38
↓ 5 callers
Method
AtomicAdd
(key K, value int64)
pkg/atomic_map/atomic_map_counter.go:55
↓ 5 callers
Method
AtomicLen
Atomic operation
pkg/synchronization/control_plane_sync.go:53
↓ 5 callers
Method
DeregisterDataplane
(ctx context.Context, in *DataplaneInfo, opts ...grpc.CallOption)
api/proto/control_plane_interface_grpc.pb.go:29
↓ 5 callers
Method
DeregisterNode
(ctx context.Context, in *NodeInfo, opts ...grpc.CallOption)
api/proto/control_plane_interface_grpc.pb.go:30
↓ 5 callers
Function
EstablishGRPCConnectionPoll
(addresses []string, dialOptions ...grpc.DialOption)
pkg/grpc_helpers/grpc_helpers.go:122
↓ 5 callers
Method
GetByKey
(key string)
internal/control_plane/placement_policy/resource_map.go:64
↓ 5 callers
Method
GetDataPlaneInformation
(ctx context.Context)
internal/control_plane/persistence/interface.go:36
↓ 5 callers
Method
GetDeployment
(name string)
internal/data_plane/function_metadata/deployment.go:60
↓ 5 callers
Method
GetProxyPort
()
internal/control_plane/core/interface.go:47
↓ 5 callers
Method
GetServiceInformation
(ctx context.Context)
internal/control_plane/persistence/interface.go:42
↓ 5 callers
Method
GetWorkerNodeInformation
(ctx context.Context)
internal/control_plane/persistence/interface.go:39
↓ 5 callers
Method
GiveUpNetwork
(config *NetworkConfig)
internal/worker_node/sandbox/firecracker/networking.go:96
↓ 5 callers
Method
ListServices
(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption)
api/proto/control_plane_interface_grpc.pb.go:23
↓ 5 callers
Function
NewControlPlaneConnection
(addresses []string)
pkg/grpc_helpers/grpc_helpers.go:173
↓ 5 callers
Function
NewMockPersistenceLayer
NewMockPersistenceLayer creates a new mock instance.
mock/mock_persistence/mock_persistence.go:32
↓ 5 callers
Method
NodeHeartbeat
(ctx context.Context, in *NodeHeartbeatMessage, opts ...grpc.CallOption)
api/proto/control_plane_interface_grpc.pb.go:27
↓ 5 callers
Method
OnMetricsReceive
(ctx context.Context, in *AutoscalingMetric, opts ...grpc.CallOption)
api/proto/control_plane_interface_grpc.pb.go:22
↓ 5 callers
Method
RegisterDataplane
(ctx context.Context, in *DataplaneInfo, opts ...grpc.CallOption)
api/proto/control_plane_interface_grpc.pb.go:24
↓ 5 callers
Method
RegisterNode
(ctx context.Context, in *NodeInfo, opts ...grpc.CallOption)
api/proto/control_plane_interface_grpc.pb.go:26
↓ 5 callers
Method
RestartHAProxy
RestartHAProxy Should be called to commit every action to the running instance of HAProxy
internal/data_plane/haproxy/manager.go:100
↓ 5 callers
Function
ScanKeys
(ctx context.Context, client *redis.Client, prefix string)
pkg/redis_helpers/redis_helpers.go:71
↓ 5 callers
Method
StartTracingService
()
internal/data_plane/proxy/proxy.go:31
↓ 5 callers
Method
Stop
Stop stops this CM, cleaning up its state. This method returns quickly, but it may take a bit of time (up to ~election timeout) for all goroutines to
internal/control_plane/leader_election/consensus_module.go:115
↓ 5 callers
Function
getResult
(load, rootPath)
scripts/plotting/common.py:49
↓ 4 callers
Method
AddSandbox
(key string, metadata *Metadata)
internal/worker_node/managers/sandbox_manager.go:60
↓ 4 callers
Function
CreateContainer
(ctx context.Context, client *containerd.Client, image containerd.Image)
internal/worker_node/sandbox/containerd/iface.go:75
↓ 4 callers
Method
DeleteWorkerNodeInformation
(ctx context.Context, name string)
internal/control_plane/persistence/interface.go:38
↓ 4 callers
Method
DeregisterDataplane
(ctx context.Context, in *proto.DataplaneInfo)
internal/control_plane/control_plane.go:138
↓ 4 callers
Method
DeregisterNode
(_ context.Context, in *proto.NodeInfo)
internal/control_plane/control_plane.go:235
↓ 4 callers
Method
DeregisterService
(ctx context.Context, in *ServiceInfo, opts ...grpc.CallOption)
api/proto/control_plane_interface_grpc.pb.go:31
↓ 4 callers
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
mock/mock_cp_api/mock_cp_api.go:40
↓ 4 callers
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
mock/mock_core/mock_core.go:223
↓ 4 callers
Function
FetchImage
(ctx context.Context, client *containerd.Client, imageURL string)
internal/worker_node/sandbox/containerd/iface.go:66
↓ 4 callers
Method
GetImage
(ctx context.Context, containerdClient *containerd.Client, url string)
internal/worker_node/sandbox/containerd/image_manager.go:43
↓ 4 callers
Method
GetKubernetesRoundRobinCounter
()
internal/data_plane/function_metadata/function_metadata.go:145
↓ 4 callers
Function
Int64Ptr
(val int)
internal/data_plane/haproxy/manager.go:207
↓ 4 callers
Function
NewDefaultAutoscalingMetadata
(coldStartSweep bool)
internal/control_plane/autoscaling/autoscaling.go:62
↓ 4 callers
Function
ReadWorkedNodeConfiguration
(configPath string)
pkg/config/config.go:166
next →
1–100 of 1,276, ranked by callers