(authInfo *clientcmdapi.AuthInfo)
| 559 | } |
| 560 | |
| 561 | func GetAuthInfoFileReferences(authInfo *clientcmdapi.AuthInfo) []*string { |
| 562 | s := []*string{&authInfo.ClientCertificate, &authInfo.ClientKey, &authInfo.TokenFile} |
| 563 | // Only resolve exec command if it isn't PATH based. |
| 564 | if authInfo.Exec != nil && strings.ContainsRune(authInfo.Exec.Command, filepath.Separator) { |
| 565 | s = append(s, &authInfo.Exec.Command) |
| 566 | } |
| 567 | return s |
| 568 | } |
| 569 | |
| 570 | // ResolvePaths updates the given refs to be absolute paths, relative to the given base directory |
| 571 | func ResolvePaths(refs []*string, base string) error { |
no outgoing calls
no test coverage detected