go-agent-development

Installation
SKILL.md

Go Agent 开发

Quick Reference

Go 版本:1.19+
进程组成:DevopsDaemon(守护进程) + DevopsAgent(主进程)
核心包:api/(API 调用)| config/(配置)| job/(任务)| pipeline/(流水线)
日志:logs.Debug/Info/Error/WithError

最简示例

// API 调用
func AgentStartup() (*httputil.DevopsResult, error) {
    url := buildUrl("/ms/environment/api/buildAgent/agent/thirdPartyAgent/startup")
    startInfo := &ThirdPartyAgentStartInfo{
        HostName:      systemutil.GetHostName(),
Related skills

More from tencentblueking/bk-ci

Installs
41
GitHub Stars
2.5K
First Seen
Jan 23, 2026