Documentation
¶
Overview ¶
Package secrets loads secrets from the Google Cloud Secret Manager.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config contains settings for secrets.
func (*Config) LoadSigner ¶
LoadSigner fetches the latest version of the named secret containing the JWT signer key from the Secret Manager API and returns a *token.Signer.
func (*Config) LoadVerifier ¶
LoadVerifier fetches all enabled versions of the named secret containing the JWT verifier keys and returns a * token.Verifier.
type SecretClient ¶
type SecretClient interface {
AccessSecretVersion(ctx context.Context, req *secretmanagerpb.AccessSecretVersionRequest, opts ...gax.CallOption) (*secretmanagerpb.AccessSecretVersionResponse, error)
ListSecretVersions(ctx context.Context, req *secretmanagerpb.ListSecretVersionsRequest, opts ...gax.CallOption) *secretmanager.SecretVersionIterator
}
SecretClient wraps the AccessSecretVersion function provided by the secretmanager.Client.
Click to show internal directories.
Click to hide internal directories.