secret

package
v0.0.0-...-40b5090 Latest Latest
Warning

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

Go to latest
Published: May 14, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SMSecretPath - Secret Manager path to latest secret version
	SMSecretPath = "projects/%s/secrets/%s/versions/latest" // %s - project id, %s - secret name
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(projectName string, credentials string) (*Client, error)

func (*Client) GetSecretDataLatest

func (c *Client) GetSecretDataLatest(secretName string) ([]byte, error)

Jump to

Keyboard shortcuts

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