APIClientProvider provides a method to get a [client.APIClient], initializing it if needed. It's a smaller interface than [command.Cli], and used in situations where an APIClient is needed, but we want to postpone initializing the client until it's used.
| 17 | // APIClient is needed, but we want to postpone initializing the client until |
| 18 | // it's used. |
| 19 | type APIClientProvider interface { |
| 20 | Client() client.APIClient |
| 21 | } |
| 22 | |
| 23 | // ImageNames offers completion for images present within the local store |
| 24 | func ImageNames(dockerCLI APIClientProvider, limit int) cobra.CompletionFunc { |
no outgoing calls
no test coverage detected
searching dependent graphs…