MCPcopy Index your code
hub / github.com/docker/docker-agent / IsURLReference

Function IsURLReference

pkg/config/sources.go:470–472  ·  view source on GitHub ↗

IsURLReference checks if the input is a valid HTTP/HTTPS URL.

(input string)

Source from the content-addressed store, hash-verified

468
469// IsURLReference checks if the input is a valid HTTP/HTTPS URL.
470func IsURLReference(input string) bool {
471 return strings.HasPrefix(input, "http://") || strings.HasPrefix(input, "https://")
472}
473
474// isLocalhostHTTP reports whether rawURL is an http:// URL targeting localhost.
475func isLocalhostHTTP(rawURL string) bool {

Callers 9

runAPICommandMethod · 0.92
isLocalConfigRefFunction · 0.92
runAliasAddCommandFunction · 0.92
TestIsURLReferenceFunction · 0.85
resolveOneFunction · 0.85
StableSourceKeyFunction · 0.85
resolveFunction · 0.85
isExternalRefFunction · 0.85
externalRefBaseNameFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestIsURLReferenceFunction · 0.68