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

Function getTask

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

Source from the content-addressed store, hash-verified

142}
143
144func getTask(cmd *cobra.Command, args []string) {
145 var lcuuid string
146 if len(args) != 0 {
147 lcuuid = args[0]
148 }
149 server := common.GetServerInfo(cmd)
150 url := fmt.Sprintf("http://%s:%d/v1/tasks/%s/", server.IP, server.Port, lcuuid)
151 resp, err := common.CURLResponseRawJson("GET", url, []common.HTTPOption{common.WithTimeout(common.GetTimeout(cmd))}...)
152 if err != nil {
153 fmt.Fprintln(os.Stderr, err)
154 return
155 }
156 common.PrettyPrint(resp.Get("DATA"))
157}
158
159func triggerDomain(cmd *cobra.Command, args []string) {
160 if len(args) == 0 {

Callers 1

RegisterCloudCommandFunction · 0.85

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected