Versions in this module Expand all Collapse all v1 v1.6.4 Feb 24, 2021 Changes in this version + const Add + const EnvVarKubernetesNamespace + const EnvVarKubernetesPodName + const EnvVarKubernetesServiceHost + const EnvVarKubernetesServicePort + const Replace + const Unset + var ErrNamespaceUnset = errors.New(`"namespace" is unset`) + var ErrNotInCluster = errors.New(...) + var ErrPodNameUnset = errors.New(`"podName" is unset`) + var RetryMax = 10 + var RetryWaitMax = 30 * time.Second + var RetryWaitMin = 500 * time.Millisecond + var RootCAFile = "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt" + var Scheme = "https://" + var TokenFile = "/var/run/secrets/kubernetes.io/serviceaccount/token" + func Sanitize(val string) string + type Client struct + func New(logger hclog.Logger) (*Client, error) + func (c *Client) GetPod(namespace, podName string) (*Pod, error) + func (c *Client) PatchPod(namespace, podName string, patches ...*Patch) error + func (c *Client) Shutdown() + type Config struct + BearerToken string + BearerTokenFile string + CACertPool *x509.CertPool + Host string + type ErrNotFound struct + func (e *ErrNotFound) Error() string + type Metadata struct + Labels map[string]string + Name string + type Patch struct + Operation PatchOperation + Path string + Value interface{} + type PatchOperation string + type Pod struct + Metadata *Metadata