kubernetes

package
v0.0.0-...-f99fb5f Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubernetesClient

type KubernetesClient struct {
	// contains filtered or unexported fields
}

func NewKubernetesClient

func NewKubernetesClient(logger *logrus.Logger, kubeConfigFileName string) (*KubernetesClient, error)

func (*KubernetesClient) AddClients

func (k *KubernetesClient) AddClients(clients map[string]*kubernetes.Clientset)

func (*KubernetesClient) GetSyncTime

func (k *KubernetesClient) GetSyncTime(id string) (types.SyncTime, error)

func (*KubernetesClient) ListClusters

func (k *KubernetesClient) ListClusters(ctx context.Context) ([]types.Cluster, error)

func (*KubernetesClient) ListNamespaces

func (k *KubernetesClient) ListNamespaces(ctx context.Context, clusterName string, labels map[string]string) ([]types.Namespace, error)

func (*KubernetesClient) ListNodes

func (k *KubernetesClient) ListNodes(ctx context.Context, clusterName string, labels map[string]string) ([]types.K8sNode, error)

func (*KubernetesClient) ListPods

func (k *KubernetesClient) ListPods(ctx context.Context, clusterName string, labels map[string]string) (pods []types.Pod, err error)

func (*KubernetesClient) ListPodsCIDRs

func (k *KubernetesClient) ListPodsCIDRs(ctx context.Context, clusterName string) ([]string, error)

func (*KubernetesClient) ListServices

func (k *KubernetesClient) ListServices(ctx context.Context, clusterName string, labels map[string]string) ([]types.K8SService, error)

func (*KubernetesClient) ListServicesCIDRs

func (k *KubernetesClient) ListServicesCIDRs(ctx context.Context, clusterName string) (string, error)

func (*KubernetesClient) UpdateServiceSourceRanges

func (k *KubernetesClient) UpdateServiceSourceRanges(ctx context.Context, clusterName, namespace, name string, cidrsToAdd []string, cidrsToRemove []string) error

Jump to

Keyboard shortcuts

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