client

package
v1.0.129 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 6 Imported by: 9

Documentation

Index

Constants

View Source
const DefaultPageSize = 500

Variables

This section is empty.

Functions

func GetClientConfig

func GetClientConfig(kc string) (*rest.Config, error)

func GetK8sClientset added in v1.0.112

func GetK8sClientset() (*kubernetes.Clientset, error)

func IsRunningInKubernetes

func IsRunningInKubernetes() bool

func ListWithPages added in v1.0.85

func ListWithPages[T metav1.ListInterface](pageSize int, list listFunc[T], ctx context.Context, opts metav1.ListOptions, handler func(obj T) error) error

Types

type ClusterDetails added in v1.0.77

type ClusterDetails struct {
	CurrentContext string
	ClusterName    string
	ServerEndpoint string
}

func GetCurrentClusterDetails added in v1.0.77

func GetCurrentClusterDetails(kc string) ClusterDetails

Jump to

Keyboard shortcuts

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