MCPcopy Create free account
hub / github.com/apache/mesos / validateCheck

Function validateCheck

src/master/validation.cpp:1416–1426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1414
1415
1416Option<Error> validateCheck(const TaskInfo& task)
1417{
1418 if (task.has_check()) {
1419 Option<Error> error = common::validation::validateCheckInfo(task.check());
1420 if (error.isSome()) {
1421 return Error("Task uses invalid check: " + error->message);
1422 }
1423 }
1424
1425 return None();
1426}
1427
1428
1429Option<Error> validateHealthCheck(const TaskInfo& task)

Callers

nothing calls this directly

Calls 5

validateCheckInfoFunction · 0.85
NoneClass · 0.85
ErrorFunction · 0.50
checkMethod · 0.45
isSomeMethod · 0.45

Tested by

no test coverage detected