etcdutil

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2019 License: Apache-2.0, MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefragDataPeriodically

func DefragDataPeriodically(stopCh <-chan struct{}, tlsConfig *TLSConfig, defragmentationPeriod, etcdConnectionTimeout time.Duration, callback func())

DefragDataPeriodically defragments the data directory of each etcd member.

func GetTLSClientForEtcd

func GetTLSClientForEtcd(tlsConfig *TLSConfig) (*clientv3.Client, error)

GetTLSClientForEtcd creates an etcd client using the TLS config params.

Types

type TLSConfig

type TLSConfig struct {
	// contains filtered or unexported fields
}

TLSConfig holds cert information and settings for TLS.

func NewTLSConfig

func NewTLSConfig(cert, key, caCert string, insecureTr, skipVerify bool, endpoints []string) *TLSConfig

NewTLSConfig returns the TLSConfig object.

Jump to

Keyboard shortcuts

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