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

Function validateCommandInfo

src/master/validation.cpp:1259–1270  ·  view source on GitHub ↗

Validates the `CommandInfo` contained within an `ExecutorInfo`.

Source from the content-addressed store, hash-verified

1257
1258// Validates the `CommandInfo` contained within an `ExecutorInfo`.
1259Option<Error> validateCommandInfo(const ExecutorInfo& executor)
1260{
1261 if (executor.has_command()) {
1262 Option<Error> error =
1263 common::validation::validateCommandInfo(executor.command());
1264 if (error.isSome()) {
1265 return Error("Executor's `CommandInfo` is invalid: " + error->message);
1266 }
1267 }
1268
1269 return None();
1270}
1271
1272
1273// Validates the `ContainerInfo` contained within a `ExecutorInfo`.

Callers 1

validateExecutorFunction · 0.70

Calls 4

NoneClass · 0.85
commandMethod · 0.80
ErrorFunction · 0.50
isSomeMethod · 0.45

Tested by

no test coverage detected