util

package
v1.6.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package util holds generic etcd-related utility functions that any user of ectd might want to use, without pulling in kubernetes-specific code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EtcdHealthCheck

func EtcdHealthCheck(data []byte) error

func GetEtcdVersion

func GetEtcdVersion(host string) (string, error)

GetEtcdVersion performs a version check against the provided Etcd server, returning the string response, and error (if any).

func IsEtcdNodeExist

func IsEtcdNodeExist(err error) bool

IsEtcdNodeExist returns true if and only if err is an etcd node already exist error.

func IsEtcdNotFound

func IsEtcdNotFound(err error) bool

IsEtcdNotFound returns true if and only if err is an etcd not found error.

func IsEtcdTestFailed

func IsEtcdTestFailed(err error) bool

IsEtcdTestFailed returns true if and only if err is an etcd write conflict.

func IsEtcdUnreachable

func IsEtcdUnreachable(err error) bool

IsEtcdUnreachable returns true if and only if err indicates the server could not be reached.

func IsEtcdWatchExpired

func IsEtcdWatchExpired(err error) bool

IsEtcdWatchExpired returns true if and only if err indicates the watch has expired.

Types

This section is empty.

Jump to

Keyboard shortcuts

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