client

package
v0.0.0-...-153285a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2021 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL