set expects absolute key path
(keyPath string, value string)
| 98 | |
| 99 | // set expects absolute key path |
| 100 | func (ds *EtcdDataSource) set(keyPath string, value string) error { |
| 101 | ctx, cancel := context.WithTimeout(context.Background(), 3*time.Second) |
| 102 | defer cancel() |
| 103 | _, err := ds.keysAPI.Set(ctx, keyPath, value, nil) |
| 104 | return err |
| 105 | } |
| 106 | |
| 107 | // delete expects absolute key path |
| 108 | func (ds *EtcdDataSource) delete(keyPath string) error { |
no outgoing calls
no test coverage detected