MCPcopy Create free account
hub / github.com/conforma/cli / SourceIsHttp

Function SourceIsHttp

internal/policy/source/git_config.go:45–47  ·  view source on GitHub ↗

SourceIsHttp returns true if go-getter thinks the src looks like an http url

(src string)

Source from the content-addressed store, hash-verified

43
44// SourceIsHttp returns true if go-getter thinks the src looks like an http url
45func SourceIsHttp(src string) bool {
46 return detector.HttpDetector(src)
47}
48
49func GoGetterDownload(ctx context.Context, tmpDir, src string) (string, error) {
50 // Download the config from a url

Callers 2

GetPolicyConfigFunction · 0.92
TestSourceIsHttpFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestSourceIsHttpFunction · 0.68