MCPcopy
hub / github.com/NVIDIA/aistore / validateCommType

Function validateCommType

etl/podspec.go:98–103  ·  view source on GitHub ↗
(commType string)

Source from the content-addressed store, hash-verified

96}
97
98func validateCommType(commType string) error {
99 if commType != "" && !cos.StringInSlice(commType, commTypes) {
100 return fmt.Errorf("unknown communication type: %q", commType)
101 }
102 return nil
103}

Callers 1

ValidateMethod · 0.85

Calls 1

StringInSliceFunction · 0.92

Tested by

no test coverage detected