MCPcopy Create free account
hub / github.com/cloudbase/garm / GetURL

Method GetURL

params/github.go:349–358  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

347}
348
349func (a RunnerScaleSetSession) GetURL() (*url.URL, error) {
350 if a.MessageQueueURL == "" {
351 return nil, fmt.Errorf("no url specified")
352 }
353 u, err := url.ParseRequestURI(a.MessageQueueURL)
354 if err != nil {
355 return nil, fmt.Errorf("failed to parse URL: %w", err)
356 }
357 return u, nil
358}
359
360func (a RunnerScaleSetSession) getJWT() (*jwt.Token, error) {
361 // We're parsing a token we got from the GitHub API. We can't verify its signature.

Callers 9

validateHookRequestFunction · 0.45
hookToParamsHookInfoFunction · 0.45
getGhOrgWebhookFunction · 0.45
getGhRepoWebhookFunction · 0.45
getGhOrgWebhookFunction · 0.45
getGhRepoWebhookFunction · 0.45
createGiteaRepoHookMethod · 0.45
createGiteaOrgHookMethod · 0.45
newActionsRequestMethod · 0.45

Calls

no outgoing calls

Tested by 2

getGhOrgWebhookFunction · 0.36
getGhRepoWebhookFunction · 0.36