Documentation
¶
Index ¶
- type KubernetesClient
- func (k *KubernetesClient) AddClients(clients map[string]*kubernetes.Clientset)
- func (k *KubernetesClient) GetSyncTime(id string) (types.SyncTime, error)
- func (k *KubernetesClient) ListClusters(ctx context.Context) ([]types.Cluster, error)
- func (k *KubernetesClient) ListNamespaces(ctx context.Context, clusterName string, labels map[string]string) ([]types.Namespace, error)
- func (k *KubernetesClient) ListNodes(ctx context.Context, clusterName string, labels map[string]string) ([]types.K8sNode, error)
- func (k *KubernetesClient) ListPods(ctx context.Context, clusterName string, labels map[string]string) (pods []types.Pod, err error)
- func (k *KubernetesClient) ListPodsCIDRs(ctx context.Context, clusterName string) ([]string, error)
- func (k *KubernetesClient) ListServices(ctx context.Context, clusterName string, labels map[string]string) ([]types.K8SService, error)
- func (k *KubernetesClient) ListServicesCIDRs(ctx context.Context, clusterName string) (string, error)
- func (k *KubernetesClient) UpdateServiceSourceRanges(ctx context.Context, clusterName, namespace, name string, cidrsToAdd []string, ...) error
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 (*KubernetesClient) ListNamespaces ¶
func (*KubernetesClient) ListPodsCIDRs ¶
func (*KubernetesClient) ListServices ¶
func (k *KubernetesClient) ListServices(ctx context.Context, clusterName string, labels map[string]string) ([]types.K8SService, error)
func (*KubernetesClient) ListServicesCIDRs ¶
func (*KubernetesClient) UpdateServiceSourceRanges ¶
Click to show internal directories.
Click to hide internal directories.