Documentation ¶
Index ¶
- func BindFlags(flags *pflag.FlagSet) *clientcmd.ConfigOverrides
- func IsInCluster() bool
- func ParseResourceName(url string) (string, string, string)
- type KindVersion
- type KindVersions
- type KubeClient
- func (kubeClient *KubeClient) DiscoverResourceNameAndPreferredGV() KindVersions
- func (kubeClient *KubeClient) ForwardResource(prometheus *prometheus.Prometheus, readyChannel, stopChannel chan struct{})
- func (kubeClient *KubeClient) GetDaemonSet(namespace string, name string) (*appsv1.DaemonSet, error)
- func (kubeClient *KubeClient) GetDeployment(namespace string, name string) (*appsv1.Deployment, error)
- func (kubeClient *KubeClient) GetPersistentVolumeClaim(namespace string, name string) (*corev1.PersistentVolumeClaim, error)
- func (kubeClient *KubeClient) GetReplicaSet(pod corev1.Pod) (*appsv1.ReplicaSet, error)
- func (kubeClient *KubeClient) GetStatefulSet(namespace string, name string) (*appsv1.StatefulSet, error)
- func (kubeClient *KubeClient) ListPods(query PodQuery) []corev1.Pod
- type PodQuery
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInCluster ¶
func IsInCluster() bool
Types ¶
type KindVersion ¶
type KindVersions ¶
type KindVersions map[string][]KindVersion
type KubeClient ¶
type KubeClient struct { Client *kubernetes.Clientset Config *rest.Config }
func NewClient ¶
func NewClient(cmd *cobra.Command, configOverrides *clientcmd.ConfigOverrides) *KubeClient
func (*KubeClient) DiscoverResourceNameAndPreferredGV ¶
func (kubeClient *KubeClient) DiscoverResourceNameAndPreferredGV() KindVersions
func (*KubeClient) ForwardResource ¶
func (kubeClient *KubeClient) ForwardResource(prometheus *prometheus.Prometheus, readyChannel, stopChannel chan struct{})
func (*KubeClient) GetDaemonSet ¶
func (*KubeClient) GetDeployment ¶
func (kubeClient *KubeClient) GetDeployment(namespace string, name string) (*appsv1.Deployment, error)
func (*KubeClient) GetPersistentVolumeClaim ¶
func (kubeClient *KubeClient) GetPersistentVolumeClaim(namespace string, name string) (*corev1.PersistentVolumeClaim, error)
func (*KubeClient) GetReplicaSet ¶
func (kubeClient *KubeClient) GetReplicaSet(pod corev1.Pod) (*appsv1.ReplicaSet, error)
func (*KubeClient) GetStatefulSet ¶
func (kubeClient *KubeClient) GetStatefulSet(namespace string, name string) (*appsv1.StatefulSet, error)
Click to show internal directories.
Click to hide internal directories.