MCPcopy Create free account
hub / github.com/cortexproject/cortex / CAS

Method CAS

pkg/ring/kv/consul/client.go:56–56  ·  view source on GitHub ↗
(p *consul.KVPair, q *consul.WriteOptions)

Source from the content-addressed store, hash-verified

54
55type kv interface {
56 CAS(p *consul.KVPair, q *consul.WriteOptions) (bool, *consul.WriteMeta, error)
57 Get(key string, q *consul.QueryOptions) (*consul.KVPair, *consul.QueryMeta, error)
58 List(path string, q *consul.QueryOptions) (consul.KVPairs, *consul.QueryMeta, error)
59 Delete(key string, q *consul.WriteOptions) (*consul.WriteMeta, error)

Callers 11

Test_CAS_ErrorNoRetryFunction · 0.65
Test_CAS_BackoffFunction · 0.65
Test_CAS_FailedFunction · 0.65
Test_CAS_UpdateFunction · 0.65
Test_CAS_DeleteFunction · 0.65
Test_CAS_Update_DeleteFunction · 0.65
Test_CAS_UpdateStaleFunction · 0.65
CASMethod · 0.65
casMethod · 0.65
casWithErrFunction · 0.65
CASMethod · 0.65

Implementers 3

mockKVpkg/ring/kv/consul/mock.go
consulInstrumentationpkg/ring/kv/consul/metrics.go
Clientpkg/ring/kv/consul/client.go

Calls

no outgoing calls

Tested by 8

Test_CAS_ErrorNoRetryFunction · 0.52
Test_CAS_BackoffFunction · 0.52
Test_CAS_FailedFunction · 0.52
Test_CAS_UpdateFunction · 0.52
Test_CAS_DeleteFunction · 0.52
Test_CAS_Update_DeleteFunction · 0.52
Test_CAS_UpdateStaleFunction · 0.52
casWithErrFunction · 0.52