mirror of
https://github.com/harness/drone.git
synced 2025-05-05 16:59:32 +08:00
32 lines
688 B
Go
32 lines
688 B
Go
package execution
|
|
|
|
import (
|
|
"github.com/harness/gitness/internal/auth/authz"
|
|
"github.com/harness/gitness/internal/store"
|
|
"github.com/jmoiron/sqlx"
|
|
)
|
|
|
|
type Controller struct {
|
|
db *sqlx.DB
|
|
authorizer authz.Authorizer
|
|
executionStore store.ExecutionStore
|
|
repoStore store.RepoStore
|
|
spaceStore store.SpaceStore
|
|
}
|
|
|
|
func NewController(
|
|
db *sqlx.DB,
|
|
authorizer authz.Authorizer,
|
|
executionStore store.ExecutionStore,
|
|
repoStore store.RepoStore,
|
|
spaceStore store.SpaceStore,
|
|
) *Controller {
|
|
return &Controller{
|
|
db: db,
|
|
authorizer: authorizer,
|
|
executionStore: executionStore,
|
|
repoStore: repoStore,
|
|
spaceStore: spaceStore,
|
|
}
|
|
}
|