Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/openelb/openelb
/ functions
Functions
689 in github.com/openelb/openelb
⨍
Functions
689
◇
Types & classes
188
↓ 60 callers
Method
Get
Get returns the Eip object in the kubernetes cluster if found.
pkg/server/internal/handler/eip.go:17
↓ 44 callers
Method
Error
()
test/e2e/framework/expect.go:21
↓ 43 callers
Function
ExpectNoError
ExpectNoError checks if "err" is set, and if so, fails assertion while logging the error.
test/e2e/framework/expect.go:64
↓ 41 callers
Method
Contains
(interface{})
pkg/util/set/set.go:30
↓ 36 callers
Method
DeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Eip.
api/v1alpha2/zz_generated.deepcopy.go:394
↓ 35 callers
Method
Add
(interface{})
pkg/util/set/set.go:26
↓ 33 callers
Method
String
()
pkg/version/version.go:26
↓ 32 callers
Method
Update
Update edits the Eip object in the kubernetes cluster.
pkg/server/internal/handler/eip.go:23
↓ 28 callers
Function
prepareRange
(start, end string)
pkg/util/iprange/parse_test.go:256
↓ 24 callers
Method
Delete
Delete deletes the Eip object in the kubernetes cluster.
pkg/server/internal/handler/eip.go:25
↓ 23 callers
Method
Create
Create creates a new Eip object in the kubernetes cluster.
pkg/server/internal/handler/eip.go:15
↓ 23 callers
Function
GetNodeName
()
pkg/util/util.go:56
↓ 22 callers
Method
List
List returns the list of Eip objects in the kubernetes cluster.
pkg/server/internal/handler/eip.go:19
↓ 21 callers
Method
DeepCopyInto
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
api/v1alpha2/zz_generated.deepcopy.go:385
↓ 17 callers
Function
ServeRequest
ServeRequest handles an inbound request.
pkg/server/internal/lib/endpoints.go:38
↓ 14 callers
Method
Equal
(ip string, nexthops []string)
pkg/speaker/fake.go:39
↓ 13 callers
Function
ContainsString
(slice []string, s string)
pkg/util/util.go:16
↓ 13 callers
Function
ParseRange
ParseRange parses s as an IP Range, returning the result and an error if any. The string s can be in IPv4 address ("192.0.2.1"), IPv4 range ("192.0.2.
pkg/util/iprange/parse.go:53
↓ 12 callers
Method
GetProtocol
()
api/v1alpha2/eip_types.go:62
↓ 12 callers
Method
GetSize
()
api/v1alpha2/eip_types.go:72
↓ 10 callers
Function
DutyOfCNI
(metaOld metav1.Object, metaNew metav1.Object)
pkg/util/util.go:64
↓ 9 callers
Method
DeepCopyInto
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
api/v1alpha1/zz_generated.deepcopy.go:225
↓ 9 callers
Method
Equals
(Set)
pkg/util/set/set.go:33
↓ 9 callers
Method
Size
()
pkg/util/iprange/range.go:26
↓ 9 callers
Function
writeResponse
writeResponse writes the response to the writer with status code and response body.
pkg/server/internal/lib/endpoints.go:70
↓ 8 callers
Function
EnvNamespace
()
pkg/util/util.go:105
↓ 8 callers
Method
HandleBgpPeer
(neighbor *bgpapi.BgpPeer, delete bool)
pkg/speaker/bgp/bgp/peers.go:107
↓ 8 callers
Method
Len
()
pkg/util/set/set.go:25
↓ 8 callers
Function
checkBgpPeer
(bgpPeer *v1alpha2.BgpPeer, fn func(dst *v1alpha2.BgpPeer) bool)
pkg/speaker/bgp/suite_test.go:499
↓ 7 callers
Method
Contains
(ip net.IP)
pkg/util/iprange/range.go:25
↓ 7 callers
Method
Patch
Patch patches the Eip object in the kubernetes cluster.
pkg/server/internal/handler/eip.go:21
↓ 7 callers
Method
Register
(httpRouter chi.Router)
pkg/server/internal/lib/endpoints.go:15
↓ 7 callers
Method
String
()
pkg/controllers/ipam/ipam.go:47
↓ 7 callers
Function
proxyRescName
eg. OpenELB NodeProxy name/namespace: `nginx`/`default`, DaemonSet/Deployment/Pod name: `svc-proxy-nginx-default`
pkg/controllers/lb/nodeproxy.go:29
↓ 6 callers
Method
HandleBgpGlobalConfig
(global *bgpapi.BgpConf, rack string, delete bool, cm *corev1.ConfigMap)
pkg/speaker/bgp/bgp/conf.go:11
↓ 6 callers
Method
Iter
(func(item interface{}) error)
pkg/util/set/set.go:31
↓ 6 callers
Method
Start
()
pkg/speaker/layer2/announcer.go:13
↓ 6 callers
Method
ToInt
()
pkg/speaker/bgp/bgp/config/bgp_configs.go:351
↓ 6 callers
Method
retriveRoutes
(ip string, prefix uint32, nexthops []string)
pkg/speaker/bgp/bgp/path.go:78
↓ 5 callers
Method
AddFlags
(fs *pflag.FlagSet)
pkg/speaker/vip/options.go:21
↓ 5 callers
Method
Allocate
Allocate finds an unused ID, sets it as used, and returns its value. If the IDAllocator is full and there are no more IDs available, id will be set to
pkg/util/idalloc/idalloc.go:53
↓ 5 callers
Method
BeforeEach
BeforeEach gets a openelb client
test/e2e/framework/framework.go:55
↓ 5 callers
Method
IsOverlap
+kubebuilder:webhook:admissionReviewVersions=v1,path=/validate-network-kubesphere-io-v1alpha2-eip,mutating=false,sideEffects=NoneOnDryRun,failurePolic
api/v1alpha2/eip_types.go:163
↓ 5 callers
Function
Logf
Logf logs the info.
test/e2e/framework/log.go:19
↓ 5 callers
Function
New
New creates a new IDAllocator that may allocate up to numIDs values. numIDs must be a multiple of 64.
pkg/util/idalloc/idalloc.go:31
↓ 5 callers
Function
ParseCIDR
(c string)
pkg/util/net/ipnet.go:72
↓ 5 callers
Method
String
String returns a friendly name for the network. The standard net package implements String() on the pointer, which means it will not be invoked on a
pkg/util/net/ipnet.go:118
↓ 5 callers
Method
addSvcEventRecorder
(ctx context.Context, services, eventType, reason, message string)
pkg/speaker/manager.go:274
↓ 4 callers
Method
DeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BgpConf.
api/v1alpha2/zz_generated.deepcopy.go:124
↓ 4 callers
Method
Discard
(interface{})
pkg/util/set/set.go:28
↓ 4 callers
Function
ExpectEqual
ExpectEqual expects the specified two are the same, otherwise an exception raises
test/e2e/framework/expect.go:49
↓ 4 callers
Method
IPToOrdinal
(ip net.IP)
api/v1alpha2/eip_types.go:40
↓ 4 callers
Function
IsOpenELBService
(obj runtime.Object)
pkg/controllers/lb/controller.go:273
↓ 4 callers
Function
KubesphereDescribe
KubesphereDescribe annotates the test with the SIG label.
test/e2e/framework/framework.go:16
↓ 4 callers
Function
New
()
pkg/util/set/set.go:46
↓ 4 callers
Function
NewDefaultFramework
(baseName string)
test/e2e/framework/framework.go:27
↓ 4 callers
Function
NewManager
(client client.Client)
pkg/controllers/ipam/ipam.go:62
↓ 4 callers
Function
ParseIP
ParseIP returns an IP from a string
pkg/util/net/ip.go:42
↓ 4 callers
Function
ParseRanges
ParseRanges parses s as a space separated list of IP Ranges, returning the result and an error if any. IP Range can be in IPv4 address ("192.0.2.1"),
pkg/util/iprange/parse.go:21
↓ 4 callers
Method
setBalancer
(ctx context.Context, protocol string, usage map[string]string)
pkg/speaker/manager.go:243
↓ 4 callers
Method
setBalancer
(ip string, nexthops []string)
pkg/speaker/bgp/bgp/path.go:138
↓ 4 callers
Method
shouldReconcileDeDs
(e metav1.Object)
pkg/controllers/lb/nodeproxy.go:37
↓ 3 callers
Method
AddAll
(itemArray interface{})
pkg/util/set/set.go:27
↓ 3 callers
Function
Create
(ctx context.Context, c client.Client, obj client.Object, f CreateFn)
pkg/util/util.go:93
↓ 3 callers
Method
DeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BgpPeer.
api/v1alpha2/zz_generated.deepcopy.go:242
↓ 3 callers
Method
DefaultAsNeeded
()
pkg/speaker/bgp/bgp/config/bgp_configs.go:172
↓ 3 callers
Function
ExpectNotNil
ExpectNotNil expects actual is not nil
test/e2e/framework/expect.go:74
↓ 3 callers
Function
Failf
Failf logs the fail info, including a stack trace starts with its direct caller (for example, for call chain f -> g -> Failf("foo", ...) error would b
test/e2e/framework/log.go:25
↓ 3 callers
Method
Free
Free marks id as unused. id must have been previously returned by a successful call to Allocate.
pkg/util/idalloc/idalloc.go:102
↓ 3 callers
Function
From
(members ...interface{})
pkg/util/set/set.go:50
↓ 3 callers
Function
FromArray
(membersArray interface{})
pkg/util/set/set.go:56
↓ 3 callers
Function
GenerateCretiriaAndAction
(routerIP, localIP string, gobgpPort int32)
pkg/nettool/iptables.go:10
↓ 3 callers
Function
Get
Get returns the overall codebase version. It's for detecting what code a binary was built from.
pkg/version/version.go:33
↓ 3 callers
Method
Get
Get returns the BgpConf object in the kubernetes cluster if found.
pkg/server/internal/handler/bgpconf.go:57
↓ 3 callers
Method
Get
Get returns the Eip object in the kubernetes cluster if found.
pkg/server/internal/handler/eip.go:51
↓ 3 callers
Method
Get
Get returns the BgpPeer object in the kubernetes cluster if found.
pkg/server/internal/handler/bgppeer.go:51
↓ 3 callers
Function
IsDeletionCandidate
IsDeletionCandidate checks if object is candidate to be deleted
pkg/util/util.go:36
↓ 3 callers
Function
MustParseCIDR
MustParseCIDR parses the string into an IPNet. The IP address in the IPNet is not masked.
pkg/util/net/ipnet.go:142
↓ 3 callers
Function
NeedToAddFinalizer
NeedToAddFinalizer checks if need to add finalizer to object
pkg/util/util.go:41
↓ 3 callers
Method
RegisterSpeaker
TODO: Dynamically configure the speaker through configmap
pkg/speaker/manager.go:88
↓ 3 callers
Method
Stop
()
pkg/speaker/layer2/announcer.go:14
↓ 3 callers
Method
String
String returns the string form of the pool.
pkg/util/iprange/pool.go:15
↓ 3 callers
Method
WriteCfg
WriteCfg creates a new keepalived configuration file. In case of an error with the generation it returns the error
pkg/speaker/vip/keepalived.go:301
↓ 3 callers
Function
getFamily
(ip string)
pkg/speaker/bgp/bgp/path.go:27
↓ 3 callers
Method
getServices
()
pkg/controllers/lb/eventhandler.go:20
↓ 3 callers
Method
getServices
Get all OpenELB NodeProxy Services to reconcile them later These Services will be exposed by Proxy Pod
pkg/controllers/lb/eventhandler.go:128
↓ 3 callers
Function
isV4IP
(ip net.IP)
pkg/util/iprange/parse.go:125
↓ 3 callers
Method
shouldReconcileEP
(e metav1.Object)
pkg/speaker/lb_controller.go:54
↓ 2 callers
Method
AllocateWithHash
AllocateWithHash allocates an ID based on the given SHA256 hash. The same hash will always result in the same ID. If the calculated ID is already allo
pkg/util/idalloc/idalloc.go:73
↓ 2 callers
Method
AssignIP
(ctx context.Context, allocate *svcRecord)
pkg/controllers/ipam/ipam.go:420
↓ 2 callers
Method
Backtrace
()
test/e2e/framework/expect.go:25
↓ 2 callers
Function
Check
(ctx context.Context, c client.Client, obj client.Object, f CheckFn)
pkg/util/util.go:82
↓ 2 callers
Method
Clear
()
pkg/util/set/set.go:29
↓ 2 callers
Method
ConfigureWithEIP
(config Config, deleted bool)
pkg/speaker/interface.go:18
↓ 2 callers
Method
ConstructRequest
(ctx context.Context, svc *v1.Service)
pkg/controllers/ipam/ipam.go:202
↓ 2 callers
Method
ContainsAll
(Set)
pkg/util/set/set.go:34
↓ 2 callers
Method
ContainsIP
(net.IP)
pkg/speaker/layer2/announcer.go:15
↓ 2 callers
Method
Copy
()
pkg/util/set/set.go:32
↓ 2 callers
Method
DelBalancer
(ip string)
pkg/speaker/interface.go:16
↓ 2 callers
Function
Do
(address string)
test/e2e/framework/network.go:15
next →
1–100 of 689, ranked by callers