ClearAPICache clears cached API responses.
()
| 606 | |
| 607 | // ClearAPICache clears cached API responses. |
| 608 | func (a *App) ClearAPICache() { |
| 609 | if a.isGroupMode { |
| 610 | clients := a.groupManager.GetAllClients() |
| 611 | for _, pc := range clients { |
| 612 | if pc.Client != nil { |
| 613 | pc.Client.ClearAPICache() |
| 614 | } |
| 615 | } |
| 616 | } else { |
| 617 | a.client.ClearAPICache() |
| 618 | } |
| 619 | } |
| 620 | |
| 621 | // getClientForVM returns the appropriate API client for a VM. |
| 622 | // In group mode, it returns the client for the VM's source profile. |
no test coverage detected