mirror of https://github.com/grafana/grafana.git
28 lines
944 B
Go
28 lines
944 B
Go
|
//go:build wireinject && oss
|
||
|
// +build wireinject,oss
|
||
|
|
||
|
package runner
|
||
|
|
||
|
import (
|
||
|
"github.com/google/wire"
|
||
|
"github.com/grafana/grafana/pkg/registry"
|
||
|
"github.com/grafana/grafana/pkg/services/encryption"
|
||
|
"github.com/grafana/grafana/pkg/services/encryption/ossencryption"
|
||
|
"github.com/grafana/grafana/pkg/services/kmsproviders"
|
||
|
"github.com/grafana/grafana/pkg/services/kmsproviders/osskmsproviders"
|
||
|
"github.com/grafana/grafana/pkg/services/sqlstore/migrations"
|
||
|
"github.com/grafana/grafana/pkg/setting"
|
||
|
)
|
||
|
|
||
|
var wireExtsSet = wire.NewSet(
|
||
|
wireSet,
|
||
|
migrations.ProvideOSSMigrations,
|
||
|
wire.Bind(new(registry.DatabaseMigrator), new(*migrations.OSSMigrations)),
|
||
|
setting.ProvideProvider,
|
||
|
wire.Bind(new(setting.Provider), new(*setting.OSSImpl)),
|
||
|
osskmsproviders.ProvideService,
|
||
|
wire.Bind(new(kmsproviders.Service), new(osskmsproviders.Service)),
|
||
|
ossencryption.ProvideService,
|
||
|
wire.Bind(new(encryption.Internal), new(*ossencryption.Service)),
|
||
|
)
|