SetClusterVariable sets a cluster variable inside etcd
(key string, value string)
| 150 | |
| 151 | // SetClusterVariable sets a cluster variable inside etcd |
| 152 | func (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 |
| 161 | func (ds *EtcdDataSource) DeleteClusterVariable(key string) error { |
no test coverage detected