| 136 | } |
| 137 | |
| 138 | func listGithubEndpoints(apiCli *client.GarmAPI, apiAuthToken runtime.ClientAuthInfoWriter) (params.ForgeEndpoints, error) { |
| 139 | listEndpointsResponse, err := apiCli.Endpoints.ListGithubEndpoints( |
| 140 | clientEndpoints.NewListGithubEndpointsParams(), |
| 141 | apiAuthToken) |
| 142 | if err != nil { |
| 143 | return nil, err |
| 144 | } |
| 145 | return listEndpointsResponse.Payload, nil |
| 146 | } |
| 147 | |
| 148 | func getGithubEndpoint(apiCli *client.GarmAPI, apiAuthToken runtime.ClientAuthInfoWriter, endpointName string) (*params.ForgeEndpoint, error) { |
| 149 | getEndpointResponse, err := apiCli.Endpoints.GetGithubEndpoint( |