delete expects absolute key path
(keyPath string)
| 106 | |
| 107 | // delete expects absolute key path |
| 108 | func (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 |
| 116 | func (ds *EtcdDataSource) GetClusterVariable(key string) (string, error) { |
no outgoing calls
no test coverage detected