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

Function GetAuthenticator

plugin/pkg/client/auth/exec/exec.go:109–111  ·  view source on GitHub ↗

GetAuthenticator returns an exec-based plugin for providing client credentials.

(config *api.ExecConfig)

Source from the content-addressed store, hash-verified

107
108// GetAuthenticator returns an exec-based plugin for providing client credentials.
109func GetAuthenticator(config *api.ExecConfig) (*Authenticator, error) {
110 return newAuthenticator(globalCache, config)
111}
112
113func newAuthenticator(c *cache, config *api.ExecConfig) (*Authenticator, error) {
114 key := cacheKey(config)

Callers 1

TransportConfigMethod · 0.92

Calls 1

newAuthenticatorFunction · 0.85

Tested by

no test coverage detected