MCPcopy
hub / github.com/open-policy-agent/gatekeeper / readImages

Function readImages

pkg/gator/reader/filereader.go:68–79  ·  view source on GitHub ↗
(images []string, tempDir string)

Source from the content-addressed store, hash-verified

66}
67
68func readImages(images []string, tempDir string) ([]*source, error) {
69 var sources []*source
70 for _, image := range images {
71 s, err := readImage(image, tempDir)
72 if err != nil {
73 return nil, err
74 }
75 sources = append(sources, s...)
76 }
77
78 return sources, nil
79}
80
81func readFile(filename string) ([]*source, error) {
82 if err := verifyFile(filename); err != nil {

Callers 1

ReadSourcesFunction · 0.85

Calls 1

readImageFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…