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

Method delete

datasource/etcd_datasource.go:108–113  ·  view source on GitHub ↗

delete expects absolute key path

(keyPath string)

Source from the content-addressed store, hash-verified

106
107// delete expects absolute key path
108func (ds *EtcdDataSource) delete(keyPath string) error {
109 ctx, cancel := context.WithTimeout(context.Background(), 3*time.Second)
110 defer cancel()
111 _, err := ds.keysAPI.Delete(ctx, keyPath, nil)
112 return err
113}
114
115// GetClusterVariable returns a cluster variables with the given name
116func (ds *EtcdDataSource) GetClusterVariable(key string) (string, error) {

Callers 3

DeleteClusterVariableMethod · 0.95
selfDeleteMethod · 0.80
controllers.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected