MCPcopy Create free account
hub / github.com/coldbrewcloud/coldbrew-cli / RetrieveTasks

Method RetrieveTasks

aws/ecs/client.go:285–301  ·  view source on GitHub ↗
(clusterName string, taskARNs []string)

Source from the content-addressed store, hash-verified

283}
284
285func (c *Client) RetrieveTasks(clusterName string, taskARNs []string) ([]*_ecs.Task, error) {
286 if len(taskARNs) == 0 {
287 return []*_ecs.Task{}, nil
288 }
289
290 params := &_ecs.DescribeTasksInput{
291 Cluster: _aws.String(clusterName),
292 Tasks: _aws.StringSlice(taskARNs),
293 }
294
295 res, err := c.svc.DescribeTasks(params)
296 if err != nil {
297 return nil, err
298 }
299
300 return res.Tasks, nil
301}
302
303func (c *Client) ListContainerInstanceARNs(clusterName string) ([]string, error) {
304 var nextToken *string

Callers 1

RunMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected