MCPcopy Index your code
hub / github.com/cortexlabs/cortex / getQueueURL

Function getQueueURL

pkg/operator/resources/asyncapi/queue.go:75–85  ·  view source on GitHub ↗
(apiName string, initialDeploymentTime int64)

Source from the content-addressed store, hash-verified

73}
74
75func getQueueURL(apiName string, initialDeploymentTime int64) (string, error) {
76 operatorAccountID, _, err := config.AWS.GetCachedAccountID()
77 if err != nil {
78 return "", errors.Wrap(err, "failed to construct queue url", "unable to get account id")
79 }
80
81 return fmt.Sprintf(
82 "https://sqs.%s.amazonaws.com/%s/%s",
83 config.AWS.Region, operatorAccountID, apiQueueName(apiName, initialDeploymentTime),
84 ), nil
85}

Callers 4

UpdateAPIFunction · 0.85
RefreshAPIFunction · 0.85
DeleteAPIFunction · 0.85
UpdateAPIMetricsCronFunction · 0.85

Calls 3

WrapFunction · 0.92
apiQueueNameFunction · 0.85
GetCachedAccountIDMethod · 0.80

Tested by

no test coverage detected