| 162 | } |
| 163 | |
| 164 | func updateGithubEndpoint(apiCli *client.GarmAPI, apiAuthToken runtime.ClientAuthInfoWriter, endpointName string, endpointParams params.UpdateGithubEndpointParams) (*params.ForgeEndpoint, error) { |
| 165 | updateEndpointResponse, err := apiCli.Endpoints.UpdateGithubEndpoint( |
| 166 | clientEndpoints.NewUpdateGithubEndpointParams().WithName(endpointName).WithBody(endpointParams), |
| 167 | apiAuthToken) |
| 168 | if err != nil { |
| 169 | return nil, err |
| 170 | } |
| 171 | return &updateEndpointResponse.Payload, nil |
| 172 | } |
| 173 | |
| 174 | // listProviders lists all the providers configured in GARM. |
| 175 | func listProviders(apiCli *client.GarmAPI, apiAuthToken runtime.ClientAuthInfoWriter) (params.Providers, error) { |