MCPcopy Index your code
hub / github.com/devspace-sh/devspace / isRemoteHTTPYAML

Function isRemoteHTTPYAML

pkg/devspace/plugin/installer.go:159–166  ·  view source on GitHub ↗

isRemoteHTTPYAML checks if the source is a http/https url and a yaml

(source string)

Source from the content-addressed store, hash-verified

157
158// isRemoteHTTPYAML checks if the source is a http/https url and a yaml
159func isRemoteHTTPYAML(source string) bool {
160 if strings.HasPrefix(source, "http://") || strings.HasPrefix(source, "https://") {
161 if strings.HasSuffix(source, ".yaml") {
162 return true
163 }
164 }
165 return false
166}

Callers 2

DownloadBinaryMethod · 0.85
DownloadMetadataMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected