mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-25 09:14:29 +01:00
Allow the `agent-ctl` tool to connect to a Hybrid VSOCK hypervisor such as Cloud Hypervisor or Firecracker. Fixes: #2914. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
20 lines
489 B
Rust
20 lines
489 B
Rust
// Copyright (c) 2020 Intel Corporation
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
// Description: ttRPC logic entry point
|
|
|
|
use anyhow::Result;
|
|
use slog::{o, Logger};
|
|
|
|
use crate::client::client;
|
|
use crate::types::Config;
|
|
|
|
pub fn run(logger: &Logger, cfg: &Config, commands: Vec<&str>) -> Result<()> {
|
|
// Maintain the global logger for the duration of the ttRPC comms
|
|
let _guard = slog_scope::set_global_logger(logger.new(o!("subsystem" => "rpc")));
|
|
|
|
client(cfg, commands)
|
|
}
|