Documentation ¶
Index ¶
- type Service
- func (s *Service) Decrypt(ctx context.Context, payload []byte, secret string) ([]byte, error)
- func (s *Service) DecryptJsonData(ctx context.Context, sjd map[string][]byte, secret string) (map[string]string, error)
- func (s *Service) Encrypt(ctx context.Context, payload []byte, secret string) ([]byte, error)
- func (s *Service) EncryptJsonData(ctx context.Context, kv map[string]string, secret string) (map[string][]byte, error)
- func (s *Service) GetDecryptedValue(ctx context.Context, sjd map[string][]byte, key, fallback, secret string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service must not be used for encryption. Use secrets.Service implementing envelope encryption instead.
func ProvideEncryptionService ¶
func ProvideEncryptionService( tracer tracing.Tracer, provider encryption.Provider, usageMetrics usagestats.Service, cfg *setting.Cfg, ) (*Service, error)
func SetupTestService ¶
func (*Service) DecryptJsonData ¶
func (*Service) EncryptJsonData ¶
Click to show internal directories.
Click to hide internal directories.