clusterinfo

package
v0.0.0-...-69ba9c3 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	GetContainerRuntime() (string, error)
	GetOpenshiftVersion() (string, error)
	GetOpenshiftDriverToolkitImages() map[string]string
	GetOpenshiftProxySpec() (*configv1.ProxySpec, error)
}

Interface to the clusterinfo package

func New

func New(ctx context.Context, opts ...Option) (Interface, error)

New creates a new instance of clusterinfo API

type Option

type Option func(*clusterInfo)

Option is a function that configures the clusterInfo library

func WithKubernetesConfig

func WithKubernetesConfig(config *rest.Config) Option

WithKubernetesConfig provides an option to set the k8s config used by the library

func WithOneShot

func WithOneShot(oneshot bool) Option

WithOneShot provides an option to get the cluster information once during initialization of the clusterInfo library. If false, cluster information is fetched every time a client requests information via the interface.

Jump to

Keyboard shortcuts

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