secret

package
v0.5.0-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GSMSecretAccessor

type GSMSecretAccessor struct {
	// contains filtered or unexported fields
}

GSMSecretAccessor returns an accessor to retrieve decrypted credential for the provided GSM secret specification.

func NewGSMSecretAccessor

func NewGSMSecretAccessor(projectId, secretId, version string) *GSMSecretAccessor

NewGSMSecretAccessor returns a Google Secret Manager secret accessor.

func (*GSMSecretAccessor) Clear

func (g *GSMSecretAccessor) Clear()

Clear cleans up the cached value.

func (*GSMSecretAccessor) Get

func (g *GSMSecretAccessor) Get(ctx context.Context) (string, error)

Get returns the decrypted value of this secret and cache it for later invocation.

Jump to

Keyboard shortcuts

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