(instances []api.Instance, identifier string)
| 5 | ) |
| 6 | |
| 7 | func findInstance(instances []api.Instance, identifier string) *api.Instance { |
| 8 | for i := range instances { |
| 9 | if instances[i].ID == identifier || instances[i].UUID == identifier || instances[i].Name == identifier { |
| 10 | return &instances[i] |
| 11 | } |
| 12 | } |
| 13 | return nil |
| 14 | } |
| 15 | |
| 16 | func getAuthenticatedClient() (*api.Client, error) { |
| 17 | config, err := LoadConfig() |
no outgoing calls