Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/caddyserver/ingress
/ functions
Functions
140 in github.com/caddyserver/ingress
⨍
Functions
140
◇
Types & classes
47
↓ 12 callers
Method
Run
Run method starts the ingress controller.
internal/controller/controller.go:169
↓ 11 callers
Function
RegisterPlugin
(m Plugin)
pkg/converter/converter.go:51
↓ 10 callers
Function
cleanKey
cleanKey strips all special characters that are not supported by kubernetes names and converts them to a '.'. sequences like '.*.' are also converted
pkg/storage/storage.go:43
↓ 10 callers
Function
createIngress
(uid string)
pkg/store/store_test.go:194
↓ 9 callers
Function
getAnnotation
(ing *v1.Ingress, rule string)
internal/caddy/ingress/annotations.go:18
↓ 5 callers
Method
AddIngress
AddIngress adds an ingress to the store. It updates the element at the given index if it is unique.
pkg/store/store.go:27
↓ 5 callers
Method
GetHTTPServer
()
pkg/converter/config.go:29
↓ 5 callers
Function
NewStore
NewStore returns a new store that keeps track of K8S resources needed by the controller.
pkg/store/store.go:16
↓ 5 callers
Function
createIngressTLS
(uid string, hosts []string, secret string)
pkg/store/store_test.go:179
↓ 4 callers
Method
GetMetricsServer
()
pkg/converter/config.go:33
↓ 3 callers
Method
HasManagedTLS
()
pkg/store/store.go:65
↓ 3 callers
Function
isControllerConfigMap
(cm *v1.ConfigMap, name string)
internal/k8s/configmap.go:21
↓ 3 callers
Function
isControllerIngress
isControllerIngress check if the ingress object can be controlled by us
internal/k8s/ingress.go:58
↓ 3 callers
Function
writeFile
writeFile writes a secret to a .pem file on disk.
internal/controller/action_tls.go:56
↓ 2 callers
Method
ConvertToCaddyConfig
(store *store.Store)
internal/controller/controller.go:63
↓ 2 callers
Method
GetTLSApp
()
pkg/converter/config.go:37
↓ 2 callers
Method
IngressHandler
IngressHandler Converts redirect annotations to static_response handler
internal/caddy/ingress/redirect.go:24
↓ 2 callers
Method
IngressHandler
IngressHandler Add a reverse proxy handler to the route
internal/caddy/ingress/reverseproxy.go:26
↓ 2 callers
Function
IsManagedTLSSecret
(secret *v12.Secret, ings []*v1.Ingress)
internal/k8s/tls_secret.go:67
↓ 2 callers
Method
List
List returns all keys that match prefix.
pkg/storage/storage.go:162
↓ 2 callers
Function
NewConfig
()
pkg/converter/config.go:41
↓ 2 callers
Function
ParseConfigMap
(cm *apiv1.ConfigMap)
pkg/store/configmap_parser.go:42
↓ 2 callers
Method
PluckIngress
PluckIngress removes the ingress passed in as an argument from the stores list of ingresses.
pkg/store/store.go:44
↓ 2 callers
Function
Plugins
Plugins return a sorted array of plugin instances. Sort is made following these rules: - Plugins specified in the order slice will always go first (in
pkg/converter/converter.go:95
↓ 2 callers
Function
getFirstItemFromJSON
(data json.RawMessage)
internal/caddy/global/ingress_sort.go:28
↓ 2 callers
Function
getOrderIndex
(order []string, plugin string)
pkg/converter/converter.go:61
↓ 2 callers
Function
lessLoadBalancerIngress
lessLoadBalancerIngress is a sorting function for ingress hostnames.
internal/controller/action_status.go:111
↓ 2 callers
Function
sortPlugins
(plugins []PluginInfo, order []string)
pkg/converter/converter.go:70
↓ 2 callers
Function
sortRoutes
(routes caddyhttp.RouteList)
internal/caddy/global/ingress_sort.go:37
↓ 2 callers
Method
tryAcquireOrRenew
(ctx context.Context, key string, shouldExist bool)
pkg/storage/storage.go:230
↓ 2 callers
Method
updateIngStatuses
updateIngStatuses starts a queue and adds all monitored ingresses to update their status source address to the on that the ingress controller is runni
internal/controller/action_status.go:44
↓ 2 callers
Method
watchTLSSecrets
watchTLSSecrets Start listening to TLS secrets if at least one ingress needs it. It will sync the CertFolder with TLS secrets
internal/controller/action_tls.go:88
↓ 1 callers
Method
CaddyModule
()
pkg/proxy/proxy.go:28
↓ 1 callers
Method
Delete
Delete deletes the value at the given key.
pkg/storage/storage.go:151
↓ 1 callers
Method
Exists
Exists returns true if key exists in fs.
pkg/storage/storage.go:87
↓ 1 callers
Function
GetAddressFromService
GetAddressFromService returns the IP address or the name of a node in the cluster
internal/k8s/pod.go:58
↓ 1 callers
Function
GetAddresses
GetAddresses gets the ip address or name of the node in the cluster that the ingress controller is running on.
internal/k8s/pod.go:18
↓ 1 callers
Function
GetPodDetails
GetPodDetails returns runtime information about the pod: name, namespace and IP of the node where it is running
internal/k8s/pod.go:81
↓ 1 callers
Method
GlobalHandler
(config *Config, store *store.Store)
pkg/converter/converter.go:23
↓ 1 callers
Method
GlobalHandler
(config *converter.Config, store *store.Store)
internal/caddy/global/tls.go:25
↓ 1 callers
Method
IngressHandler
(input IngressMiddlewareInput)
pkg/converter/converter.go:38
↓ 1 callers
Method
IngressPlugin
()
pkg/converter/converter.go:42
↓ 1 callers
Function
ListTLSSecrets
(options TLSSecretParams, ings []*v1.Ingress)
internal/k8s/tls_secret.go:51
↓ 1 callers
Method
Load
Load retrieves the value at the given key.
pkg/storage/storage.go:137
↓ 1 callers
Function
NewCaddyController
( logger *zap.SugaredLogger, kubeClient *kubernetes.Clientset, opts store.Options, converter Converter, s
internal/controller/controller.go:91
↓ 1 callers
Method
Shutdown
Shutdown stops the caddy controller.
internal/controller/controller.go:156
↓ 1 callers
Method
Stat
Stat returns information about key.
pkg/storage/storage.go:185
↓ 1 callers
Function
UpdateIngressStatus
(kubeClient *kubernetes.Clientset, ing *networkingv1.Ingress, status []networkingv1.IngressLoadBalancerIngress
internal/k8s/ingress.go:71
↓ 1 callers
Function
WatchConfigMaps
(options ConfigMapParams, funcs ConfigMapHandlers)
internal/k8s/configmap.go:25
↓ 1 callers
Function
WatchIngresses
(options IngressParams, funcs IngressHandlers)
internal/k8s/ingress.go:26
↓ 1 callers
Function
WatchTLSSecrets
(options TLSSecretParams, funcs TLSSecretHandlers)
internal/k8s/tls_secret.go:20
↓ 1 callers
Function
createApiserverClient
createApiserverClient creates a new Kubernetes REST client. We assume the controller runs inside Kubernetes and use the in-cluster config.
cmd/caddy/main.go:75
↓ 1 callers
Function
createLogger
(verbose bool)
cmd/caddy/main.go:27
↓ 1 callers
Function
getAnnotationBool
(ing *v1.Ingress, rule string, def bool)
internal/caddy/ingress/annotations.go:22
↓ 1 callers
Method
handle
(c *CaddyController)
internal/controller/controller.go:43
↓ 1 callers
Method
handleErr
handleErrs reports errors received from queue actions. goland:noinspection GoUnusedParameter
internal/controller/controller.go:244
↓ 1 callers
Function
ingressSliceEqual
ingressSliceEqual determines if the ingress source matches the ingress controller's.
internal/controller/action_status.go:93
↓ 1 callers
Function
isSubset
Copied from https://github.com/kubernetes/kubernetes/pull/95179
internal/k8s/pod.go:40
↓ 1 callers
Method
keepLockUpdated
(ctx context.Context, key string)
pkg/storage/storage.go:217
↓ 1 callers
Function
parseFlags
()
cmd/caddy/flag.go:10
↓ 1 callers
Function
parseTrustedProxies
Copied from https://github.com/caddyserver/caddy/blob/21af88fefc9a8239a024f635f1c6fdd9defd7eb7/modules/caddyhttp/reverseproxy/reverseproxy.go#L270-L28
internal/caddy/ingress/reverseproxy.go:75
↓ 1 callers
Method
processNextItem
processNextItem determines if there is an ingress item in the event queue and processes it.
internal/controller/controller.go:213
↓ 1 callers
Method
reloadCaddy
reloadCaddy generate a caddy config from controller's store
internal/controller/controller.go:249
↓ 1 callers
Function
runUpdate
runUpdate updates the ingress status field.
internal/controller/action_status.go:69
↓ 1 callers
Function
sliceToLoadBalancerIngress
sliceToLoadBalancerIngress converts a slice of IP and/or hostnames to LoadBalancerIngress
internal/controller/action_status.go:124
↓ 1 callers
Function
stringToCaddyDurationHookFunc
()
pkg/store/configmap_parser.go:30
↓ 1 callers
Method
syncStatus
syncStatus ensures that the ingress source address points to this ingress controller's IP address.
internal/controller/action_status.go:30
Method
CaddyModule
()
pkg/storage/storage.go:60
Method
CertMagicStorage
CertMagicStorage returns a certmagic storage type to be used by caddy.
pkg/storage/storage.go:82
Method
ConvertToCaddyConfig
(store *store.Store)
internal/caddy/convert.go:14
Method
GlobalHandler
(config *converter.Config, store *store.Store)
internal/caddy/global/secrets_store.go:21
Method
GlobalHandler
(config *converter.Config, store *store.Store)
internal/caddy/global/configmap.go:27
Method
GlobalHandler
(config *converter.Config, store *store.Store)
internal/caddy/global/ingress.go:25
Method
GlobalHandler
(config *converter.Config, store *store.Store)
internal/caddy/global/healthz.go:29
Method
GlobalHandler
(config *converter.Config, store *store.Store)
internal/caddy/global/metrics.go:26
Method
GlobalHandler
GlobalHandler in IngressSortPlugin tries to sort routes to have the less conflict. It only supports basic conflicts for now. It doesn't support multi
internal/caddy/global/ingress_sort.go:63
Method
IngressHandler
IngressHandler Generate matchers for the route.
internal/caddy/ingress/matcher.go:21
Method
IngressHandler
IngressHandler Converts rewrite annotations to rewrite handler
internal/caddy/ingress/rewrite.go:21
Method
IngressPlugin
()
internal/caddy/ingress/matcher.go:13
Method
IngressPlugin
()
internal/caddy/ingress/redirect.go:15
Method
IngressPlugin
()
internal/caddy/ingress/rewrite.go:12
Method
IngressPlugin
()
internal/caddy/ingress/reverseproxy.go:16
Method
IngressPlugin
()
internal/caddy/global/secrets_store.go:10
Method
IngressPlugin
()
internal/caddy/global/configmap.go:20
Method
IngressPlugin
()
internal/caddy/global/ingress.go:14
Method
IngressPlugin
()
internal/caddy/global/healthz.go:17
Method
IngressPlugin
()
internal/caddy/global/metrics.go:15
Method
IngressPlugin
()
internal/caddy/global/tls.go:14
Method
IngressPlugin
()
internal/caddy/global/ingress_sort.go:15
Method
Lock
(ctx context.Context, key string)
pkg/storage/storage.go:201
Method
Provision
Provisions the SecretStorage instance.
pkg/storage/storage.go:68
Method
Provision
(ctx caddy.Context)
pkg/proxy/proxy.go:35
Method
Store
Store saves value at key. More than certs and keys are stored by certmagic in secrets.
pkg/storage/storage.go:109
Function
TestConvertToCaddyConfig
(t *testing.T)
internal/caddy/convert_test.go:12
Function
TestIngressSort
(t *testing.T)
internal/caddy/global/ingress_sort_test.go:13
Function
TestIngressTlsSkipCertificates
(t *testing.T)
internal/caddy/global/tls_test.go:16
Function
TestMisconfiguredRedirectConvertToCaddyConfig
(t *testing.T)
internal/caddy/ingress/redirect_test.go:80
Function
TestMisconfiguredTrustedProxiesConvertToCaddyConfig
(t *testing.T)
internal/caddy/ingress/reverseproxy_test.go:87
Function
TestRedirectConvertToCaddyConfig
(t *testing.T)
internal/caddy/ingress/redirect_test.go:15
Function
TestSortPlugins
(t *testing.T)
pkg/converter/converter_test.go:5
next →
1–100 of 140, ranked by callers