MCPcopy Index your code
hub / github.com/Edgenesis/shifu

github.com/Edgenesis/shifu @v0.100.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.100.0 ↗ · + Follow
689 symbols 2,562 edges 134 files 228 documented · 33%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

中文 | English | 日本語

PRs Welcome Go Report Card codecov Build Status golangci-lint

Kubernetes原生的物联网网关

Shifu是一个k8s原生的,生产级的,支持多协议设备接入的开放物联网网关。

<a href="https://discord.gg/2tbdBrkGHv"><img src="https://img.shields.io/badge/Discord-5865F2?style=for-the-badge&logo=discord&logoColor=white" height="25"></a>
&nbsp;
<a href="https://x.com/ShifuFramework"><img src="https://img.shields.io/twitter/follow/ShifuFramework" height="25"></a>
&nbsp;
<a href="https://www.linkedin.com/company/edgenesis/"><img src="https://img.shields.io/badge/LinkedIn-0077B5?style=for-the-badge&logo=linkedin&logoColor=white" height="25"></a>
&nbsp;
<a href="https://www.youtube.com/channel/UCsaj5f4IKKKn9OMiTVYCvRA"><img src="https://img.shields.io/youtube/channel/subscribers/UCsaj5f4IKKKn9OMiTVYCvRA" height="25"></a>
&nbsp;
<a href="https://github.com/Edgenesis/shifu"><img src="https://img.shields.io/github/stars/Edgenesis/shifu" height="25"></a>

✨招聘✨

我们正在招聘!Shifu大家庭举双手欢迎爱折腾的你!!!

👉🙋‍♀️职位点这里👈🙋‍♂️

Shifu的价值: 让大家开发应用,而不是基础设施

CNCF现场直播和演示

Cloud Native Live

特点

Kubernetes原生 — 应用开发的同时进行设备管理,无需再构建额外的运维基础设施

开放平台— 避免供应商锁定,你可以轻松地将Shifu部署在公有云、私有云或混合云上。Shifu将Kubernetes带入到物联网边缘计算场景中,助力实现物联网应用程序的可扩展性和高可用性。

多协议设备接入 — HTTP, MQTT, RTSP, Siemens S7, TCP socket, OPC UA...从公有协议到私有协议,Shifu的微服务架构让我们能够快速整合接入新的协议。

定义

shifu - 一个把IoT设备接入Kubernetes集群的CRD。

DeviceShifu - 一个Kubernetes pod,同时也是Shifu的最小单元。DeviceShifu的主要组成部分是设备的驱动,代表一个IoT设备,也可以称之为“数字孪生”。

如何用五行代码连接一个使用私有协议的摄像头

社区

欢迎加入Shifu社区,分享您的思考与想法,

您的意见对我们来说无比宝贵。 我们无比欢迎您的到来!

加入 Discord 关注 X Reddit GitHub Discussions YouTube 订阅

开始上手

欢迎参考🗒️Shifu技术文档获取更详细的信息: - 🔧安装Shifu - 🔌设备连接 - 👨‍💻应用开发 - 🎮KillerCoda Demo在线试玩

贡献

欢迎向我们提交issue 或者提交PR!

我们对贡献者们心怀感激🥰.

Shifu正式加入CNCF全景图

Github Star数量

Stargazers over time

许可证

该项目使用Apache2.0许可证。

Extension points exported contracts — how you extend this code

DeviceShifu (Interface)
DeviceShifu interface of Deviceshifu include start telemetry and stop http server [8 implementers]
pkg/deviceshifu/deviceshifubase/deviceshifubase.go
DBDriver (Interface)
(no doc) [3 implementers]
pkg/telemetryservice/sql/template/template.go
ObjectAPI (Interface)
(no doc) [3 implementers]
pkg/gateway/lwm2m/client/object.go
OPCUAClient (Interface)
OPCUAClient defines the interface for OPC UA client operations to allow mocking [4 implementers]
pkg/deviceshifu/deviceshifuopcua/deviceshifuopcua.go
MockCommandHandler (Interface)
(no doc) [5 implementers]
pkg/deviceshifu/deviceshifumqtt/deviceshifumqtt_test.go
MockCommandHandler (Interface)
(no doc) [5 implementers]
pkg/deviceshifu/deviceshifuhttp/deviceshifuhttp_test.go
Driver (Interface)
Driver MockDevice Driver interface include main function and instruction handler
pkg/deviceshifu/mockdevice/mockdevice/mockdevice.go

Core symbols most depended-on inside this repo

ToPointer
called by 228
pkg/deviceshifu/unitest/convert2pointer.go
Errorf
called by 222
pkg/logger/log.go
Infof
called by 113
pkg/logger/log.go
Fatalf
called by 50
pkg/logger/log.go
Run
called by 49
pkg/deviceshifu/deviceshifulwm2m/lwm2m/lwm2m.go
ReadAll
called by 41
pkg/gateway/lwm2m/client/object.go
Start
called by 37
pkg/deviceshifu/deviceshifubase/deviceshifubase.go
Info
called by 22
pkg/logger/log.go

Shape

Function 363
Method 188
Struct 97
Route 19
TypeAlias 12
Interface 7
FuncType 2
Class 1

Languages

Go92%
Python8%

Modules by API surface

pkg/k8s/api/v1alpha1/zz_generated.deepcopy.go44 symbols
pkg/deviceshifu/deviceshifubase/deviceshifubase_config.go23 symbols
pkg/deviceshifu/deviceshifuhttp/deviceshifuhttp_test.go22 symbols
pkg/gateway/lwm2m/client/lwm2m.go20 symbols
pkg/k8s/api/v1alpha1/edgedevice_types.go19 symbols
pkg/deviceshifu/deviceshifuopcua/deviceshifuopcua.go19 symbols
pkg/gateway/lwm2m/client/object.go18 symbols
pkg/logger/log.go17 symbols
examples/rtspDeviceShifu/camera.py17 symbols
pkg/deviceshifu/deviceshifulwm2m/lwm2m/lwm2m.go16 symbols
pkg/deviceshifu/deviceshifubase/deviceshifubase_config_test.go16 symbols
pkg/deviceshifu/deviceshifubase/deviceshifubase.go16 symbols

For agents

$ claude mcp add shifu \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact