Versions in this module Expand all Collapse all v1 v1.0.1 Nov 4, 2024 Changes in this version + var ErrReadNamespace = errors.New("Could not read namespace from service account secret") + func CertPoolFromFile(filename string) (*x509.CertPool, error) + func CertsFromPEM(pemCerts []byte) ([]*x509.Certificate, error) + type Kubernetes interface + ListPods func(labels map[string]string) (*PodList, error) + UpdatePod func(podName string, pod *Pod) (*Pod, error) + WatchPods func(labels map[string]string) (watch.Watch, error) + func NewClientByHost(host string) Kubernetes + func NewClientInCluster() Kubernetes + type Meta struct + Annotations map[string]*string + Labels map[string]*string + Name string + type Pod struct + Metadata *Meta + Status *Status + type PodList struct + Items []Pod + type Status struct + Phase string + PodIP string