예제 #1
0
파일: snapmgr.go 프로젝트: clobrano/snappy
// ReplaceStore replaces the store used by the manager.
func ReplaceStore(state *state.State, store StoreService) {
	state.Cache(cachedStoreKey{}, store)
}
예제 #2
0
파일: assertmgr.go 프로젝트: niemeyer/snapd
// ReplaceDB replaces the assertion database used by the manager.
func ReplaceDB(state *state.State, db *asserts.Database) {
	state.Cache(cachedDBKey{}, db)
}