Documentation ¶
Index ¶
- Constants
- func GetClientConfig(kc string) (*rest.Config, error)
- func GetK8sClientset() (*kubernetes.Clientset, error)
- func IsRunningInKubernetes() bool
- func ListWithPages[T metav1.ListInterface](pageSize int, list listFunc[T], ctx context.Context, opts metav1.ListOptions, ...) error
- type ClusterDetails
Constants ¶
View Source
const DefaultPageSize = 500
Variables ¶
This section is empty.
Functions ¶
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
func GetCurrentClusterDetails ¶ added in v1.0.77
func GetCurrentClusterDetails(kc string) ClusterDetails
Click to show internal directories.
Click to hide internal directories.