| 285 | } |
| 286 | |
| 287 | func createRepoPool(apiCli *client.GarmAPI, apiAuthToken runtime.ClientAuthInfoWriter, repoID string, poolParams params.CreatePoolParams) (*params.Pool, error) { |
| 288 | createRepoPoolResponse, err := apiCli.Repositories.CreateRepoPool( |
| 289 | clientRepositories.NewCreateRepoPoolParams().WithRepoID(repoID).WithBody(poolParams), |
| 290 | apiAuthToken) |
| 291 | if err != nil { |
| 292 | return nil, err |
| 293 | } |
| 294 | return &createRepoPoolResponse.Payload, nil |
| 295 | } |
| 296 | |
| 297 | func listRepoPools(apiCli *client.GarmAPI, apiAuthToken runtime.ClientAuthInfoWriter, repoID string) (params.Pools, error) { |
| 298 | listRepoPoolsResponse, err := apiCli.Repositories.ListRepoPools( |