Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KubernetesClient ¶
KubernetesClient defines the expected interface of any object capable of listing pods from a Kubernetes cluster.
type KubernetesClientImpl ¶
type KubernetesClientImpl struct {
// contains filtered or unexported fields
}
func NewKubernetesClient ¶
func NewKubernetesClient(kubeconfig string) (*KubernetesClientImpl, error)
NewKubernetesClient returns a client capable of talking to the API server of a Kubernetes cluster specified in the given kubeconfig filepath. If no kubeconfig filepath is specified, it assumes it's running inside a Kubernetes cluster, and will try to connect to it via the exposed service account.
func (*KubernetesClientImpl) ListAllPods ¶
func (c *KubernetesClientImpl) ListAllPods(namespace []*string) ([]*apiv1.Pod, error)
ListAllPods returns all pods from the given namespaces.
Click to show internal directories.
Click to hide internal directories.