// ReplaceStore replaces the store used by the manager. func ReplaceStore(state *state.State, store StoreService) { state.Cache(cachedStoreKey{}, store) }
// ReplaceDB replaces the assertion database used by the manager. func ReplaceDB(state *state.State, db *asserts.Database) { state.Cache(cachedDBKey{}, db) }