(cmd *cobra.Command, args []string)
| 95 | } |
| 96 | |
| 97 | func exampleAgentGroupConfig(cmd *cobra.Command, args []string) { |
| 98 | server := common.GetServerInfo(cmd) |
| 99 | url := fmt.Sprintf("http://%s:%d/v1/agent-group-configuration/template/yaml", server.IP, server.Port) |
| 100 | response, err := common.CURLPerform("GET", url, nil, "", |
| 101 | []common.HTTPOption{common.WithTimeout(common.GetTimeout(cmd)), common.WithORGID(common.GetORGID(cmd))}...) |
| 102 | if err != nil { |
| 103 | fmt.Fprintln(os.Stderr, err) |
| 104 | return |
| 105 | } |
| 106 | fmt.Println(response.Get("DATA").MustString()) |
| 107 | } |
| 108 | |
| 109 | type vtapInfo struct { |
| 110 | name string |
no test coverage detected