discovery

package
v0.2.3-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

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

func ProbeEtcd(endpoint string) (string, bool, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL