MCPcopy Create free account
hub / github.com/docker/cli / hasFile

Function hasFile

internal/registry/registry.go:51–58  ·  view source on GitHub ↗
(files []os.DirEntry, name string)

Source from the content-addressed store, hash-verified

49}
50
51func hasFile(files []os.DirEntry, name string) bool {
52 for _, f := range files {
53 if f.Name() == name {
54 return true
55 }
56 }
57 return false
58}
59
60// loadTLSConfig reads the directory for TLS certificates including roots and
61// certificate pairs, and updates the provided TLS configuration.

Callers 1

loadTLSConfigFunction · 0.70

Calls 1

NameMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…