MCPcopy Create free account
hub / github.com/astercloud/aster / syncAll

Method syncAll

pkg/asteros/interfaces/agui.go:204–218  ·  view source on GitHub ↗

syncAll 同步所有资源

()

Source from the content-addressed store, hash-verified

202
203// syncAll 同步所有资源
204func (i *AGUIInterface) syncAll() error {
205 if !i.isConnected() {
206 return errors.New("not connected to control plane")
207 }
208
209 // TODO: 实现实际的同步逻辑
210 // 1. 获取所有 Agents、Stars、Workflows
211 // 2. 同步状态到控制平面
212
213 if i.opts.EnableLogging {
214 fmt.Printf(" [AGUI] Synced all resources to Control Plane\n")
215 }
216
217 return nil
218}
219
220// syncAgent 同步 Agent
221func (i *AGUIInterface) syncAgent(ag *agent.Agent) error {

Callers 1

syncLoopMethod · 0.95

Calls 2

isConnectedMethod · 0.95
PrintfMethod · 0.80

Tested by

no test coverage detected