MCPcopy Create free account
hub / github.com/cafebazaar/blacksmith / set

Method set

datasource/etcd_datasource.go:100–105  ·  view source on GitHub ↗

set expects absolute key path

(keyPath string, value string)

Source from the content-addressed store, hash-verified

98
99// set expects absolute key path
100func (ds *EtcdDataSource) set(keyPath string, value string) error {
101 ctx, cancel := context.WithTimeout(context.Background(), 3*time.Second)
102 defer cancel()
103 _, err := ds.keysAPI.Set(ctx, keyPath, value, nil)
104 return err
105}
106
107// delete expects absolute key path
108func (ds *EtcdDataSource) delete(keyPath string) error {

Callers 15

SetClusterVariableMethod · 0.95
selfSetMethod · 0.80
controllers.jsFile · 0.80
showHideFunction · 0.80
css.jsFile · 0.80
dataAttrFunction · 0.80
data.jsFile · 0.80
setGlobalEvalFunction · 0.80
cloneCopyEventFunction · 0.80
Tween.jsFile · 0.80
Data.jsFile · 0.80
classes.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected