MCPcopy
hub / github.com/etcd-io/etcd / CompareAndSwap

Method CompareAndSwap

server/etcdserver/api/v2store/store.go:50–50  ·  view source on GitHub ↗
(nodePath string, prevValue string, prevIndex uint64,
		value string, expireOpts TTLOptionSet)

Source from the content-addressed store, hash-verified

48 Create(nodePath string, dir bool, value string, unique bool,
49 expireOpts TTLOptionSet) (*Event, error)
50 CompareAndSwap(nodePath string, prevValue string, prevIndex uint64,
51 value string, expireOpts TTLOptionSet) (*Event, error)
52 Delete(nodePath string, dir, recursive bool) (*Event, error)
53 CompareAndDelete(nodePath string, prevValue string, prevIndex uint64) (*Event, error)

Implementers 2

storeserver/etcdserver/api/v2store/store.go
storeRecorderserver/mock/mockstore/store_recorder.g

Calls

no outgoing calls