25 Commits

Author SHA1 Message Date
308e9bcc5d
refactor: project structure and better interfaces (#100)
* refactor: basically rewrite all interface

* refactor: rename crates to make clear meaning; use tokio runtime and handle shutdown within Provider

* remove tracker in main

Signed-off-by: sparkzky <sparkhhhhhhhhhh@outlook.com>

* feat(provider): enhance Provider trait with list, update, and status methods; refactor existing methods to async

* fix(containerd): fetch handle from environment and initialize it.

* fix(init): BACKEND init add handle fetching

* fix: add test framework

* fix: move the snapshot logic into snapshot.rs

Signed-off-by: sparkzky <sparkhhhhhhhhhh@outlook.com>

* fix: change some spec setting

Signed-off-by: sparkzky <sparkhhhhhhhhhh@outlook.com>

* feat: add created_at field, add http status code convertion

* refactor(spec): use builder to generate spec

Signed-off-by: sparkzky <sparkhhhhhhhhhh@outlook.com>

* fix: clippy

Signed-off-by: sparkzky <sparkhhhhhhhhhh@outlook.com>

* manage reference, fix boot issue

* fix: ip parsing

* feat: add cleanup logic on fail

* fix style: clippy for return function

* feat: add response message

* fix:1.修复proxy和resolve的逻辑 2.spec内netns的路径问题以及传参顺序

* feat:add update list status  service implmentation

* fix: move some consts into consts.rs

Signed-off-by: sparkzky <sparkhhhhhhhhhh@outlook.com>

* fix: fmt & clippy

Signed-off-by: sparkzky <sparkhhhhhhhhhh@outlook.com>

* fix: update dependecy

Signed-off-by: sparkzky <sparkhhhhhhhhhh@outlook.com>

* feat: add function with_vm_network

Signed-off-by: sparkzky <sparkhhhhhhhhhh@outlook.com>

* feat: integrate cni into containerd crate

* fix:修复proxy的路径正则匹配并添加单元测试

* fix:fix proxy_path and add default namespace for Query::from

* fix: integration_test

* fix: path dispatch test

* fix: more specified url dispatch in proxy handle

* feat: add persistent container record for restart service

* feat: add task error type

* fix: delete error handle logic

---------

Signed-off-by: sparkzky <sparkhhhhhhhhhh@outlook.com>
Co-authored-by: sparkzky <sparkhhhhhhhhhh@outlook.com>
Co-authored-by: dolzhuying <1240800466@qq.com>
Co-authored-by: scutKKsix <1129332011@qq.com>
2025-05-22 21:43:16 +08:00
aLinChe
ed6741cd8a
feat(awc): introduce awc crate to match actix-web streaming requests (#94)
* feat: introduce awc crate to match actix-web streaming requests

* fix(ci): fix the integration_tests

mod

---------

Co-authored-by: Samuka007 <dailvchen@dragonos.org>
2025-05-08 15:16:12 +08:00
edf5d68d0a
feat(cni): add unit test for commands (#70) 2025-04-16 17:01:44 +08:00
火花
6ecde71c52
Feat(netns): 添加netns-rs来管理网络命名空间 (#69)
* 添加netns-rs来管理网络命名空间

* fix: cargo hakari generate

---------

Co-authored-by: Samuka007 <samuka007@dragonos.org>
2025-04-16 11:35:51 +08:00
8c4107a8b4 fix(log):replace all println! with log 2025-04-15 11:31:04 +08:00
DoL
1acbab92fc
feat(gateway):enable to deploy and delete function with request (#54)
* fix:move trait IAMHandler to types/

* feat:enable to resolve request and to set proxy for request

* save implementation for trait IAMHandler

* remove trait IAMHandler and add deploy and delete

* add feishu_bot.yml

* 修复一点ctr逻辑 (#29)

* 修复一点逻辑

* fmt

* feat:remove trait IAMHandler and bind fucntion to gateway

* resolve conflict in cni_network

* fix(delete): fix delete task.

* fix(clippy): fmt

* fix:remove darwin and launch.json

* fix:hakari generate

* fix: remove files and build targets

* fix: some format problems

---------

Co-authored-by: vitus213 <2811215248@qq.com>
Co-authored-by: 火花 <sparkhhhhhhhhhh@outlook.com>
Co-authored-by: scutKKsix <1129332011@qq.com>
Co-authored-by: Samuka007 <samuka007@dragonos.org>
2025-04-12 00:02:49 +08:00
火花
eeef85dd33
feat(cni): use environment variable to config cni tools path (#41)
* 添加dotenv来设定cni插件地址

* 改用lazy_static!

* fmt

* 增加命令执行结果的判断
2025-04-08 11:04:36 +08:00
DoL
2f9f6c4ca9
feat(proxy): invoke functions logic(#22)
* fix:move trait IAMHandler to types/

* feat:enable to resolve request and to set proxy for request
2025-04-03 14:22:32 +08:00
aLinChe
81a3613231
feat(provider): get information from container. (#19) 2025-03-28 20:40:49 +08:00
21e9f3cbe8 feat(misc): fix clippy misc and remove unused auth module 2025-03-28 14:32:04 +08:00
35fb4a8232 feat(ci): enable github action ci 2025-03-27 20:36:57 +08:00
3a513b525c fix(fmt & dep): clippy & hakari 2025-03-27 20:36:57 +08:00
火花
9fa472c8c6
Feat cni (#7)
* fmt

* 完善cni以及添加接口
2025-03-23 11:13:42 +08:00
火花
c33fefa635
Feat provider framework (#9)
添加了handler大概框架,具体逻辑尚未实现
2025-03-13 15:55:36 +08:00
YuLong Huang
1759d28dd0
迁移项目,完善provider的框架 (#6) 2025-03-02 16:37:46 +08:00
sparkzky
6dadc9ecf3 创建基本文件夹 2025-02-28 17:33:10 +08:00
sparkzky
a04fd9b185 fmt 2025-02-27 22:34:50 +08:00
sparkzky
8cd0b937bc Merge remote-tracking branch 'origin/master' into feat-warp-ctr 2025-02-27 21:54:20 +08:00
sparkzky
eee53e6c73 1 2025-02-27 21:33:50 +08:00
dca33379ea optimize codes, fix flake, and add license & docs 2025-02-25 19:31:19 +08:00
9e0955e530 hakari to speedup building, change structure of
the workspace
2025-02-25 16:15:02 +08:00
d98cfd6289 nix build available! 2025-02-25 16:15:02 +08:00
167954eaa7 nix enable develop environment 2025-02-25 16:13:55 +08:00
sparkzky
550bbc546c init 2025-01-25 19:43:37 +08:00
sparkzky
02d9cc020b init 2025-01-25 16:51:20 +08:00