etcdstoreadapter

package
v0.0.0-...-6ec3e4f Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2017 License: Apache-2.0 Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewETCDTLSClient

func NewETCDTLSClient(options *ETCDOptions) (*etcd.Client, error)

Types

type ETCDFlags

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

func AddFlags

func AddFlags(flagSet *flag.FlagSet) *ETCDFlags

func (*ETCDFlags) Validate

func (flags *ETCDFlags) Validate() (*ETCDOptions, error)

type ETCDOptions

type ETCDOptions struct {
	CertFile     string
	KeyFile      string
	CAFile       string
	ClusterUrls  []string
	IsSSL        bool
	MaxIdleConns int
}

type ETCDStoreAdapter

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

func New

func New(options *ETCDOptions, workPool *workpool.WorkPool) (*ETCDStoreAdapter, error)

func (*ETCDStoreAdapter) CompareAndDelete

func (adapter *ETCDStoreAdapter) CompareAndDelete(nodes ...storeadapter.StoreNode) error

func (*ETCDStoreAdapter) CompareAndDeleteByIndex

func (adapter *ETCDStoreAdapter) CompareAndDeleteByIndex(nodes ...storeadapter.StoreNode) error

func (*ETCDStoreAdapter) CompareAndSwap

func (adapter *ETCDStoreAdapter) CompareAndSwap(oldNode storeadapter.StoreNode, newNode storeadapter.StoreNode) error

func (*ETCDStoreAdapter) CompareAndSwapByIndex

func (adapter *ETCDStoreAdapter) CompareAndSwapByIndex(oldNodeIndex uint64, newNode storeadapter.StoreNode) error

func (*ETCDStoreAdapter) Connect

func (adapter *ETCDStoreAdapter) Connect() error

func (*ETCDStoreAdapter) Create

func (adapter *ETCDStoreAdapter) Create(node storeadapter.StoreNode) error

func (*ETCDStoreAdapter) Delete

func (adapter *ETCDStoreAdapter) Delete(keys ...string) error

func (*ETCDStoreAdapter) DeleteLeaves

func (adapter *ETCDStoreAdapter) DeleteLeaves(keys ...string) error

func (*ETCDStoreAdapter) Disconnect

func (adapter *ETCDStoreAdapter) Disconnect() error

func (*ETCDStoreAdapter) Get

func (adapter *ETCDStoreAdapter) Get(key string) (storeadapter.StoreNode, error)

func (*ETCDStoreAdapter) ListRecursively

func (adapter *ETCDStoreAdapter) ListRecursively(key string) (storeadapter.StoreNode, error)

func (*ETCDStoreAdapter) MaintainNode

func (adapter *ETCDStoreAdapter) MaintainNode(storeNode storeadapter.StoreNode) (<-chan bool, chan (chan bool), error)

func (*ETCDStoreAdapter) SetMulti

func (adapter *ETCDStoreAdapter) SetMulti(nodes []storeadapter.StoreNode) error

func (*ETCDStoreAdapter) Update

func (adapter *ETCDStoreAdapter) Update(node storeadapter.StoreNode) error

func (*ETCDStoreAdapter) UpdateDirTTL

func (adapter *ETCDStoreAdapter) UpdateDirTTL(key string, ttl uint64) error

func (*ETCDStoreAdapter) Watch

func (adapter *ETCDStoreAdapter) Watch(key string) (<-chan storeadapter.WatchEvent, chan<- bool, <-chan error)

Jump to

Keyboard shortcuts

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