| 3674 | |
| 3675 | |
| 3676 | Future<Response> Http::killContainer( |
| 3677 | const mesos::agent::Call& call, |
| 3678 | ContentType acceptType, |
| 3679 | const Option<Principal>& principal) const |
| 3680 | { |
| 3681 | CHECK_EQ(mesos::agent::Call::KILL_CONTAINER, call.type()); |
| 3682 | CHECK(call.has_kill_container()); |
| 3683 | |
| 3684 | LOG(INFO) << "Processing KILL_CONTAINER call for container '" |
| 3685 | << call.kill_container().container_id() << "'"; |
| 3686 | |
| 3687 | if (call.kill_container().container_id().has_parent()) { |
| 3688 | return killContainer<KILL_NESTED_CONTAINER>(call, acceptType, principal); |
| 3689 | } |
| 3690 | |
| 3691 | return killContainer<KILL_STANDALONE_CONTAINER>(call, acceptType, principal); |
| 3692 | } |
| 3693 | |
| 3694 | |
| 3695 | template <mesos::authorization::Action action> |