(format string, a ...interface{})
| 262 | } |
| 263 | |
| 264 | func (b *Badger) getKey(format string, a ...interface{}) []byte { |
| 265 | resourcePath := fmt.Sprintf(format, a...) |
| 266 | fullPath := fmt.Sprintf("podsync/v%d/%s", CurrentVersion, resourcePath) |
| 267 | |
| 268 | return []byte(fullPath) |
| 269 | } |
| 270 | |
| 271 | func (b *Badger) setObj(txn *badger.Txn, key []byte, obj interface{}, overwrite bool) error { |
| 272 | if !overwrite { |
no outgoing calls
no test coverage detected