MCPcopy
hub / github.com/zegl/kube-score / NewCheck

Function NewCheck

score/checks/checks.go:38–46  ·  view source on GitHub ↗
(name, targetType, comment string, optional bool)

Source from the content-addressed store, hash-verified

36}
37
38func NewCheck(name, targetType, comment string, optional bool) ks.Check {
39 return ks.Check{
40 Name: name,
41 ID: machineFriendlyName(name),
42 TargetType: targetType,
43 Comment: comment,
44 Optional: optional,
45 }
46}
47
48func machineFriendlyName(in string) string {
49 in = strings.ToLower(in)

Callers 1

regFunction · 0.85

Calls 1

machineFriendlyNameFunction · 0.85

Tested by

no test coverage detected