fleet_apiserver

Crates.iofleet_apiserver
lib.rsfleet_apiserver
version
sourcesrc
created_at2024-11-25 07:37:22.745493
updated_at2024-12-04 01:35:43.32346
descriptionKubernetes apiserver for fleet
homepage
repositoryhttps://gitee.com/iscas-system/apiserver
max_upload_size
id1459997
Cargo.toml error:TOML parse error at line 21, column 1 | 21 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
Yuichi (Yuichi1001)

documentation

README

apiserver

介绍

提供多种控制容器生命周期的apiserver参考实现。

使用说明

添加依赖

cargo add k8s_apiserver

示例代码

use k8s_apiserver::cores::apiserver::ApiServer;
use k8s_apiserver::cores::config::DefaultConfig;
use k8s_apiserver::cores::handlers::DefaultHandler;
use std::sync::Arc;
use env_logger;

#[actix_web::main]
async fn main()
{
     env_logger::init();

     let config = DefaultConfig::new();
     let server = ApiServer::new(config);

     Arc::new(server).start("0.0.0.0:8080", DefaultHandler::new()).await;
}

效果验证

输入图片说明

Commit count: 0

cargo fmt