Documentation ¶
Index ¶
- type ServerVersionClient
- func (c *ServerVersionClient) GetCacheMaxAge() uint64
- func (c *ServerVersionClient) GetRequestTimeout() time.Duration
- func (c *ServerVersionClient) ServerVersion() (*version.Info, error)
- func (c *ServerVersionClient) SetCacheMaxAge(cacheMaxAge uint64)
- func (c *ServerVersionClient) SetRequestTimeout(requestTimeout string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServerVersionClient ¶
type ServerVersionClient struct {
// contains filtered or unexported fields
}
Encapsulates the client which fetches the server version. Implements the discovery.ServerVersionInterface, allowing the creation of a mock or fake for testing.
func NewServerVersionClient ¶
func NewServerVersionClient(kubeConfigFlags *genericclioptions.ConfigFlags) *ServerVersionClient
func (*ServerVersionClient) GetCacheMaxAge ¶
func (c *ServerVersionClient) GetCacheMaxAge() uint64
func (*ServerVersionClient) GetRequestTimeout ¶
func (c *ServerVersionClient) GetRequestTimeout() time.Duration
func (*ServerVersionClient) ServerVersion ¶
func (c *ServerVersionClient) ServerVersion() (*version.Info, error)
func (*ServerVersionClient) SetCacheMaxAge ¶
func (c *ServerVersionClient) SetCacheMaxAge(cacheMaxAge uint64)
func (*ServerVersionClient) SetRequestTimeout ¶
func (c *ServerVersionClient) SetRequestTimeout(requestTimeout string) error
Click to show internal directories.
Click to hide internal directories.