Documentation ¶
Overview ¶
Package discovery contains functionality to discover the type of etcd used in back up and restore operations as well as what Kubernetes distro is used.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProbeEtcd ¶
ProbeEtcd probes an endpoint at path /version to figure which version of etcd it is and in which mode (secure or insecure) it is used. Example:
version, secure, err := ProbeEtcd("http://localhost:2379")
func ProbeKubernetesDistro ¶
func ProbeKubernetesDistro(endpoint string) (types.KubernetesDistro, error)
ProbeKubernetesDistro probes an etcd cluster for which Kubernetes distribution is present by scanning the available keys. Example:
distro, err := ProbeKubernetesDistro("http://localhost:2379")
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.