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

Method Create

server/internal/clientv2/keys.go:115–115  ·  view source on GitHub ↗

Create is an alias for Set w/ PrevExist=false

(ctx context.Context, key, value string)

Source from the content-addressed store, hash-verified

113
114 // Create is an alias for Set w/ PrevExist=false
115 Create(ctx context.Context, key, value string) (*Response, error)
116
117 // CreateInOrder is used to atomically create in-order keys within the given directory.
118 CreateInOrder(ctx context.Context, dir, value string, opts *CreateInOrderOptions) (*Response, error)

Callers 15

mustCreateWALLogFunction · 0.65
saveCanvasFunction · 0.65
mvccPutFuncFunction · 0.65
createIssueIfNonExistFunction · 0.65
SelfCertFunction · 0.65
TestPurgeFileFunction · 0.65
writeFuncFunction · 0.65
openWALMethod · 0.65
TestGetLatestWalSnapFunction · 0.65
saveWALAndSnapMethod · 0.65

Implementers 1

httpKeysAPIserver/internal/clientv2/keys.go

Calls

no outgoing calls

Tested by 15

mustCreateWALLogFunction · 0.52
TestPurgeFileFunction · 0.52
writeFuncFunction · 0.52
TestGetLatestWalSnapFunction · 0.52
copyFileFunction · 0.52
TestStoreGetValueFunction · 0.52
TestStoreGetSortedFunction · 0.52
TestStoreCreateValueFunction · 0.52
TestStoreCreateDirectoryFunction · 0.52