(pluginName string, connectionId uint64, listBlueprints bool)
| 238 | } |
| 239 | |
| 240 | func (d *DevlakeClient) ListScopes(pluginName string, connectionId uint64, listBlueprints bool) ScopeListResponseOut { |
| 241 | scopesRaw := sendHttpRequest[ScopeListResponseIn](d.testCtx, d.timeout, &testContext{ |
| 242 | client: d, |
| 243 | printPayload: true, |
| 244 | inlineJson: false, |
| 245 | }, http.MethodGet, fmt.Sprintf("%s/plugins/%s/connections/%d/scopes?blueprints=%v", d.Endpoint, pluginName, connectionId, listBlueprints), nil, nil) |
| 246 | var responses []ScopeResponse |
| 247 | for _, scopeRaw := range scopesRaw.Scopes { |
| 248 | responses = append(responses, getScopeResponse(scopeRaw)) |
| 249 | } |
| 250 | return ScopeListResponseOut{ |
| 251 | Scopes: responses, |
| 252 | Count: scopesRaw.Count, |
| 253 | } |
| 254 | } |
| 255 | |
| 256 | func (d *DevlakeClient) GetScope(pluginName string, connectionId uint64, scopeId string, listBlueprints bool) ScopeResponse { |
| 257 | scopeRaw := sendHttpRequest[map[string]any](d.testCtx, d.timeout, &testContext{ |
nothing calls this directly
no test coverage detected