MCPcopy Create free account

hub / github.com/caddyserver/caddy / functions

Functions2,647 in github.com/caddyserver/caddy

↓ 3 callersFunctioncreateRequestWithContext
(method string, url string)
modules/caddyhttp/tracing/module_test.go:400
↓ 3 callersMethoddoImport
doImport swaps out the import directive and its argument (a total of 2 tokens) with the tokens in the specified file or globbing pattern. When the fun
caddyconfig/caddyfile/parse.go:356
↓ 3 callersFunctionetagHasher
etagHasher returns the hasher we used on the config to both produce and verify ETags.
admin.go:990
↓ 3 callersFunctionexitProcessFromSignal
exitProcessFromSignal exits the process from a system signal.
sigtrap.go:57
↓ 3 callersFunctionfakeClosedErr
fakeClosedErr returns an error value that is not temporary nor a timeout, suitable for making the caller think the listener is actually closed
listeners.go:610
↓ 3 callersMethodfillHost
()
modules/caddyhttp/reverseproxy/hosts.go:128
↓ 3 callersMethodfillInACMEIssuer
fillInACMEIssuer fills in default values into acmeIssuer that are defined in app; these values at time of writing are just app.HTTPPort and app.HTTPSP
modules/caddyhttp/autohttps.go:827
↓ 3 callersMethodgetAutomationPolicyForName
getAutomationPolicyForName returns the first matching automation policy for the given subject name. If no matching policy can be found, the default po
modules/caddytls/tls.go:862
↓ 3 callersMethodgetEncryptedClientHelloKeys
getEncryptedClientHelloKeys is used as tls.Config's GetEncryptedClientHelloKeys field.
listeners.go:547
↓ 3 callersFunctiongetPluginPackages
(modules []moduleInfo)
cmd/packagesfuncs.go:307
↓ 3 callersMethodinit
(recType uint8, reqID uint16, contentLength int)
modules/caddyhttp/reverseproxy/fastcgi/header.go:26
↓ 3 callersFunctionisCELCaddyPlaceholderCall
isCELCaddyPlaceholderCall returns whether the expression is a caddy placeholder call.
modules/caddyhttp/fileserver/matcher.go:661
↓ 3 callersFunctionisCELStringExpr
isCELStringExpr indicates whether the expression is a supported string expression
modules/caddyhttp/fileserver/matcher.go:641
↓ 3 callersFunctionisCaddyAdminRunning
(tc *Tester)
caddytest/caddytest.go:304
↓ 3 callersFunctionisEncodeAllowed
(h http.Header)
modules/caddyhttp/encode/encode.go:158
↓ 3 callersMethodkey
note that the first invocation of key cannot be called in a racy context.
internal/filesystems/map.go:29
↓ 3 callersMethodlarge
large returns true if m is considered to be large. Optimizing the matcher for smaller lists has diminishing returns. See related benchmark function in
modules/caddyhttp/matchers.go:399
↓ 3 callersFunctionlastHeaderValue
lastHeaderValue gets the last value for a given header field if more than one is set. If the header field is nil, then the omit is true, meaning some
modules/caddyhttp/reverseproxy/reverseproxy.go:1567
↓ 3 callersFunctionloadConfigWithLogger
(logger *zap.Logger, configFile, adapterName string)
cmd/main.go:146
↓ 3 callersFunctionloadFallbackPolicy
(d *caddyfile.Dispenser)
modules/caddyhttp/reverseproxy/selectionpolicies.go:864
↓ 3 callersMethodloadOrGenRoot
()
modules/caddypki/ca.go:274
↓ 3 callersMethodloggerAllowed
loggerAllowed returns true if name is allowed to emit to cl. isModule should be true if name is the name of a module and you want to see if ANY of tha
logging.go:533
↓ 3 callersMethodmakeCertMagicConfig
makeCertMagicConfig constructs a certmagic.Config for this policy using the provided issuers and storage. It encapsulates common logic shared between
modules/caddytls/automation.go:272
↓ 3 callersFunctionmakeEtag
makeEtag returns an Etag header value (including quotes) for the given config path and hash of contents at that path.
admin.go:994
↓ 3 callersFunctionmergeACMEIssuers
(base, overrides *caddytls.ACMEIssuer)
caddyconfig/httpcaddyfile/tlsapp.go:662
↓ 3 callersMethodneedsRenewal
needsRenewal reports whether the certificate is within its renewal window (i.e. the fraction of lifetime remaining is less than or equal to RenewalWin
modules/caddypki/maintain.go:106
↓ 3 callersFunctionnewBaseAutomationPolicy
newBaseAutomationPolicy returns a new TLS automation policy that gets its values from the global options map. It should be used as the base for any ot
caddyconfig/httpcaddyfile/tlsapp.go:903
↓ 3 callersMethodnewReplacer
()
modules/caddypki/ca.go:427
↓ 3 callersFunctionnewRequestWithHeader
(t *testing.T, method, uri, headerKey, headerVal string)
modules/caddyhttp/rewrite/rewrite_test.go:489
↓ 3 callersMethodnormalizeAllowRules
normalizeAllowRules returns `nil` if policy is nil, the `Allow` rule is `nil`, or all rules within the `Allow` rule are empty. Otherwise, it returns t
modules/caddypki/acmeserver/policy.go:43
↓ 3 callersMethodnormalizeDenyRules
normalizeDenyRules returns `nil` if policy is nil, the `Deny` rule is `nil`, or all rules within the `Deny` rule are empty. Otherwise, it returns the
modules/caddypki/acmeserver/policy.go:56
↓ 3 callersMethodopenFile
openFile opens the file at the given filename. If there was an error, the response is configured to inform the client how to best handle it and a well
modules/caddyhttp/fileserver/staticfiles.go:602
↓ 3 callersFunctionparseUpstreamDialAddress
parseUpstreamDialAddress parses configuration inputs for the dial address, including support for a scheme in front as a shortcut for the port number,
modules/caddyhttp/reverseproxy/addresses.go:65
↓ 3 callersFunctionprependCaddyFilePath
use the convention to replace /[certificatename].[crt|key] with the full path this helps reduce the noise in test configurations and also allow this t
caddytest/caddytest.go:330
↓ 3 callersMethodprotocolsWithDefaults
()
modules/caddyhttp/server.go:929
↓ 3 callersMethodprovision
(ctx Context, logging *Logging)
logging.go:452
↓ 3 callersMethodprovision
(ctx caddy.Context)
modules/caddytls/connpolicy.go:778
↓ 3 callersMethodprovisionOTLP
provisionOTLP wires a MeterProvider that periodically reads the process-wide Prometheus registry and pushes the result via OTLP. The exporter and read
modules/caddyhttp/metrics.go:172
↓ 3 callersMethodreadFileToBuffer
readFileToBuffer reads a file into a buffer
modules/caddyhttp/templates/tplcontext.go:150
↓ 3 callersFunctionredirect
redirect performs a redirect to a given path. The 'toPath' parameter MUST be solely a path, and MUST NOT include a query.
modules/caddyhttp/fileserver/staticfiles.go:798
↓ 3 callersMethodreplace
(key string)
replacer.go:347
↓ 3 callersFunctionreverse
(s string)
modules/caddyhttp/rewrite/rewrite.go:443
↓ 3 callersMethodserveHTTP
(w http.ResponseWriter, r *http.Request)
modules/caddyhttp/server.go:472
↓ 3 callersFunctionserverNameFromContext
serverNameFromContext extracts the current server name from the context. Returns "UNKNOWN" if none is available (should probably never happen).
modules/caddyhttp/metrics.go:289
↓ 3 callersMethodstorageCleanInterval
()
modules/caddytls/tls.go:995
↓ 3 callersMethodstorageKeyRootCert
()
modules/caddypki/ca.go:411
↓ 3 callersFunctiontestTLSProxyProtocolMatrix
testTLSProxyProtocolMatrix is the shared implementation for TLS-based proxy protocol tests. It mirrors testProxyProtocolMatrix but uses a TLS backend
caddytest/integration/proxyprotocol_test.go:277
↓ 3 callersMethodupdateReadSize
(n int)
modules/caddyhttp/responsewriter.go:284
↓ 3 callersFunctionupgradeBuild
(pluginPkgs map[string]pluginPackage, fl Flags)
cmd/packagesfuncs.go:124
↓ 3 callersFunctionupgradeType
(h http.Header)
modules/caddyhttp/reverseproxy/reverseproxy.go:1578
↓ 2 callersMethodAccept
()
modules/caddyhttp/http2listener.go:33
↓ 2 callersMethodAccept
()
cmd/main_test.go:236
↓ 2 callersMethodAcceptEncoding
()
modules/caddyhttp/encode/encode.go:581
↓ 2 callersMethodActive
Active returns true if clientauth has an actionable configuration.
modules/caddytls/connpolicy.go:824
↓ 2 callersMethodAddArray
AddArray is part of the zapcore.ObjectEncoder interface. Array elements do not get filtered.
modules/logging/nopencoder.go:29
↓ 2 callersMethodAddBool
AddBool is part of the zapcore.ObjectEncoder interface.
modules/logging/nopencoder.go:41
↓ 2 callersMethodAddObject
AddObject is part of the zapcore.ObjectEncoder interface.
modules/logging/nopencoder.go:32
↓ 2 callersMethodAddUint8
AddUint8 is part of the zapcore.ObjectEncoder interface.
modules/logging/nopencoder.go:92
↓ 2 callersFunctionAdminAPIRequest
AdminAPIRequest makes an API request according to the CLI flags given, with the given HTTP method and request URI. If body is non-nil, it will be assu
cmd/commandfuncs.go:774
↓ 2 callersMethodAnyMatchWithError
AnyMatchWithError returns true if req matches any of the matcher sets in ms or if there are no matchers, in which case the request always matches. If
modules/caddyhttp/routes.go:430
↓ 2 callersFunctionAppDataDir
AppDataDir returns a directory path that is suitable for storing application data on disk. It uses the environment for finding the best place to store
storage.go:122
↓ 2 callersMethodApplyToSegment
ApplyToSegment replaces shorthand placeholder to its full placeholder, understandable by Caddy.
caddyconfig/httpcaddyfile/shorthands.go:94
↓ 2 callersFunctionAssertAdapt
AssertAdapt adapts a config and then tests it against an expected result
caddytest/caddytest.go:476
↓ 2 callersMethodAssertPatchResponseBody
AssertPatchResponseBody requests a URI with PATCH and asserts the response code and body.
caddytest/caddytest.go:599
↓ 2 callersMethodAssertPutResponseBody
AssertPutResponseBody requests a URI with PUT and asserts the response code and body.
caddytest/caddytest.go:584
↓ 2 callersMethodBuild
()
cmd/commandfactory.go:22
↓ 2 callersFunctionCELMatcherDecorator
CELMatcherDecorator matches a call overload generated by a CEL macro that takes a single argument, and optimizes the implementation to precompile the
modules/caddyhttp/celmatcher.go:469
↓ 2 callersFunctionCELMatcherRuntimeFunction
CELMatcherRuntimeFunction creates a function binding for when the input to the matcher is dynamically resolved rather than a set of static constant va
modules/caddyhttp/celmatcher.go:554
↓ 2 callersMethodCalledReadFrom
()
modules/caddyhttp/responsewriter_test.go:14
↓ 2 callersFunctionCipherSuiteID
CipherSuiteID returns the ID of the cipher suite associated with the given name, or 0 if the name is not recognized/supported.
modules/caddytls/values.go:34
↓ 2 callersMethodClose
Close stops accepting new connections without closing the underlying listener. The underlying listener is only closed if the caller is the last known
listen.go:173
↓ 2 callersFunctionCompareAdapt
CompareAdapt adapts a config and then compares it against an expected result
caddytest/caddytest.go:415
↓ 2 callersMethodConfigureTLSConfig
ConfigureTLSConfig sets up cfg to enforce clientauth's configuration.
modules/caddytls/connpolicy.go:834
↓ 2 callersMethodConnectionState
()
modules/caddyhttp/http2listener.go:13
↓ 2 callersMethodDefault
()
filesystem.go:23
↓ 2 callersFunctionDetermineAdminAPIAddress
DetermineAdminAPIAddress determines which admin API endpoint address should be used based on the inputs. By priority: if `address` is specified, then
cmd/commandfuncs.go:862
↓ 2 callersMethodExpand
Expand returns one NetworkAddress for each port in the port range.
listeners.go:229
↓ 2 callersMethodFilter
(zapcore.Field)
modules/logging/filters.go:50
↓ 2 callersMethodFilter
Filter filters the input field with the replacement value.
modules/logging/filters.go:102
↓ 2 callersMethodFilter
Filter filters the input field.
modules/logging/filters.go:394
↓ 2 callersMethodFilter
Filter filters the input field with the replacement value if it matches the regexp.
modules/logging/filters.go:615
↓ 2 callersMethodFlushStream
FlushStream flush data then end current stream
modules/caddyhttp/reverseproxy/fastcgi/writer.go:140
↓ 2 callersFunctionFormattingDifference
FormattingDifference returns a warning and true if the formatted version is any different from the input; empty warning and false otherwise. TODO: als
caddyconfig/caddyfile/adapter.go:69
↓ 2 callersMethodFromInterface
FromInterface fills ms from an 'any' value obtained from LoadModule.
modules/caddyhttp/routes.go:441
↓ 2 callersMethodGet
Get gets a value from the replacer. It returns the value and whether the variable was known.
replacer.go:100
↓ 2 callersMethodGet
Get issues a GET request to the fcgi responder.
modules/caddyhttp/reverseproxy/fastcgi/client.go:267
↓ 2 callersFunctionGetDialInfo
GetDialInfo gets the upstream dialing info out of the context, and returns true if there was a valid value; false otherwise.
modules/caddyhttp/reverseproxy/hosts.go:299
↓ 2 callersFunctionGetModules
GetModules returns all modules in the given scope/namespace. For example, a scope of "foo" returns modules named "foo.bar", "foo.loo", but not "bar",
modules.go:204
↓ 2 callersMethodGetUpstreams
(*http.Request)
modules/caddyhttp/reverseproxy/reverseproxy.go:1690
↓ 2 callersMethodGlob
(pattern string)
internal/filesystems/os.go:20
↓ 2 callersMethodHandshakeContext
HandshakeContext returns a context to pass into CertMagic's GetCertificate function used to serve, load, and manage certs during TLS handshakes. Gener
modules/caddytls/connpolicy.go:266
↓ 2 callersMethodHasCertificateForSubject
(subject string)
modules/caddytls/tls.go:887
↓ 2 callersMethodIsEnabled
IsEnabled checks if the active health checks have the minimum config necessary to be enabled.
modules/caddyhttp/reverseproxy/healthchecks.go:226
↓ 2 callersFunctionJoinNetworkAddress
JoinNetworkAddress combines network, host, and port into a single address string of the form accepted by ParseNetworkAddress(). For unix sockets, the
listeners.go:413
↓ 2 callersMethodLoadConfig
(Context)
caddy.go:685
↓ 2 callersMethodMakeTLSClientConfig
MakeTLSClientConfig returns a tls.Config usable by a client to a backend. If there is no custom TLS configuration, a nil config may be returned.
modules/caddyhttp/reverseproxy/httptransport.go:694
↓ 2 callersMethodMatchWithError
MatchWithError returns true if r matches m.
modules/caddyhttp/matchers.go:1141
↓ 2 callersFunctionMaxSizeSubjectsListForLog
MaxSizeSubjectsListForLog returns the keys in the map as a slice of maximum length maxToDisplay. It is useful for logging domains being managed, for e
internal/logs.go:9
↓ 2 callersMethodModules
Modules returns the lineage of modules that this context provisioned, with the most recent/current module being last in the list.
context.go:655
↓ 2 callersMethodNamespace
Namespace returns the namespace (or scope) portion of a module ID, which is all but the last label of the ID. If the ID has only one label, then the n
modules.go:103
← previousnext →401–500 of 2,647, ranked by callers