client

package
v1.0.148 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: Apache-2.0 Imports: 7 Imported by: 9

Documentation

Index

Constants

View Source
const DefaultPageSize = 500

Variables

This section is empty.

Functions

func GetClientConfigWithContext added in v1.0.139

func GetClientConfigWithContext(kc string, context 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, kContext string) ClusterDetails

Jump to

Keyboard shortcuts

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