secret

package
v0.9.15 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package secret contains helpers to access secrets in GCP secretmanager.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client to access secret on gcp secretmanager.

func New

func New(client *secretmanager.Client, project string) *Client

New creates client to access secret on gcp secretmanager.

func (*Client) GetSecret

func (s *Client) GetSecret(ctx context.Context, key string) (string, error)

GetSecret get the latest version of given key of secret.

Directories

Path Synopsis
Package main contains a manual test for secret manager.
Package main contains a manual test for secret manager.

Jump to

Keyboard shortcuts

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