(restClientGetter genericclioptions.RESTClientGetter, object, options runtime.Object, timeout time.Duration, allContainers bool)
| 48 | } |
| 49 | |
| 50 | func logsForObject(restClientGetter genericclioptions.RESTClientGetter, object, options runtime.Object, timeout time.Duration, allContainers bool) (map[corev1.ObjectReference]rest.ResponseWrapper, error) { |
| 51 | clientConfig, err := restClientGetter.ToRESTConfig() |
| 52 | if err != nil { |
| 53 | return nil, err |
| 54 | } |
| 55 | |
| 56 | clientset, err := corev1client.NewForConfig(clientConfig) |
| 57 | if err != nil { |
| 58 | return nil, err |
| 59 | } |
| 60 | return logsForObjectWithClient(clientset, object, options, timeout, allContainers, false) |
| 61 | } |
| 62 | |
| 63 | // this is split for easy test-ability |
| 64 | func logsForObjectWithClient(clientset corev1client.CoreV1Interface, object, options runtime.Object, timeout time.Duration, allContainers bool, allPods bool) (map[corev1.ObjectReference]rest.ResponseWrapper, error) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…