MCPcopy
hub / github.com/perkeep/perkeep / OptionInsecure

Function OptionInsecure

pkg/client/client.go:371–373  ·  view source on GitHub ↗

OptionInsecure returns a ClientOption that controls whether HTTP requests are allowed to be insecure (over HTTP or HTTPS without TLS certificate checking). Use of this is strongly discouraged except for local testing.

(v bool)

Source from the content-addressed store, hash-verified

369// certificate checking). Use of this is strongly discouraged except
370// for local testing.
371func OptionInsecure(v bool) ClientOption {
372 return optionInsecure(v)
373}
374
375type optionInsecure bool
376

Callers 5

storageFromParamMethod · 0.92
syncAllMethod · 0.92
discoClientMethod · 0.92
mainFunction · 0.92

Calls 1

optionInsecureTypeAlias · 0.85

Tested by

no test coverage detected