secretservice

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 6 Imported by: 0

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 SecretInfo struct {
	Name         string            `json:"name"`
	ProjectID    string            `json:"projectID"`
	CreationTime string            `json:"creationTime"`
	Labels       map[string]string `json:"labels"`
	Rotation     string            `json:"rotation,omitempty"`
}

type SecretsManagerClientWrapper

type SecretsManagerClientWrapper struct {
	Closer       func() error
	SecretLister func(ctx context.Context, req *secretmanagerpb.ListSecretsRequest, opts ...gax.CallOption) Iterator
}

func (*SecretsManagerClientWrapper) Close

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)

Jump to

Keyboard shortcuts

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