secrets

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Context context.Context
	// contains filtered or unexported fields
}

Client for secrets helper

func New

func New(projectID string) (Client, error)

New secrets helper

func (*Client) CreateNewSecret

func (c *Client) CreateNewSecret(secretID string, payload []byte) (*secretmanagerpb.SecretVersion, error)

CreateNewSecret creates a new secret

func (*Client) GetSecretVersion

func (c *Client) GetSecretVersion(secretName string, versionNumber int) ([]byte, error)

GetSecretVersion gets an existing version of secret

Jump to

Keyboard shortcuts

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