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

Method HasCertAuth

transport/config.go:95–97  ·  view source on GitHub ↗

HasCertAuth returns whether the configuration has certificate authentication or not.

()

Source from the content-addressed store, hash-verified

93
94// HasCertAuth returns whether the configuration has certificate authentication or not.
95func (c *Config) HasCertAuth() bool {
96 return (len(c.TLS.CertData) != 0 || len(c.TLS.CertFile) != 0) && (len(c.TLS.KeyData) != 0 || len(c.TLS.KeyFile) != 0)
97}
98
99// HasCertCallbacks returns whether the configuration has certificate callback or not.
100func (c *Config) HasCertCallback() bool {

Callers 2

NewFunction · 0.80
TLSConfigForFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected