MCPcopy Create free account
hub / github.com/containerd/nerdctl / createHTTPClient

Function createHTTPClient

pkg/cmd/search/search.go:157–166  ·  view source on GitHub ↗
(hostOpts *dockerconfig.HostOptions)

Source from the content-addressed store, hash-verified

155}
156
157func createHTTPClient(hostOpts *dockerconfig.HostOptions) *http.Client {
158 if hostOpts != nil && hostOpts.DefaultTLS != nil {
159 return &http.Client{
160 Transport: &http.Transport{
161 TLSClientConfig: hostOpts.DefaultTLS,
162 },
163 }
164 }
165 return http.DefaultClient
166}
167
168func validateFilterValue(key, value string) error {
169 switch key {

Callers 1

SearchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…