MCPcopy
hub / github.com/google/go-containerregistry / isWindows

Function isWindows

pkg/crane/append.go:31–37  ·  view source on GitHub ↗
(img v1.Image)

Source from the content-addressed store, hash-verified

29)
30
31func isWindows(img v1.Image) (bool, error) {
32 cfg, err := img.ConfigFile()
33 if err != nil {
34 return false, err
35 }
36 return cfg != nil && cfg.OS == "windows", nil
37}
38
39// Append reads a layer from path and appends it the the v1.Image base.
40//

Callers 1

AppendFunction · 0.85

Calls 1

ConfigFileMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…