Documentation ¶
Index ¶
- type Store
- func (s *Store) Close() error
- func (s *Store) GetCertificate(ctx context.Context, id string) (cert []byte, err error)
- func (s *Store) GetPassword(ctx context.Context, id string) (password []byte, err error)
- func (s *Store) UpdateCertificate(ctx context.Context, id string, cert []byte) (err error)
- func (s *Store) UpdatePassword(ctx context.Context, id string, password []byte) (err error)
- type StoreOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store implements the store.Store interface for google cloud storage using secret manager
func Open ¶
func Open(conf config.GCPSecretsConfig, opts ...StoreOption) (store *Store, err error)
Open the google cloud storage backend.
func (*Store) GetCertificate ¶
GetCertificate retrieves a certificate by id from the google cloud storage backend.
func (*Store) GetPassword ¶
GetPassword retrieves a password by id from the google cloud storage backend.
func (*Store) UpdateCertificate ¶
UpdateCertificate updates a certificate by id in the google cloud storage backend.
type StoreOption ¶
StoreOption allows us to configure the store when it is created.
func WithClient ¶
func WithClient(client secrets.SecretManagerClient) StoreOption
Click to show internal directories.
Click to hide internal directories.