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

Method SetClusterVariable

datasource/etcd_datasource.go:152–158  ·  view source on GitHub ↗

SetClusterVariable sets a cluster variable inside etcd

(key string, value string)

Source from the content-addressed store, hash-verified

150
151// SetClusterVariable sets a cluster variable inside etcd
152func (ds *EtcdDataSource) SetClusterVariable(key string, value string) error {
153 err := validateVariable(key, value)
154 if err != nil {
155 return err
156 }
157 return ds.set(ds.prefixifyForClusterVariables(key), value)
158}
159
160// DeleteClusterVariable deletes a cluster variable
161func (ds *EtcdDataSource) DeleteClusterVariable(key string) error {

Callers 1

NewEtcdDataSourceFunction · 0.95

Calls 3

setMethod · 0.95
validateVariableFunction · 0.85

Tested by

no test coverage detected