Documentation ¶
Index ¶
- Constants
- type SecretsService
- func (s *SecretsService) Decrypt(ctx context.Context, payload []byte) ([]byte, error)
- func (s *SecretsService) DecryptJsonData(ctx context.Context, sjd map[string][]byte) (map[string]string, error)
- func (s *SecretsService) Encrypt(ctx context.Context, payload []byte, opt secrets.EncryptionOptions) ([]byte, error)
- func (s *SecretsService) EncryptJsonData(ctx context.Context, kv map[string]string, opt secrets.EncryptionOptions) (map[string][]byte, error)
- func (s *SecretsService) GetDecryptedValue(ctx context.Context, sjd map[string][]byte, key, fallback string) string
- func (s *SecretsService) GetProviders() map[secrets.ProviderID]secrets.Provider
- func (s *SecretsService) InitProviders() (err error)
- func (s *SecretsService) ReEncryptDataKeys(ctx context.Context) error
- func (s *SecretsService) RotateDataKeys(ctx context.Context) error
- func (s *SecretsService) Run(ctx context.Context) error
Constants ¶
View Source
const ( OpEncrypt = "encrypt" OpDecrypt = "decrypt" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SecretsService ¶
type SecretsService struct {
// contains filtered or unexported fields
}
func ProvideSecretsService ¶
func ProvideSecretsService( store secrets.Store, kmsProvidersService kmsproviders.Service, enc encryption.Internal, settings setting.Provider, features featuremgmt.FeatureToggles, usageStats usagestats.Service, ) (*SecretsService, error)
func SetupDisabledTestService ¶
func SetupDisabledTestService(tb testing.TB, store secrets.Store) *SecretsService
func SetupTestService ¶
func SetupTestService(tb testing.TB, store secrets.Store) *SecretsService
func (*SecretsService) DecryptJsonData ¶
func (*SecretsService) Encrypt ¶
func (s *SecretsService) Encrypt(ctx context.Context, payload []byte, opt secrets.EncryptionOptions) ([]byte, error)
func (*SecretsService) EncryptJsonData ¶
func (s *SecretsService) EncryptJsonData(ctx context.Context, kv map[string]string, opt secrets.EncryptionOptions) (map[string][]byte, error)
func (*SecretsService) GetDecryptedValue ¶
func (*SecretsService) GetProviders ¶
func (s *SecretsService) GetProviders() map[secrets.ProviderID]secrets.Provider
func (*SecretsService) InitProviders ¶
func (s *SecretsService) InitProviders() (err error)
func (*SecretsService) ReEncryptDataKeys ¶
func (s *SecretsService) ReEncryptDataKeys(ctx context.Context) error
func (*SecretsService) RotateDataKeys ¶
func (s *SecretsService) RotateDataKeys(ctx context.Context) error
Click to show internal directories.
Click to hide internal directories.