MCPcopy Index your code
hub / github.com/deepflowio/deepflow / triggerDomain

Function triggerDomain

cli/ctl/cloud.go:159–172  ·  view source on GitHub ↗
(cmd *cobra.Command, args []string)

Source from the content-addressed store, hash-verified

157}
158
159func triggerDomain(cmd *cobra.Command, args []string) {
160 if len(args) == 0 {
161 fmt.Fprintln(os.Stderr, "must specify domain-lcuuid.")
162 return
163 }
164 server := common.GetServerInfo(cmd)
165 url := fmt.Sprintf("http://%s:%d/v1/trigger-domain/%s/", server.IP, server.Port, args[0])
166 resp, err := common.CURLResponseRawJson("GET", url, []common.HTTPOption{common.WithTimeout(common.GetTimeout(cmd))}...)
167 if err != nil {
168 fmt.Fprintln(os.Stderr, err)
169 return
170 }
171 common.PrettyPrint(resp)
172}

Callers 1

RegisterCloudCommandFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected