etcdutil

package
v0.30.1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefragmentData added in v0.29.0

func DefragmentData(defragCtx context.Context, clientMaintenance client.MaintenanceCloser, clientCluster client.ClusterCloser, etcdEndpoints []string, defragTimeout time.Duration, logger *logrus.Entry) error

DefragmentData calls the defragmentation on each etcd followers endPoints then calls the defragmentation on etcd leader endPoints.

func GetEtcdEndPointsSorted added in v0.29.0

func GetEtcdEndPointsSorted(ctx context.Context, clientMaintenance client.MaintenanceCloser, clientCluster client.ClusterCloser, etcdEndpoints []string, logger *logrus.Entry) ([]string, []string, error)

GetEtcdEndPointsSorted returns the etcd leaderEndpoints and etcd followerEndpoints.

func GetTLSClientForEtcd

func GetTLSClientForEtcd(tlsConfig *brtypes.EtcdConnectionConfig, options *client.Options) (*clientv3.Client, error)

GetTLSClientForEtcd creates an etcd client using the TLS config params.

func NewClientFactory added in v0.29.0

NewClientFactory returns the Factory using the supplied EtcdConnectionConfig.

func NewFactory added in v0.29.0

func NewFactory(cfg brtypes.EtcdConnectionConfig, opts ...client.Option) client.Factory

NewFactory returns a Factory that constructs new clients using the supplied ETCD client configuration.

func PerformDefragmentation added in v0.29.0

func PerformDefragmentation(defragCtx context.Context, client client.MaintenanceCloser, endpoint string, logger *logrus.Entry) error

PerformDefragmentation defragment the data directory of each etcd member.

func TakeAndSaveFullSnapshot added in v0.29.0

func TakeAndSaveFullSnapshot(ctx context.Context, client client.MaintenanceCloser, store brtypes.SnapStore, lastRevision int64, cc *compressor.CompressionConfig, suffix string, isFinal bool, logger *logrus.Entry) (*brtypes.Snapshot, error)

TakeAndSaveFullSnapshot takes full snapshot and save it to store

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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