kubeversion

package
v0.7.0-devel Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	KubeVersion1_27 = versionutil.MustParseSemantic("1.27.0")
)

Functions

func FetchServerVersion added in v0.6.0

func FetchServerVersion(d discovery.DiscoveryInterface) (*versionutil.Version, error)

Types

type Option

type Option func(*Options)

func WithInterval

func WithInterval(interval time.Duration) Option

type Options

type Options struct {
	Interval time.Duration
}

type ServerVersionFetcher

type ServerVersionFetcher struct {
	// contains filtered or unexported fields
}

func NewServerVersionFetcher

func NewServerVersionFetcher(dc discovery.DiscoveryInterface, opts ...Option) *ServerVersionFetcher

func (*ServerVersionFetcher) FetchServerVersion

func (s *ServerVersionFetcher) FetchServerVersion() error

FetchServerVersion gets API server version

func (*ServerVersionFetcher) GetServerVersion

func (s *ServerVersionFetcher) GetServerVersion() versionutil.Version

func (*ServerVersionFetcher) Start

func (s *ServerVersionFetcher) Start(ctx context.Context) error

Start implements the Runnable interface to run ServerVersionFetcher as a controller.

Jump to

Keyboard shortcuts

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