RESTClientGetter is an interface that the ConfigFlags describe to provide an easier way to mock for commands and eliminate the direct coupling to a struct type. Users may wish to duplicate this type in their own packages as per the golang type overlapping.
| 40 | // and eliminate the direct coupling to a struct type. Users may wish to duplicate this type in their own packages |
| 41 | // as per the golang type overlapping. |
| 42 | type RESTClientGetter interface { |
| 43 | // ToRESTConfig returns restconfig |
| 44 | ToRESTConfig() (*rest.Config, error) |
| 45 | // ToRawIAMConfigLoader return iamconfig loader as-is |
| 46 | ToRawIAMConfigLoader() clientcmd.ClientConfig |
| 47 | } |
| 48 | |
| 49 | var _ RESTClientGetter = &ConfigFlags{} |
| 50 |
no outgoing calls
no test coverage detected
searching dependent graphs…