kubernetes

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNodeProxyNodePort

func GetNodeProxyNodePort(kubeclient *kubernetes.Clientset, kconfig *rest.Config) (string, error)

Types

type KubernetesClient

type KubernetesClient struct {
	*kubernetes.Clientset
	*rest.Config
	Logger *log.Entry
}

func NewKubernetesClientFromConfig

func NewKubernetesClientFromConfig(path string, level log.Level) (*KubernetesClient, error)

func (*KubernetesClient) GetLogs

func (k *KubernetesClient) GetLogs(pods *[]v1.Pod, options v1.PodLogOptions, outputFolder string) error

func (*KubernetesClient) LoadClient

func (k *KubernetesClient) LoadClient(path string) error

LoadClient Load kubernetes client from kubeconfig

func (*KubernetesClient) LoadConfig

func (k *KubernetesClient) LoadConfig(path string) error

LoadConfig Load kubernetes configuration

func (*KubernetesClient) SelectPod

func (k *KubernetesClient) SelectPod(namespaces []string) *[]v1.Pod

Jump to

Keyboard shortcuts

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