package util
import "k8s.io/apiserver/pkg/storage/etcd/util"
Package util holds generic etcd-related utility functions that any user of ectd might want to use, without pulling in kubernetes-specific code.
Index ¶
- func EtcdHealthCheck(data []byte) error
- func GetEtcdVersion(host string) (string, error)
- func IsEtcdNodeExist(err error) bool
- func IsEtcdNotFound(err error) bool
- func IsEtcdTestFailed(err error) bool
- func IsEtcdUnreachable(err error) bool
- func IsEtcdWatchExpired(err error) bool
Functions ¶
func EtcdHealthCheck ¶
func GetEtcdVersion ¶
GetEtcdVersion performs a version check against the provided Etcd server, returning the string response, and error (if any).
func IsEtcdNodeExist ¶
IsEtcdNodeExist returns true if and only if err is an etcd node already exist error.
func IsEtcdNotFound ¶
IsEtcdNotFound returns true if and only if err is an etcd not found error.
func IsEtcdTestFailed ¶
IsEtcdTestFailed returns true if and only if err is an etcd write conflict.
func IsEtcdUnreachable ¶
IsEtcdUnreachable returns true if and only if err indicates the server could not be reached.
func IsEtcdWatchExpired ¶
IsEtcdWatchExpired returns true if and only if err indicates the watch has expired.
Source Files ¶
doc.go etcd_util.go
- Version
- v0.15.7
- Published
- Dec 11, 2019
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 9 minutes ago –
Tools for package owners.