Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Demonware/balanced
/ functions
Functions
408 in github.com/Demonware/balanced
⨍
Functions
408
◇
Types & classes
65
↓ 90 callers
Method
Infof
(format string, args ...interface{})
pkg/util/logger.go:4
↓ 61 callers
Method
ID
()
cmd/tunnel-controller/hostpod.go:36
↓ 55 callers
Function
NewService
(kubeService *api.Service, portSpec api.ServicePort, opts ...ServiceOption)
pkg/apis/balanced/v1alpha1/service.go:68
↓ 50 callers
Method
ID
()
pkg/apis/balanced/v1alpha1/service.go:93
↓ 33 callers
Method
Address
()
pkg/apis/balanced/v1alpha1/service.go:109
↓ 31 callers
Method
String
()
pkg/health/check.go:30
↓ 26 callers
Method
Add
(svc *Service, handlers ...ServiceOnChangeHandler)
pkg/apis/balanced/v1alpha1/map_service_mgr.go:132
↓ 26 callers
Method
Service
()
pkg/apis/balanced/v1alpha1/endpoint.go:82
↓ 24 callers
Function
exportGaugeMetric
(gauge *prometheus.GaugeVec, value float64, lvs ...string)
cmd/ipvs-controller/metrics.go:372
↓ 21 callers
Function
NewMapServiceManager
(logger util.Logger)
pkg/apis/balanced/v1alpha1/map_service_mgr.go:20
↓ 17 callers
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use
mocks/mock_service_mgr.go:32
↓ 17 callers
Method
TargetRef
()
pkg/apis/balanced/v1alpha1/endpoint.go:106
↓ 16 callers
Function
NewEndpoint
(kubeEndpoints *api.Endpoints, kubeEndpointAddress *api.EndpointAddress, kubeEndpointPort *api.EndpointPort, o
pkg/apis/balanced/v1alpha1/endpoint.go:56
↓ 16 callers
Function
Readiness
(ready bool)
pkg/apis/balanced/v1alpha1/endpoint.go:21
↓ 15 callers
Method
UpsertEndpoints
UpsertEndpoints : will only insert or update endpoints that are a child of this Service, ignore the rest
pkg/apis/balanced/v1alpha1/service.go:290
↓ 14 callers
Method
Port
()
pkg/apis/balanced/v1alpha1/service.go:113
↓ 13 callers
Method
KubeAPIV1Service
()
pkg/apis/balanced/v1alpha1/service.go:105
↓ 13 callers
Function
NewController
( kubeClient kubernetes.Interface, s coreinformer.ServiceInformer, e coreinformer.EndpointsInformer, additio
pkg/watcher/controller.go:289
↓ 13 callers
Method
Run
(workers uint)
pkg/watcher/controller.go:59
↓ 11 callers
Function
NewVIPReconciler
(client clientset.Interface, ipPoolName *string, cidr *net.IPNet, s coreinformer.ServiceInformer, eventRecord
cmd/vip-allocation-controller/reconciler.go:37
↓ 11 callers
Method
Set
(h *HostPod)
cmd/tunnel-controller/cache.go:18
↓ 10 callers
Method
Add
(e *Endpoint, handlers ...EndpointOnChangeHandler)
pkg/apis/balanced/v1alpha1/service.go:205
↓ 9 callers
Function
NewNamedLogger
(name string, level glog.Level)
pkg/util/named_logger.go:12
↓ 8 callers
Method
Add
(svc *Service, handlers ...ServiceOnChangeHandler)
pkg/apis/balanced/v1alpha1/service_mgr.go:13
↓ 8 callers
Method
Get
(svcID string)
pkg/apis/balanced/v1alpha1/service_mgr.go:10
↓ 8 callers
Method
List
()
pkg/apis/balanced/v1alpha1/service_mgr.go:11
↓ 8 callers
Function
NewHostPod
(pod *api.Pod)
cmd/tunnel-controller/hostpod.go:26
↓ 8 callers
Function
NewIpvsReconciler
(cidrs []*net.IPNet, s cache.SharedIndexInformer, eventRecorder record.EventRecorder, sm v1alpha1.ServiceMana
cmd/ipvs-controller/reconciler.go:36
↓ 8 callers
Method
Pod
()
cmd/tunnel-controller/hostpod.go:104
↓ 8 callers
Method
Set
(svc *v1alpha1.Service)
cmd/tunnel-controller/hostpod.go:51
↓ 8 callers
Method
with
(f func())
pkg/apis/balanced/v1alpha1/map_service_mgr.go:275
↓ 7 callers
Method
AssignVIPIfValidService
(prevSvc *v1alpha1.Service, svc *v1alpha1.Service)
cmd/vip-allocation-controller/reconciler.go:85
↓ 7 callers
Method
ContainerID
ContainerID: find first running container ID from normal containers and fallback to initContainers
cmd/tunnel-controller/hostpod.go:96
↓ 7 callers
Function
ConvertKubeAPIV1EndpointsToEndpoints
ConvertKubeAPIV1EndpointsToEndpoints translates kubernetes endpoints objects to balanced endpoints
pkg/apis/balanced/v1alpha1/endpoint.go:29
↓ 7 callers
Method
ConvertServiceToIpvsService
(svc *v1alpha1.Service)
cmd/ipvs-controller/reconciler.go:423
↓ 7 callers
Method
Exists
(svc *Service)
pkg/apis/balanced/v1alpha1/service_mgr.go:5
↓ 7 callers
Method
Protocol
()
pkg/apis/balanced/v1alpha1/service.go:121
↓ 7 callers
Method
isValidIPAddress
(svc *v1alpha1.Service)
cmd/ipvs-controller/reconciler.go:107
↓ 7 callers
Method
syncServiceManager
(key string)
pkg/watcher/controller.go:221
↓ 6 callers
Method
List
()
pkg/apis/balanced/v1alpha1/map_service_mgr.go:100
↓ 6 callers
Method
PortName
()
pkg/apis/balanced/v1alpha1/service.go:117
↓ 6 callers
Method
Remove
(svc *Service, handlers ...ServiceOnChangeHandler)
pkg/apis/balanced/v1alpha1/service_mgr.go:15
↓ 6 callers
Method
SetService
(svc *Service)
pkg/apis/balanced/v1alpha1/endpoint.go:77
↓ 6 callers
Method
with
(f func())
pkg/apis/balanced/v1alpha1/service.go:355
↓ 6 callers
Function
withIpvsHandle
(f func(*ipvs.Handle) error)
cmd/ipvs-controller/reconciler.go:460
↓ 5 callers
Method
Addresses
()
cmd/tunnel-controller/hostpod.go:70
↓ 5 callers
Method
Annotations
()
pkg/apis/balanced/v1alpha1/service.go:147
↓ 5 callers
Method
HasChanged
(h *HostPod)
cmd/tunnel-controller/cache.go:53
↓ 5 callers
Method
IsTargetPod
()
pkg/apis/balanced/v1alpha1/endpoint.go:118
↓ 5 callers
Method
KubeAPIV1ServiceName
()
pkg/apis/balanced/v1alpha1/service.go:101
↓ 5 callers
Method
ListServicesWithAddress
()
pkg/apis/balanced/v1alpha1/service_mgr.go:12
↓ 5 callers
Method
Ready
()
pkg/apis/balanced/v1alpha1/endpoint.go:129
↓ 5 callers
Method
RegisterCheck
(c ...HealthCheck)
pkg/health/manager.go:15
↓ 5 callers
Method
ResolveByKubeMetaNamespaceKey
ResolveByKubeMetaNamespaceKey : finds all Services with the same Kubernetes Service Object Key
pkg/apis/balanced/v1alpha1/service_mgr.go:7
↓ 5 callers
Method
TargetRefString
()
pkg/apis/balanced/v1alpha1/endpoint.go:110
↓ 5 callers
Method
getIpvsScheduler
(svc *v1alpha1.Service)
cmd/ipvs-controller/reconciler.go:410
↓ 5 callers
Method
informerHasSyncedFuncs
()
pkg/watcher/controller.go:45
↓ 5 callers
Function
isValidEndpoint
(e *v1alpha1.Endpoint)
cmd/ipvs-controller/reconciler.go:403
↓ 4 callers
Function
ConvertEndpointToIpvsDestination
(endpoint *v1alpha1.Endpoint)
cmd/ipvs-controller/reconciler.go:389
↓ 4 callers
Method
Equals
(svc *Service)
pkg/apis/balanced/v1alpha1/service.go:140
↓ 4 callers
Method
FreeIPs
()
cmd/vip-allocation-controller/reconciler.go:225
↓ 4 callers
Method
KubeAPIV1Endpoints
()
pkg/apis/balanced/v1alpha1/endpoint.go:90
↓ 4 callers
Method
List
()
pkg/apis/balanced/v1alpha1/service.go:190
↓ 4 callers
Function
LoadKernelModule
(name string)
pkg/util/main.go:157
↓ 4 callers
Function
Main
(f MainFunc, cfg interface{})
pkg/util/main.go:41
↓ 4 callers
Function
NewEventRecorder
(client clientset.Interface, componentName string)
pkg/util/events.go:12
↓ 4 callers
Function
NewGenericHealthCheck
(name string, period time.Duration)
pkg/health/check.go:23
↓ 4 callers
Function
NewMockServiceManager
NewMockServiceManager creates a new mock instance
mocks/mock_service_mgr.go:25
↓ 4 callers
Method
NodeName
()
pkg/apis/balanced/v1alpha1/endpoint.go:125
↓ 4 callers
Method
ProtoNumber
()
pkg/apis/balanced/v1alpha1/service.go:125
↓ 4 callers
Method
ResolveByKubeMetaNamespaceKey
ResolveByKubeMetaNamespaceKey : finds all Services with the same Kubernetes Service Object Key
pkg/apis/balanced/v1alpha1/map_service_mgr.go:39
↓ 4 callers
Method
Update
(svc *Service, handlers ...ServiceOnChangeHandler)
pkg/apis/balanced/v1alpha1/service_mgr.go:14
↓ 4 callers
Method
Update
(svc *Service, handlers ...ServiceOnChangeHandler)
pkg/apis/balanced/v1alpha1/map_service_mgr.go:154
↓ 4 callers
Method
UpdateServicesRecursively
UpdateServicesRecursively will add Service to SM if not already exist and its Endpoints, otherwise, it will update the existing Service in the SM alon
pkg/apis/balanced/v1alpha1/map_service_mgr.go:250
↓ 4 callers
Method
addKeyToWorkQueue
(key string)
pkg/watcher/controller.go:279
↓ 4 callers
Function
containerIDString
(containerID *string)
cmd/tunnel-controller/cache.go:67
↓ 4 callers
Method
deleteEndpointsNotSupplied
(endpoints []*Endpoint, handlers ...EndpointOnChangeHandler)
pkg/apis/balanced/v1alpha1/service.go:327
↓ 4 callers
Method
existingIPs
()
cmd/vip-allocation-controller/reconciler.go:172
↓ 4 callers
Method
exists
(e *Endpoint)
pkg/apis/balanced/v1alpha1/service.go:169
↓ 4 callers
Method
exists
(svc *Service)
pkg/apis/balanced/v1alpha1/map_service_mgr.go:33
↓ 4 callers
Function
getServiceManager
()
cmd/vip-allocation-controller/reconciler_test.go:355
↓ 4 callers
Method
ipPoolName
()
cmd/vip-allocation-controller/reconciler.go:57
↓ 4 callers
Method
isIPinCIDRs
(ip net.IP)
cmd/ipvs-controller/reconciler.go:98
↓ 4 callers
Function
isValidEndpoint
(hostname string, e *v1alpha1.Endpoint)
cmd/tunnel-controller/reconciler.go:61
↓ 3 callers
Function
ConvertKubeAPIV1ServiceToServices
ConvertKubeAPIV1ServiceToServices assumes a kubeService with Service Type: LoadBalancer
pkg/apis/balanced/v1alpha1/service.go:55
↓ 3 callers
Method
Delete
(h *HostPod)
cmd/tunnel-controller/cache.go:17
↓ 3 callers
Function
Difference
Difference returns the elements in a that aren't in b
pkg/util/main.go:143
↓ 3 callers
Function
GetDummyVipInterface
()
pkg/util/iface.go:26
↓ 3 callers
Method
GetPID
(string)
pkg/pidresolver/pidresolver.go:6
↓ 3 callers
Method
IsChildEndpoint
(e *Endpoint)
pkg/apis/balanced/v1alpha1/service.go:151
↓ 3 callers
Method
Remove
(svc *Service, handlers ...ServiceOnChangeHandler)
pkg/apis/balanced/v1alpha1/map_service_mgr.go:188
↓ 3 callers
Method
RemoveByID
(svcID string, handlers ...ServiceOnChangeHandler)
pkg/apis/balanced/v1alpha1/map_service_mgr.go:210
↓ 3 callers
Method
RemoveExistingServicesNoLongerCurrent
RemoveExistingServicesNoLongerCurrent removes existing services that are managed by the MapServiceManager that are no longer in existence in the real
pkg/apis/balanced/v1alpha1/service_mgr.go:9
↓ 3 callers
Method
RemoveServicesRecursively
RemoveServicesRecursively remove Endpoints of a Service first before removal
pkg/apis/balanced/v1alpha1/map_service_mgr.go:232
↓ 3 callers
Method
ResolverType
()
pkg/pidresolver/pidresolver.go:7
↓ 3 callers
Method
Update
(e *Endpoint, handlers ...EndpointOnChangeHandler)
pkg/apis/balanced/v1alpha1/service.go:229
↓ 3 callers
Method
UpdatePod
(pod *api.Pod)
cmd/tunnel-controller/hostpod.go:40
↓ 3 callers
Method
UpdateServicesRecursively
UpdateServicesRecursively will add Service to SM if not already exist and its Endpoints, otherwise, it will update the existing Service in the SM alon
pkg/apis/balanced/v1alpha1/service_mgr.go:21
↓ 3 callers
Method
allIPs
allIPs return a slice of IP strings within the CIDR
cmd/vip-allocation-controller/reconciler.go:185
↓ 3 callers
Function
convertNetIPToStringSlice
(ips []net.IP)
cmd/tunnel-controller/cache.go:92
next →
1–100 of 408, ranked by callers