Documentation ¶
Index ¶
- type SecretsService
- func (s *SecretsService) CurrentProviderID() string
- 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) EncryptJsonDataWithDBSession(ctx context.Context, kv map[string]string, opt secrets.EncryptionOptions, ...) (map[string][]byte, error)
- func (s *SecretsService) EncryptWithDBSession(ctx context.Context, payload []byte, opt secrets.EncryptionOptions, ...) ([]byte, error)
- func (s *SecretsService) GetDecryptedValue(ctx context.Context, sjd map[string][]byte, key, fallback string) string
- func (s *SecretsService) GetProviders() map[string]secrets.Provider
- func (s *SecretsService) RegisterProvider(providerID string, provider secrets.Provider)
Constants ¶
This section is empty.
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, ) (*SecretsService, error)
func SetupTestService ¶
func SetupTestService(tb testing.TB, store secrets.Store) *SecretsService
func (*SecretsService) CurrentProviderID ¶
func (s *SecretsService) CurrentProviderID() string
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) EncryptJsonDataWithDBSession ¶
func (*SecretsService) EncryptWithDBSession ¶
func (s *SecretsService) EncryptWithDBSession(ctx context.Context, payload []byte, opt secrets.EncryptionOptions, sess *xorm.Session) ([]byte, error)
func (*SecretsService) GetDecryptedValue ¶
func (*SecretsService) GetProviders ¶
func (s *SecretsService) GetProviders() map[string]secrets.Provider
func (*SecretsService) RegisterProvider ¶
func (s *SecretsService) RegisterProvider(providerID string, provider secrets.Provider)
Click to show internal directories.
Click to hide internal directories.