gcloud

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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) Close

func (s *Store) Close() error

Close the google cloud storage backend.

func (*Store) GetCertificate

func (s *Store) GetCertificate(ctx context.Context, id string) (cert []byte, err error)

GetCertificate retrieves a certificate by id from the google cloud storage backend.

func (*Store) GetPassword

func (s *Store) GetPassword(ctx context.Context, id string) (password []byte, err error)

GetPassword retrieves a password by id from the google cloud storage backend.

func (*Store) UpdateCertificate

func (s *Store) UpdateCertificate(ctx context.Context, id string, cert []byte) (err error)

UpdateCertificate updates a certificate by id in the google cloud storage backend.

func (*Store) UpdatePassword

func (s *Store) UpdatePassword(ctx context.Context, id string, password []byte) (err error)

UpdatePassword updates a password by id in the google cloud storage backend.

type StoreOption

type StoreOption func(s *Store) error

StoreOption allows us to configure the store when it is created.

func WithClient

func WithClient(client secrets.SecretManagerClient) StoreOption

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL