MCPcopy
hub / github.com/kubernetes/client-go / GetAuthInfoFileReferences

Function GetAuthInfoFileReferences

tools/clientcmd/loader.go:561–568  ·  view source on GitHub ↗
(authInfo *clientcmdapi.AuthInfo)

Source from the content-addressed store, hash-verified

559}
560
561func 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
571func ResolvePaths(refs []*string, base string) error {

Callers 3

ResolveLocalPathsFunction · 0.85
GetConfigFileReferencesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected