Documentation ¶
Index ¶
- Constants
- func NewSecreteManager(logger logger.Logger) secretstores.SecretStore
- type GcpSecretManagerMetadata
- type Store
- func (s *Store) BulkGetSecret(ctx context.Context, req secretstores.BulkGetSecretRequest) (secretstores.BulkGetSecretResponse, error)
- func (s *Store) Close() error
- func (s *Store) Features() []secretstores.Feature
- func (s *Store) GetComponentMetadata() map[string]string
- func (s *Store) GetSecret(ctx context.Context, req secretstores.GetSecretRequest) (secretstores.GetSecretResponse, error)
- func (s *Store) Init(ctx context.Context, metadataRaw secretstores.Metadata) error
Constants ¶
View Source
const VersionID = "version_id"
Variables ¶
This section is empty.
Functions ¶
func NewSecreteManager ¶
func NewSecreteManager(logger logger.Logger) secretstores.SecretStore
NewSecreteManager returns new instance of `SecretManagerStore`.
Types ¶
type GcpSecretManagerMetadata ¶
type GcpSecretManagerMetadata struct { Type string `mapstructure:"type" json:"type"` ProjectID string `mapstructure:"project_id" json:"project_id"` PrivateKey string `mapstructure:"private_key" json:"private_key"` ClientEmail string `mapstructure:"client_email" json:"client_email"` PrivateKeyID string `mapstructure:"private_key_id" json:"private_key_id"` ClientID string `mapstructure:"client_id" json:"client_id"` AuthURI string `mapstructure:"auth_uri" json:"auth_uri"` TokenURI string `mapstructure:"token_uri" json:"token_uri"` AuthProviderCertURL string `mapstructure:"auth_provider_x509_cert_url" json:"auth_provider_x509_cert_url"` ClientCertURL string `mapstructure:"client_x509_cert_url" json:"client_x509_cert_url"` }
type Store ¶
type Store struct { ProjectID string // contains filtered or unexported fields }
Store contains and GCP secret manager client and project id.
func (*Store) BulkGetSecret ¶
func (s *Store) BulkGetSecret(ctx context.Context, req secretstores.BulkGetSecretRequest) (secretstores.BulkGetSecretResponse, error)
BulkGetSecret retrieves all secrets in the store and returns a map of decrypted string/string values.
func (*Store) Features ¶
func (s *Store) Features() []secretstores.Feature
Features returns the features available in this secret store.
func (*Store) GetComponentMetadata ¶
func (*Store) GetSecret ¶
func (s *Store) GetSecret(ctx context.Context, req secretstores.GetSecretRequest) (secretstores.GetSecretResponse, error)
GetSecret retrieves a secret using a key and returns a map of decrypted string.
Click to show internal directories.
Click to hide internal directories.