kubernetes

package
v0.1.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetContainers

func GetContainers(pod *corev1.Pod) []string

func Init

func Init() error

Types

type Client

type Client struct {
	*k8s.Clientset
	RestConfig *rest.Config
}

func GetClient

func GetClient() *Client

func (Client) GetClusterRole

func (client Client) GetClusterRole(name, namespace string) (*rbacv1.ClusterRole, error)

func (Client) GetConfigMap

func (client Client) GetConfigMap(name, namespace string) (*corev1.ConfigMap, error)

func (Client) GetDaemonSet

func (client Client) GetDaemonSet(name, namespace string) (*appsv1.DaemonSet, error)

func (Client) GetDaemonsetFromPod

func (client Client) GetDaemonsetFromPod(pod *corev1.Pod) (*appsv1.DaemonSet, error)

func (Client) GetDeployment

func (client Client) GetDeployment(name, namespace string) (*appsv1.Deployment, error)

func (Client) GetDeploymentFromPod

func (client Client) GetDeploymentFromPod(pod *corev1.Pod) (*appsv1.Deployment, error)

func (Client) GetLeaseHolder

func (client Client) GetLeaseHolder() (<-chan string, error)

func (Client) GetNamespace

func (client Client) GetNamespace(name string) (*corev1.Namespace, error)

func (Client) GetPod

func (client Client) GetPod(pod, namespace string) (*corev1.Pod, error)

func (Client) GetReplicaSet

func (client Client) GetReplicaSet(name, namespace string) (*appsv1.ReplicaSet, error)

func (Client) GetReplicasetFromPod

func (client Client) GetReplicasetFromPod(pod *corev1.Pod) (*appsv1.ReplicaSet, error)

func (Client) GetRole

func (client Client) GetRole(name, namespace string) (*rbacv1.Role, error)

func (Client) GetSecret

func (client Client) GetSecret(name, namespace string) (*corev1.Secret, error)

func (Client) GetService

func (client Client) GetService(name, namespace string) (*corev1.Service, error)

func (Client) GetServiceAccount

func (client Client) GetServiceAccount(name, namespace string) (*corev1.ServiceAccount, error)

func (Client) GetStatefulSet

func (client Client) GetStatefulSet(name, namespace string) (*appsv1.StatefulSet, error)

func (Client) GetStatefulsetFromPod

func (client Client) GetStatefulsetFromPod(pod *corev1.Pod) (*appsv1.StatefulSet, error)

func (Client) GetTarget

func (client Client) GetTarget(resource, name, namespace string) (interface{}, error)

func (Client) GetWatcherEndpointSlices

func (client Client) GetWatcherEndpointSlices(labelSelector, namespace string) (<-chan watch.Event, error)

Jump to

Keyboard shortcuts

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