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

Function main

examples/cloud-sandbox/main.go:14–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12)
13
14func main() {
15 // 选择要测试的云平台
16 platform := os.Getenv("CLOUD_PLATFORM") // "aliyun" or "volcengine"
17 if platform == "" {
18 platform = "aliyun"
19 }
20
21 ctx := context.Background()
22
23 switch platform {
24 case "aliyun":
25 testAliyun(ctx)
26 case "volcengine":
27 testVolcengine(ctx)
28 default:
29 log.Fatalf("Unknown platform: %s", platform)
30 }
31}
32
33func testAliyun(ctx context.Context) {
34 fmt.Println("=== Testing Aliyun AgentBay Sandbox ===")

Callers

nothing calls this directly

Calls 2

testAliyunFunction · 0.85
testVolcengineFunction · 0.85

Tested by

no test coverage detected