Exemplo n.º 1
0
func (d *daemon) initContext() (datastore.Context, error) {
	datastore.Register(d.dsDriver)
	ctx := datastore.Get()
	if ctx == nil {
		return nil, errors.New("context not available")
	}
	return ctx, nil
}
Exemplo n.º 2
0
func (s *S) SetUpTest(c *C) {
	s.ElasticTest.SetUpTest(c)
	datastore.Register(s.Driver())
	s.ctx = datastore.Get()
	s.hs = NewStore()
}
Exemplo n.º 3
0
func (s *S) SetUpTest(c *C) {
	datastore.Register(s.Driver())
	s.ctx = datastore.Get()
}