harness-drone/drone/server/setup.go

30 lines
664 B
Go
Raw Normal View History

2017-05-03 21:25:33 +00:00
// +build !enterprise
package server
import (
2017-05-04 00:02:08 +00:00
"github.com/cncd/queue"
"github.com/drone/drone/model"
2017-05-03 21:25:33 +00:00
"github.com/drone/drone/store"
"github.com/drone/drone/store/datastore"
"github.com/urfave/cli"
)
func setupStore(c *cli.Context) store.Store {
return datastore.New(
c.String("driver"),
c.String("datasource"),
)
}
2017-05-04 00:02:08 +00:00
func setupQueue(c *cli.Context, s store.Store) queue.Queue {
return model.WithTaskStore(queue.New(), s)
}
2017-05-03 21:25:33 +00:00
func setupPubsub(c *cli.Context) {}
func setupStream(c *cli.Command) {}
func setupRegistryService(c *cli.Command) {}
func setupSecretService(c *cli.Command) {}
func setupGatingService(c *cli.Command) {}