Categorygithub.com/rotationalio/knock
modulepackage
0.0.0-20210616204744-7a92ad41fd96
Repository: https://github.com/rotationalio/knock.git
Documentation: pkg.go.dev

# README

knock

Demonstration of interacting with the Google Secrets Manager API using Go

# Packages

No description provided by the author

# Functions

AccessSecretVersion returns the payload for the given secret version if one exists.
AddSecretVersion adds a new secret version to the given secret path with the provided payload.
CreateSecret creates a new secret in the Google Cloud Manager top- level directory, specified as `parent`, using the `secretID` provided as the name, to expire after `expiration` seconds.
DeleteSecret deletes the secret with the given `name`, and all of its versions.
Knock checks to make sure we can create a new client.
ListSecrets retrieves the names of all secrets in the project, given the `parent`, e.g.: "projects/my-project" It returns a slice of strings representing the paths to the retrieved secrets, and a matching slice of errors for each failed retrieval.