MCPcopy Create free account
hub / github.com/cloudbase/garm / createRepoPool

Function createRepoPool

test/integration/client_utils.go:287–295  ·  view source on GitHub ↗
(apiCli *client.GarmAPI, apiAuthToken runtime.ClientAuthInfoWriter, repoID string, poolParams params.CreatePoolParams)

Source from the content-addressed store, hash-verified

285}
286
287func 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
297func listRepoPools(apiCli *client.GarmAPI, apiAuthToken runtime.ClientAuthInfoWriter, repoID string) (params.Pools, error) {
298 listRepoPoolsResponse, err := apiCli.Repositories.ListRepoPools(

Callers 1

CreateRepoPoolMethod · 0.70

Calls 3

CreateRepoPoolMethod · 0.65
WithBodyMethod · 0.45
WithRepoIDMethod · 0.45

Tested by 1

CreateRepoPoolMethod · 0.56