| 491 | } |
| 492 | |
| 493 | func getInstance(apiCli *client.GarmAPI, apiAuthToken runtime.ClientAuthInfoWriter, instanceID string) (*params.Instance, error) { |
| 494 | getInstancesResponse, err := apiCli.Instances.GetInstance( |
| 495 | clientInstances.NewGetInstanceParams().WithInstanceName(instanceID), |
| 496 | apiAuthToken) |
| 497 | if err != nil { |
| 498 | return nil, err |
| 499 | } |
| 500 | return &getInstancesResponse.Payload, nil |
| 501 | } |
| 502 | |
| 503 | func deleteInstance(apiCli *client.GarmAPI, apiAuthToken runtime.ClientAuthInfoWriter, instanceID string, forceRemove, bypassGHUnauthorized bool) error { |
| 504 | return apiCli.Instances.DeleteInstance( |