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

Method SetVariable

datasource/etcd_machine.go:235–241  ·  view source on GitHub ↗

SetVariable sets the value of the specified key

(key, value string)

Source from the content-addressed store, hash-verified

233
234// SetVariable sets the value of the specified key
235func (m *etcdMachineInterface) SetVariable(key, value string) error {
236 err := validateVariable(key, value)
237 if err != nil {
238 return err
239 }
240 return m.selfSet(key, value)
241}
242
243// DeleteVariable erases the entry specified by key
244func (m *etcdMachineInterface) DeleteVariable(key string) error {

Callers

nothing calls this directly

Calls 2

selfSetMethod · 0.95
validateVariableFunction · 0.85

Tested by

no test coverage detected