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

Method HasCA

transport/config.go:80–82  ·  view source on GitHub ↗

HasCA returns whether the configuration has a certificate authority or not.

()

Source from the content-addressed store, hash-verified

78
79// HasCA returns whether the configuration has a certificate authority or not.
80func (c *Config) HasCA() bool {
81 return len(c.TLS.CAData) > 0 || len(c.TLS.CAFile) > 0
82}
83
84// HasBasicAuth returns whether the configuration has basic authentication or not.
85func (c *Config) HasBasicAuth() bool {

Callers 2

NewFunction · 0.80
TLSConfigForFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected