MCPcopy Create free account

hub / github.com/openelb/openelb / functions

Functions689 in github.com/openelb/openelb

↓ 60 callersMethodGet
Get returns the Eip object in the kubernetes cluster if found.
pkg/server/internal/handler/eip.go:17
↓ 44 callersMethodError
()
test/e2e/framework/expect.go:21
↓ 43 callersFunctionExpectNoError
ExpectNoError checks if "err" is set, and if so, fails assertion while logging the error.
test/e2e/framework/expect.go:64
↓ 41 callersMethodContains
(interface{})
pkg/util/set/set.go:30
↓ 36 callersMethodDeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Eip.
api/v1alpha2/zz_generated.deepcopy.go:394
↓ 35 callersMethodAdd
(interface{})
pkg/util/set/set.go:26
↓ 33 callersMethodString
()
pkg/version/version.go:26
↓ 32 callersMethodUpdate
Update edits the Eip object in the kubernetes cluster.
pkg/server/internal/handler/eip.go:23
↓ 28 callersFunctionprepareRange
(start, end string)
pkg/util/iprange/parse_test.go:256
↓ 24 callersMethodDelete
Delete deletes the Eip object in the kubernetes cluster.
pkg/server/internal/handler/eip.go:25
↓ 23 callersMethodCreate
Create creates a new Eip object in the kubernetes cluster.
pkg/server/internal/handler/eip.go:15
↓ 23 callersFunctionGetNodeName
()
pkg/util/util.go:56
↓ 22 callersMethodList
List returns the list of Eip objects in the kubernetes cluster.
pkg/server/internal/handler/eip.go:19
↓ 21 callersMethodDeepCopyInto
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 callersFunctionServeRequest
ServeRequest handles an inbound request.
pkg/server/internal/lib/endpoints.go:38
↓ 14 callersMethodEqual
(ip string, nexthops []string)
pkg/speaker/fake.go:39
↓ 13 callersFunctionContainsString
(slice []string, s string)
pkg/util/util.go:16
↓ 13 callersFunctionParseRange
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 callersMethodGetProtocol
()
api/v1alpha2/eip_types.go:62
↓ 12 callersMethodGetSize
()
api/v1alpha2/eip_types.go:72
↓ 10 callersFunctionDutyOfCNI
(metaOld metav1.Object, metaNew metav1.Object)
pkg/util/util.go:64
↓ 9 callersMethodDeepCopyInto
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 callersMethodEquals
(Set)
pkg/util/set/set.go:33
↓ 9 callersMethodSize
()
pkg/util/iprange/range.go:26
↓ 9 callersFunctionwriteResponse
writeResponse writes the response to the writer with status code and response body.
pkg/server/internal/lib/endpoints.go:70
↓ 8 callersFunctionEnvNamespace
()
pkg/util/util.go:105
↓ 8 callersMethodHandleBgpPeer
(neighbor *bgpapi.BgpPeer, delete bool)
pkg/speaker/bgp/bgp/peers.go:107
↓ 8 callersMethodLen
()
pkg/util/set/set.go:25
↓ 8 callersFunctioncheckBgpPeer
(bgpPeer *v1alpha2.BgpPeer, fn func(dst *v1alpha2.BgpPeer) bool)
pkg/speaker/bgp/suite_test.go:499
↓ 7 callersMethodContains
(ip net.IP)
pkg/util/iprange/range.go:25
↓ 7 callersMethodPatch
Patch patches the Eip object in the kubernetes cluster.
pkg/server/internal/handler/eip.go:21
↓ 7 callersMethodRegister
(httpRouter chi.Router)
pkg/server/internal/lib/endpoints.go:15
↓ 7 callersMethodString
()
pkg/controllers/ipam/ipam.go:47
↓ 7 callersFunctionproxyRescName
eg. OpenELB NodeProxy name/namespace: `nginx`/`default`, DaemonSet/Deployment/Pod name: `svc-proxy-nginx-default`
pkg/controllers/lb/nodeproxy.go:29
↓ 6 callersMethodHandleBgpGlobalConfig
(global *bgpapi.BgpConf, rack string, delete bool, cm *corev1.ConfigMap)
pkg/speaker/bgp/bgp/conf.go:11
↓ 6 callersMethodIter
(func(item interface{}) error)
pkg/util/set/set.go:31
↓ 6 callersMethodStart
()
pkg/speaker/layer2/announcer.go:13
↓ 6 callersMethodToInt
()
pkg/speaker/bgp/bgp/config/bgp_configs.go:351
↓ 6 callersMethodretriveRoutes
(ip string, prefix uint32, nexthops []string)
pkg/speaker/bgp/bgp/path.go:78
↓ 5 callersMethodAddFlags
(fs *pflag.FlagSet)
pkg/speaker/vip/options.go:21
↓ 5 callersMethodAllocate
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 callersMethodBeforeEach
BeforeEach gets a openelb client
test/e2e/framework/framework.go:55
↓ 5 callersMethodIsOverlap
+kubebuilder:webhook:admissionReviewVersions=v1,path=/validate-network-kubesphere-io-v1alpha2-eip,mutating=false,sideEffects=NoneOnDryRun,failurePolic
api/v1alpha2/eip_types.go:163
↓ 5 callersFunctionLogf
Logf logs the info.
test/e2e/framework/log.go:19
↓ 5 callersFunctionNew
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 callersFunctionParseCIDR
(c string)
pkg/util/net/ipnet.go:72
↓ 5 callersMethodString
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 callersMethodaddSvcEventRecorder
(ctx context.Context, services, eventType, reason, message string)
pkg/speaker/manager.go:274
↓ 4 callersMethodDeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BgpConf.
api/v1alpha2/zz_generated.deepcopy.go:124
↓ 4 callersMethodDiscard
(interface{})
pkg/util/set/set.go:28
↓ 4 callersFunctionExpectEqual
ExpectEqual expects the specified two are the same, otherwise an exception raises
test/e2e/framework/expect.go:49
↓ 4 callersMethodIPToOrdinal
(ip net.IP)
api/v1alpha2/eip_types.go:40
↓ 4 callersFunctionIsOpenELBService
(obj runtime.Object)
pkg/controllers/lb/controller.go:273
↓ 4 callersFunctionKubesphereDescribe
KubesphereDescribe annotates the test with the SIG label.
test/e2e/framework/framework.go:16
↓ 4 callersFunctionNew
()
pkg/util/set/set.go:46
↓ 4 callersFunctionNewDefaultFramework
(baseName string)
test/e2e/framework/framework.go:27
↓ 4 callersFunctionNewManager
(client client.Client)
pkg/controllers/ipam/ipam.go:62
↓ 4 callersFunctionParseIP
ParseIP returns an IP from a string
pkg/util/net/ip.go:42
↓ 4 callersFunctionParseRanges
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 callersMethodsetBalancer
(ctx context.Context, protocol string, usage map[string]string)
pkg/speaker/manager.go:243
↓ 4 callersMethodsetBalancer
(ip string, nexthops []string)
pkg/speaker/bgp/bgp/path.go:138
↓ 4 callersMethodshouldReconcileDeDs
(e metav1.Object)
pkg/controllers/lb/nodeproxy.go:37
↓ 3 callersMethodAddAll
(itemArray interface{})
pkg/util/set/set.go:27
↓ 3 callersFunctionCreate
(ctx context.Context, c client.Client, obj client.Object, f CreateFn)
pkg/util/util.go:93
↓ 3 callersMethodDeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BgpPeer.
api/v1alpha2/zz_generated.deepcopy.go:242
↓ 3 callersMethodDefaultAsNeeded
()
pkg/speaker/bgp/bgp/config/bgp_configs.go:172
↓ 3 callersFunctionExpectNotNil
ExpectNotNil expects actual is not nil
test/e2e/framework/expect.go:74
↓ 3 callersFunctionFailf
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 callersMethodFree
Free marks id as unused. id must have been previously returned by a successful call to Allocate.
pkg/util/idalloc/idalloc.go:102
↓ 3 callersFunctionFrom
(members ...interface{})
pkg/util/set/set.go:50
↓ 3 callersFunctionFromArray
(membersArray interface{})
pkg/util/set/set.go:56
↓ 3 callersFunctionGenerateCretiriaAndAction
(routerIP, localIP string, gobgpPort int32)
pkg/nettool/iptables.go:10
↓ 3 callersFunctionGet
Get returns the overall codebase version. It's for detecting what code a binary was built from.
pkg/version/version.go:33
↓ 3 callersMethodGet
Get returns the BgpConf object in the kubernetes cluster if found.
pkg/server/internal/handler/bgpconf.go:57
↓ 3 callersMethodGet
Get returns the Eip object in the kubernetes cluster if found.
pkg/server/internal/handler/eip.go:51
↓ 3 callersMethodGet
Get returns the BgpPeer object in the kubernetes cluster if found.
pkg/server/internal/handler/bgppeer.go:51
↓ 3 callersFunctionIsDeletionCandidate
IsDeletionCandidate checks if object is candidate to be deleted
pkg/util/util.go:36
↓ 3 callersFunctionMustParseCIDR
MustParseCIDR parses the string into an IPNet. The IP address in the IPNet is not masked.
pkg/util/net/ipnet.go:142
↓ 3 callersFunctionNeedToAddFinalizer
NeedToAddFinalizer checks if need to add finalizer to object
pkg/util/util.go:41
↓ 3 callersMethodRegisterSpeaker
TODO: Dynamically configure the speaker through configmap
pkg/speaker/manager.go:88
↓ 3 callersMethodStop
()
pkg/speaker/layer2/announcer.go:14
↓ 3 callersMethodString
String returns the string form of the pool.
pkg/util/iprange/pool.go:15
↓ 3 callersMethodWriteCfg
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 callersFunctiongetFamily
(ip string)
pkg/speaker/bgp/bgp/path.go:27
↓ 3 callersMethodgetServices
()
pkg/controllers/lb/eventhandler.go:20
↓ 3 callersMethodgetServices
Get all OpenELB NodeProxy Services to reconcile them later These Services will be exposed by Proxy Pod
pkg/controllers/lb/eventhandler.go:128
↓ 3 callersFunctionisV4IP
(ip net.IP)
pkg/util/iprange/parse.go:125
↓ 3 callersMethodshouldReconcileEP
(e metav1.Object)
pkg/speaker/lb_controller.go:54
↓ 2 callersMethodAllocateWithHash
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 callersMethodAssignIP
(ctx context.Context, allocate *svcRecord)
pkg/controllers/ipam/ipam.go:420
↓ 2 callersMethodBacktrace
()
test/e2e/framework/expect.go:25
↓ 2 callersFunctionCheck
(ctx context.Context, c client.Client, obj client.Object, f CheckFn)
pkg/util/util.go:82
↓ 2 callersMethodClear
()
pkg/util/set/set.go:29
↓ 2 callersMethodConfigureWithEIP
(config Config, deleted bool)
pkg/speaker/interface.go:18
↓ 2 callersMethodConstructRequest
(ctx context.Context, svc *v1.Service)
pkg/controllers/ipam/ipam.go:202
↓ 2 callersMethodContainsAll
(Set)
pkg/util/set/set.go:34
↓ 2 callersMethodContainsIP
(net.IP)
pkg/speaker/layer2/announcer.go:15
↓ 2 callersMethodCopy
()
pkg/util/set/set.go:32
↓ 2 callersMethodDelBalancer
(ip string)
pkg/speaker/interface.go:16
↓ 2 callersFunctionDo
(address string)
test/e2e/framework/network.go:15
next →1–100 of 689, ranked by callers