Documentation
¶
Index ¶
- Variables
- type SafeClient
- func (c *SafeClient) Copy() *SafeClient
- func (c *SafeClient) HTTPDo(req *http.Request) (*http.Response, error)
- func (c *SafeClient) NewRTClient(schemeFuncs ...func(s *apiruntime.Scheme) error) (ctrlrtclient.Client, error)
- func (c *SafeClient) RESTConfig() *rest.Config
- func (c *SafeClient) SetProbeEndpoint(timeout time.Duration, targetHost, kubeServiceServerName string)
- func (c *SafeClient) SetTLSCAData(caData []byte)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SupportNoAuth = true Insecure = false )
Functions ¶
This section is empty.
Types ¶
type SafeClient ¶
type SafeClient struct {
// contains filtered or unexported fields
}
func NewSafeClient ¶
func NewSafeClient(flags ...*pflag.FlagSet) (*SafeClient, error)
func (*SafeClient) Copy ¶
func (c *SafeClient) Copy() *SafeClient
func (*SafeClient) NewRTClient ¶
func (c *SafeClient) NewRTClient(schemeFuncs ...func(s *apiruntime.Scheme) error) (ctrlrtclient.Client, error)
func (*SafeClient) RESTConfig ¶ added in v0.33.14
func (c *SafeClient) RESTConfig() *rest.Config
RESTConfig returns a copy of the client's Kubernetes configuration, for callers that need a client-go client this type does not build itself (discovery, SelfSubjectAccessReview). A copy rather than the original: the caller's client must not be able to retarget or re-authenticate every other client derived from this one, the way SetProbeEndpoint deliberately does. Returns nil when the client holds no configuration.
func (*SafeClient) SetProbeEndpoint ¶ added in v0.29.8
func (c *SafeClient) SetProbeEndpoint(timeout time.Duration, targetHost, kubeServiceServerName string)
SetProbeEndpoint configures host, TLS ServerName and timeout for probe requests.
func (*SafeClient) SetTLSCAData ¶
func (c *SafeClient) SetTLSCAData(caData []byte)
Click to show internal directories.
Click to hide internal directories.