client

package
v1.0.109 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 9 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 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

type KubernetesClientFromCacheWithAPIFallback added in v1.0.72

type KubernetesClientFromCacheWithAPIFallback struct {
	Cache     client.Client
	APIServer client.Reader
}

func NewKubernetesClientFromCacheWithAPIFallback added in v1.0.72

func NewKubernetesClientFromCacheWithAPIFallback(cache client.Client, apiServer client.Reader) *KubernetesClientFromCacheWithAPIFallback

func (*KubernetesClientFromCacheWithAPIFallback) Create added in v1.0.72

func (*KubernetesClientFromCacheWithAPIFallback) Delete added in v1.0.72

func (*KubernetesClientFromCacheWithAPIFallback) DeleteAllOf added in v1.0.72

func (*KubernetesClientFromCacheWithAPIFallback) Get added in v1.0.72

func (*KubernetesClientFromCacheWithAPIFallback) GroupVersionKindFor added in v1.0.72

func (*KubernetesClientFromCacheWithAPIFallback) IsObjectNamespaced added in v1.0.72

func (k *KubernetesClientFromCacheWithAPIFallback) IsObjectNamespaced(obj runtime.Object) (bool, error)

func (*KubernetesClientFromCacheWithAPIFallback) List added in v1.0.72

func (*KubernetesClientFromCacheWithAPIFallback) Patch added in v1.0.72

func (*KubernetesClientFromCacheWithAPIFallback) RESTMapper added in v1.0.72

func (*KubernetesClientFromCacheWithAPIFallback) Scheme added in v1.0.72

func (*KubernetesClientFromCacheWithAPIFallback) Status added in v1.0.72

func (*KubernetesClientFromCacheWithAPIFallback) SubResource added in v1.0.72

func (*KubernetesClientFromCacheWithAPIFallback) Update added in v1.0.72

Jump to

Keyboard shortcuts

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