CreateConnection FIXME
(pluginName string, connection any)
| 46 | |
| 47 | // CreateConnection FIXME |
| 48 | func (d *DevlakeClient) CreateConnection(pluginName string, connection any) *Connection { |
| 49 | d.testCtx.Helper() |
| 50 | created := sendHttpRequest[Connection](d.testCtx, d.timeout, &testContext{ |
| 51 | client: d, |
| 52 | printPayload: true, |
| 53 | inlineJson: false, |
| 54 | }, http.MethodPost, fmt.Sprintf("%s/plugins/%s/connections", d.Endpoint, pluginName), nil, connection) |
| 55 | return &created |
| 56 | } |
| 57 | |
| 58 | // ListConnections FIXME |
| 59 | func (d *DevlakeClient) ListConnections(pluginName string) []*Connection { |
no outgoing calls