The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
grafana/pkg/services/encryption/provider/provider.go

24 lines
564 B

package provider
import (
"github.com/grafana/grafana/pkg/services/encryption"
)
type Provider struct{}
func ProvideEncryptionProvider() Provider {
return Provider{}
}
func (p Provider) ProvideCiphers() map[string]encryption.Cipher {
return map[string]encryption.Cipher{
encryption.AesCfb: aesCfbCipher{},
}
}
func (p Provider) ProvideDeciphers() map[string]encryption.Decipher {
return map[string]encryption.Decipher{
encryption.AesCfb: aesDecipher{algorithm: encryption.AesCfb},
encryption.AesGcm: aesDecipher{algorithm: encryption.AesGcm},
}
}