secretmanager

package
v0.0.0-...-b4e5aa8 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

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.

Directories

Path Synopsis
Sample quickstart is a basic program that uses Secret Manager.
Sample quickstart is a basic program that uses Secret Manager.

Jump to

Keyboard shortcuts

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