MCPcopy Create free account

hub / github.com/caddyserver/caddy / functions

Functions2,647 in github.com/caddyserver/caddy

MethodStop
()
admin_test.go:186
MethodStop
Stop stops the PKI app.
modules/caddypki/pki.go:121
MethodStop
Stop stops the TLS module and cleans up any allocations.
modules/caddytls/tls.go:466
MethodStop
()
modules/caddyfs/filesystem.go:58
MethodStop
Stop gracefully shuts down the app.
modules/caddyevents/app.go:158
FunctionStopping
Stopping notifies the SCM that the service is in the process of stopping. This allows Windows to track the shutdown transition properly.
notify/notify_windows.go:58
FunctionStopping
Stopping notifies systemd that caddy is stopping.
notify/notify_linux.go:61
MethodString
()
logging.go:669
MethodString
()
logging.go:670
MethodString
TODO: Is this used?
modules/caddyhttp/routes.go:461
MethodString
String returns the Caddy network address form by joining the network and address with a forward slash.
modules/caddyhttp/reverseproxy/hosts.go:293
MethodString
()
modules/caddyhttp/reverseproxy/upstreams.go:220
MethodString
()
modules/logging/filewriter.go:173
MethodString
()
cmd/main.go:509
MethodSuffix
Suffix returns the filename suffix of precompressed files.
modules/caddyhttp/encode/zstd/zstd_precompressed.go:26
MethodSuffix
Suffix returns the filename suffix of precompressed files.
modules/caddyhttp/encode/brotli/brotli_precompressed.go:28
MethodSuffix
Suffix returns the filename suffix of precompressed files.
modules/caddyhttp/encode/gzip/gzip_precompressed.go:26
MethodSwap
(i, j int)
modules/caddyhttp/fileserver/browsetplcontext.go:328
MethodSwap
(i, j int)
modules/caddyhttp/fileserver/browsetplcontext.go:335
MethodSwap
(i, j int)
modules/caddyhttp/fileserver/browsetplcontext.go:347
MethodSwap
(i, j int)
modules/caddyhttp/fileserver/browsetplcontext.go:371
MethodSync
()
modules/caddyhttp/server_test.go:30
FunctionTestACMEIssuerExpandPlaceholders
(t *testing.T)
modules/caddytls/acmeissuer_test.go:9
FunctionTestACMEServerAllowPolicy
(t *testing.T)
caddytest/integration/acmeserver_test.go:46
FunctionTestACMEServerDenyPolicy
(t *testing.T)
caddytest/integration/acmeserver_test.go:136
FunctionTestACMEServerDirectory
(t *testing.T)
caddytest/integration/acmeserver_test.go:20
FunctionTestACMEServerWithDefaults
Test the basic functionality of Caddy's ACME server
caddytest/integration/acme_test.go:28
FunctionTestACMEServerWithMismatchedChallenges
(t *testing.T)
caddytest/integration/acme_test.go:99
FunctionTestAcceptSiteImportWithBraces
(t *testing.T)
caddyconfig/caddyfile/parse_test.go:913
FunctionTestAddForwardedHeadersNonIP
(t *testing.T)
modules/caddyhttp/reverseproxy/headers_test.go:11
FunctionTestAddForwardedHeaders_UnixSocketTrusted
(t *testing.T)
modules/caddyhttp/reverseproxy/headers_test.go:36
FunctionTestAddForwardedHeaders_UnixSocketTrustedNoExistingHeaders
(t *testing.T)
modules/caddyhttp/reverseproxy/headers_test.go:100
FunctionTestAddForwardedHeaders_UnixSocketUntrusted
(t *testing.T)
modules/caddyhttp/reverseproxy/headers_test.go:68
FunctionTestAddressString
(t *testing.T)
caddyconfig/httpcaddyfile/addresses_test.go:84
FunctionTestAdminHandlerBuiltinRouteErrors
(t *testing.T)
admin_test.go:329
FunctionTestAdminHandlerErrorHandling
(t *testing.T)
admin_test.go:228
FunctionTestAdminHandlerServeHTTPRedactsSensitiveHeadersInLogs
(t *testing.T)
admin_test.go:258
FunctionTestAdminRouterProvisioning
(t *testing.T)
admin_test.go:514
FunctionTestAdminUpstreamsBothPools
TestAdminUpstreamsBothPools verifies that static and dynamic upstreams are both present in the same response and that there is no overlap or omission.
modules/caddyhttp/reverseproxy/admin_test.go:177
FunctionTestAdminUpstreamsDynamicOnly
TestAdminUpstreamsDynamicOnly verifies that dynamic upstreams (from dynamicHosts) appear in the response with correct addresses.
modules/caddyhttp/reverseproxy/admin_test.go:154
FunctionTestAdminUpstreamsEmpty
TestAdminUpstreamsEmpty verifies that an empty response is valid JSON when no upstreams are registered.
modules/caddyhttp/reverseproxy/admin_test.go:117
FunctionTestAdminUpstreamsMethodNotAllowed
TestAdminUpstreamsMethodNotAllowed verifies that non-GET methods are rejected.
modules/caddyhttp/reverseproxy/admin_test.go:94
FunctionTestAdminUpstreamsNoOverlapBetweenPools
TestAdminUpstreamsNoOverlapBetweenPools verifies that an address registered only as a static upstream does not also appear as a dynamic entry, and vic
modules/caddyhttp/reverseproxy/admin_test.go:202
FunctionTestAdminUpstreamsReportsFailCounts
TestAdminUpstreamsReportsFailCounts verifies that fail counts accumulated on a dynamic upstream's Host are reflected in the response.
modules/caddyhttp/reverseproxy/admin_test.go:224
FunctionTestAdminUpstreamsReportsNumRequests
TestAdminUpstreamsReportsNumRequests verifies that the active request count for a static upstream is reflected in the response.
modules/caddyhttp/reverseproxy/admin_test.go:254
FunctionTestAdminUpstreamsStaticOnly
TestAdminUpstreamsStaticOnly verifies that static upstreams (from the UsagePool) appear in the response with correct addresses.
modules/caddyhttp/reverseproxy/admin_test.go:131
FunctionTestAllTokens
(t *testing.T)
caddyconfig/caddyfile/parse_test.go:111
FunctionTestAllowedOriginsUnixSocket
(t *testing.T)
admin_test.go:579
FunctionTestAuthenticationRejectedEmptyUserDoesNotSetCandidatePlaceholders
(t *testing.T)
modules/caddyhttp/caddyauth/caddyauth_test.go:144
FunctionTestAuthenticationRejectedUserSetsCandidatePlaceholders
(t *testing.T)
modules/caddyhttp/caddyauth/caddyauth_test.go:30
FunctionTestAuthenticationSuccessfulProviderDoesNotExposeEarlierCandidate
(t *testing.T)
modules/caddyhttp/caddyauth/caddyauth_test.go:106
FunctionTestAuthenticationSuccessfulUserSetsUserPlaceholdersOnly
(t *testing.T)
modules/caddyhttp/caddyauth/caddyauth_test.go:71
FunctionTestAutoHTTPRedirectsInsertedBeforeUserDefinedCatchAll
(t *testing.T)
caddytest/integration/autohttps_test.go:122
FunctionTestAutoHTTPRedirectsInsertedBeforeUserDefinedCatchAllWithNoExplicitHTTPSite
(t *testing.T)
caddytest/integration/autohttps_test.go:147
FunctionTestAutoHTTPRedirectsWithHTTPListenerFirstInAddresses
(t *testing.T)
caddytest/integration/autohttps_test.go:80
FunctionTestAutoHTTPSRedirectSortingExactMatchOverWildcard
(t *testing.T)
caddytest/integration/autohttps_test.go:169
FunctionTestAutoHTTPtoHTTPSRedirectsExplicitPortDifferentFromHTTPSPort
(t *testing.T)
caddytest/integration/autohttps_test.go:42
FunctionTestAutoHTTPtoHTTPSRedirectsExplicitPortSameAsHTTPSPort
(t *testing.T)
caddytest/integration/autohttps_test.go:26
FunctionTestAutoHTTPtoHTTPSRedirectsImplicitPort
(t *testing.T)
caddytest/integration/autohttps_test.go:10
FunctionTestAutoHTTPtoHTTPSRedirectsPreferHTTPSPortOverAlternatePort
(t *testing.T)
caddytest/integration/autohttps_test.go:58
FunctionTestAutomationPoliciesAllowSameHostOnDifferentPorts
(t *testing.T)
caddyconfig/httpcaddyfile/tlsapp_test.go:59
FunctionTestAutomationPolicyImplicitTailscaleManagersOnlyCatchAll
(t *testing.T)
modules/caddytls/automation_test.go:30
FunctionTestAutomationPolicyIsSubset
(t *testing.T)
caddyconfig/httpcaddyfile/tlsapp_test.go:10
FunctionTestAutomationPolicyMakeCertMagicConfigImplicitTailscaleManagersOnly
(t *testing.T)
modules/caddytls/automation_test.go:10
FunctionTestAvoidDuplicateAutomation
(t *testing.T)
modules/caddytls/tls_wildcard_test.go:24
FunctionTestBreadcrumbs
(t *testing.T)
modules/caddyhttp/fileserver/browsetplcontext_test.go:21
FunctionTestBrowse
(t *testing.T)
caddytest/integration/handler_test.go:11
FunctionTestBuffering
(t *testing.T)
modules/caddyhttp/reverseproxy/buffering_test.go:17
FunctionTestCA_needsRenewal
(t *testing.T)
modules/caddypki/maintain_test.go:23
FunctionTestCaddyfileAdaptToJSON
(t *testing.T)
caddytest/integration/caddyfile_adapt_test.go:17
FunctionTestCaddyfile_DirMode_FromFile
(t *testing.T)
modules/logging/filewriter_test.go:609
FunctionTestCaddyfile_DirMode_Inherit
(t *testing.T)
modules/logging/filewriter_test.go:591
FunctionTestCaddyfile_DirMode_Invalid
(t *testing.T)
modules/logging/filewriter_test.go:641
FunctionTestCaddyfile_DirMode_Octal
(t *testing.T)
modules/logging/filewriter_test.go:627
FunctionTestCheckID
(t *testing.T)
caddytest/caddytest_test.go:131
FunctionTestCleanPath
(t *testing.T)
modules/caddyhttp/caddyhttp_test.go:150
FunctionTestClientAuthenticationProvision
(t *testing.T)
modules/caddytls/connpolicy_test.go:319
FunctionTestClientAuthenticationUnmarshalCaddyfileWithDirectiveName
(t *testing.T)
modules/caddytls/connpolicy_test.go:63
FunctionTestClientAuthenticationVerifyConnectionPassesRawCertsToVerifiers
(t *testing.T)
modules/caddytls/connpolicy_verifyconnection_test.go:23
FunctionTestClientAuthenticationVerifyConnectionReturnsVerifierError
(t *testing.T)
modules/caddytls/connpolicy_verifyconnection_test.go:48
FunctionTestClientIPHashPolicy
(t *testing.T)
modules/caddyhttp/reverseproxy/selectionpolicies_test.go:346
FunctionTestCombinedCAPoolProvisionWithInlineSucceeds
(t *testing.T)
modules/caddytls/capools_test.go:955
FunctionTestCombinedCAPoolProvisionWithSystemFails
(t *testing.T)
modules/caddytls/capools_test.go:931
FunctionTestCombinedCAPoolUnmarshalCaddyfile
(t *testing.T)
modules/caddytls/capools_test.go:824
FunctionTestCommandsAreAvailable
(t *testing.T)
cmd/commands_test.go:10
FunctionTestConnectionPolicyIDNSNIMatcherFastPath
(t *testing.T)
modules/caddytls/connpolicy_test.go:29
FunctionTestContainsPlaceholders
(t *testing.T)
modules/caddyhttp/headers/headers_test.go:276
FunctionTestCookie
(t *testing.T)
modules/caddyhttp/templates/tplcontext_test.go:93
FunctionTestCookieFilter
(t *testing.T)
modules/logging/filters_test.go:158
FunctionTestCookieHashPolicy
(t *testing.T)
modules/caddyhttp/reverseproxy/selectionpolicies_test.go:686
FunctionTestCookieHashPolicyWithFirstFallback
(t *testing.T)
modules/caddyhttp/reverseproxy/selectionpolicies_test.go:796
FunctionTestCookieHashPolicyWithSecureRequest
(t *testing.T)
modules/caddyhttp/reverseproxy/selectionpolicies_test.go:745
FunctionTestCookieMultipleCookies
(t *testing.T)
modules/caddyhttp/templates/tplcontext_test.go:354
FunctionTestCountFailureCancelledContextForgets
TestCountFailureCancelledContextForgets verifies that cancelling the handler context (simulating a config unload) also triggers the forgetter to run,
modules/caddyhttp/reverseproxy/passive_health_test.go:142
FunctionTestCountFailureDecrementsAfterDuration
TestCountFailureDecrementsAfterDuration verifies that the fail count is decremented back after FailDuration elapses.
modules/caddyhttp/reverseproxy/passive_health_test.go:119
FunctionTestCountFailureIncrementsCount
TestCountFailureIncrementsCount verifies that countFailure increments the fail count on the upstream's Host.
modules/caddyhttp/reverseproxy/passive_health_test.go:104
FunctionTestCountFailureNoopWhenNoHealthChecks
--- countFailure behaviour --- TestCountFailureNoopWhenNoHealthChecks verifies that countFailure is a no-op when HealthChecks is nil.
modules/caddyhttp/reverseproxy/passive_health_test.go:69
FunctionTestCountFailureNoopWhenZeroDuration
TestCountFailureNoopWhenZeroDuration verifies that countFailure is a no-op when FailDuration is 0 (the zero value disables passive checks).
modules/caddyhttp/reverseproxy/passive_health_test.go:83
FunctionTestCustomLog_loggerAllowed
(t *testing.T)
logging_test.go:19
FunctionTestDefaultSNI
(t *testing.T)
caddytest/integration/sni_test.go:9
← previousnext →1,801–1,900 of 2,647, ranked by callers