Documentation ¶
Overview ¶
Package secretmanager contains samples for Secret Manager which securely stores and provides access to API keys, passwords, certificates, and other sensitive data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConsumeEventNotification ¶
func ConsumeEventNotification(ctx context.Context, m PubSubMessage) (string, error)
ConsumeEventNotification demonstrates how to consume and process the Pub/Sub notification from Secret Manager.
Types ¶
type PubSubAttributes ¶
type PubSubAttributes struct { SecretId string `json:"secretId"` EventType string `json:"eventType"` }
PubSubAttributes are attributes from the Pub/Sub event.
type PubSubMessage ¶
type PubSubMessage struct { Attributes PubSubAttributes `json:"attributes"` Data []byte `json:"data"` }
PubSubMessage is the payload of a Pub/Sub event.
Source Files ¶
- access_secret_version.go
- add_secret_version.go
- consume_event_notification.go
- create_secret.go
- create_secret_with_annotations.go
- create_secret_with_labels.go
- create_secret_with_user_managed_replication.go
- create_update_secret_label.go
- delete_secret.go
- delete_secret_label.go
- delete_secret_with_etag.go
- destroy_secret_version.go
- destroy_secret_version_with_etag.go
- disable_secret_version.go
- disable_secret_version_with_etag.go
- doc.go
- edit_secret_annotations.go
- enable_secret_version.go
- enable_secret_version_with_etag.go
- get_secret.go
- get_secret_version.go
- iam_grant_access.go
- iam_revoke_access.go
- list_secret_versions.go
- list_secret_versions_with_filter.go
- list_secrets.go
- list_secrets_with_filter.go
- update_secret.go
- update_secret_with_alias.go
- update_secret_with_etag.go
- view_secret_annotations.go
- view_secret_labels.go
Directories ¶
Path | Synopsis |
---|---|
Sample quickstart is a basic program that uses Secret Manager.
|
Sample quickstart is a basic program that uses Secret Manager. |
Sample quickstart is a basic program that uses Secret Manager.
|
Sample quickstart is a basic program that uses Secret Manager. |
Click to show internal directories.
Click to hide internal directories.