Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataSourceSecretMigrationService ¶
type DataSourceSecretMigrationService struct {
// contains filtered or unexported fields
}
func ProvideDataSourceMigrationService ¶
func ProvideDataSourceMigrationService( dataSourcesService datasources.DataSourceService, kvStore kvstore.KVStore, features featuremgmt.FeatureToggles, ) *DataSourceSecretMigrationService
type MigrateFromPluginService ¶
type MigrateFromPluginService struct {
// contains filtered or unexported fields
}
MigrateFromPluginService This migrator will handle migration of the configured plugin secrets back to Grafana unified secrets
type MigrateToPluginService ¶
type MigrateToPluginService struct {
// contains filtered or unexported fields
}
MigrateToPluginService This migrator will handle migration of datasource secrets (aka Unified secrets) into the plugin secrets configured
func ProvideMigrateToPluginService ¶
func ProvideMigrateToPluginService( secretsStore secretskvs.SecretsKVStore, cfg *setting.Cfg, sqlStore db.DB, secretsService secrets.Service, kvstore kvstore.KVStore, manager plugins.SecretsPluginManager, ) *MigrateToPluginService
type SecretMigrationProvider ¶
type SecretMigrationProviderImpl ¶
type SecretMigrationProviderImpl struct { ServerLockService *serverlock.ServerLockService // contains filtered or unexported fields }
func ProvideSecretMigrationProvider ¶
func ProvideSecretMigrationProvider( cfg *setting.Cfg, serverLockService *serverlock.ServerLockService, dataSourceSecretMigrationService *DataSourceSecretMigrationService, migrateToPluginService *MigrateToPluginService, migrateFromPluginService *MigrateFromPluginService, ) *SecretMigrationProviderImpl
func (*SecretMigrationProviderImpl) Migrate ¶
func (s *SecretMigrationProviderImpl) Migrate(ctx context.Context) error
Migrate Run migration services. This will block until all services have exited. This should only be called once at startup
func (*SecretMigrationProviderImpl) Run ¶
func (s *SecretMigrationProviderImpl) Run(ctx context.Context) error
func (*SecretMigrationProviderImpl) TriggerPluginMigration ¶
func (s *SecretMigrationProviderImpl) TriggerPluginMigration(ctx context.Context, toPlugin bool) error
TriggerPluginMigration Kick off a migration to or from the plugin. This will block until all services have exited.
type SecretMigrationService ¶
SecretMigrationService is used to migrate legacy secrets to new unified secrets.
Click to show internal directories.
Click to hide internal directories.