| 126 | } |
| 127 | |
| 128 | func createGithubEndpoint(apiCli *client.GarmAPI, apiAuthToken runtime.ClientAuthInfoWriter, endpointParams params.CreateGithubEndpointParams) (*params.ForgeEndpoint, error) { |
| 129 | createEndpointResponse, err := apiCli.Endpoints.CreateGithubEndpoint( |
| 130 | clientEndpoints.NewCreateGithubEndpointParams().WithBody(endpointParams), |
| 131 | apiAuthToken) |
| 132 | if err != nil { |
| 133 | return nil, err |
| 134 | } |
| 135 | return &createEndpointResponse.Payload, nil |
| 136 | } |
| 137 | |
| 138 | func listGithubEndpoints(apiCli *client.GarmAPI, apiAuthToken runtime.ClientAuthInfoWriter) (params.ForgeEndpoints, error) { |
| 139 | listEndpointsResponse, err := apiCli.Endpoints.ListGithubEndpoints( |