Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Iterator ¶
type Iterator interface {
Next() (*secretmanagerpb.Secret, error)
}
Wrappers and abstracting types to facilitate mocking the client responses
type SecretInfo ¶
type SecretsManagerClientWrapper ¶
type SecretsManagerClientWrapper struct { Closer func() error SecretLister func(ctx context.Context, req *secretmanagerpb.ListSecretsRequest, opts ...gax.CallOption) Iterator }
func (*SecretsManagerClientWrapper) Close ¶
func (w *SecretsManagerClientWrapper) Close() error
func (*SecretsManagerClientWrapper) ListSecrets ¶
func (w *SecretsManagerClientWrapper) ListSecrets(ctx context.Context, req *secretmanagerpb.ListSecretsRequest, opts ...gax.CallOption) Iterator
type SecretsService ¶
type SecretsService struct {
Client *SecretsManagerClientWrapper
}
func New ¶
func New(client *secretmanager.Client) SecretsService
New function to facilitate using the ss client
func (*SecretsService) Secrets ¶
func (ss *SecretsService) Secrets(projectID string) ([]SecretInfo, error)
Click to show internal directories.
Click to hide internal directories.