MCPcopy Create free account
hub / github.com/NVIDIA/gpu-operator / createStatusFile

Function createStatusFile

cmd/nvidia-validator/main.go:994–1000  ·  view source on GitHub ↗
(statusFile string)

Source from the content-addressed store, hash-verified

992}
993
994func createStatusFile(statusFile string) error {
995 _, err := os.Create(statusFile)
996 if err != nil {
997 return fmt.Errorf("unable to create status file %s: %s", statusFile, err)
998 }
999 return nil
1000}
1001
1002func createStatusFileWithContent(statusFile string, content string) error {
1003 dir := filepath.Dir(statusFile)

Callers 11

validateMethod · 0.85
validateMethod · 0.85
validateMethod · 0.85
validateMethod · 0.85
validateMethod · 0.85
validateMethod · 0.85
validateMethod · 0.85
validateMethod · 0.85
validateMethod · 0.85
validateMethod · 0.85
validateMethod · 0.85

Calls 1

CreateMethod · 0.65

Tested by

no test coverage detected