etcd

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 2 more Imports: 16 Imported by: 0

Documentation

Overview

Package etcd implements `github.com/marmotedu/iam/internal/apiserver/store.Store` interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEtcdFactoryOr

func GetEtcdFactoryOr(opt *genericoptions.EtcdOptions, onKeepaliveFailure func()) (store.Factory, error)

GetEtcdFactoryOr create a etcdFactory store with given options.

Types

type EtcdCreateEventFunc

type EtcdCreateEventFunc func(ctx context.Context, key, value []byte)

EtcdCreateEventFunc defines etcd create event function handler.

type EtcdDeleteEventFunc

type EtcdDeleteEventFunc func(ctx context.Context, key []byte)

EtcdDeleteEventFunc defines etcd delete event function handler.

type EtcdKeyValue

type EtcdKeyValue struct {
	Key   string
	Value []byte
}

EtcdKeyValue defines etcd returned key-value pairs.

type EtcdModifyEventFunc

type EtcdModifyEventFunc func(ctx context.Context, key, oldvalue, value []byte)

EtcdModifyEventFunc defines etcd update event function handler.

type EtcdWatcher

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

EtcdWatcher defines a etcd watcher.

func (*EtcdWatcher) Cancel

func (w *EtcdWatcher) Cancel()

Cancel cancel etcd client.

Jump to

Keyboard shortcuts

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