Gsm
A simple golang package for accessing secrets on Google Cloud Secret Manager.
Install / Use
/learn @kioie/GsmREADME
A simple golang package for reading, writing, deleting, storing and editing secrets on Google Cloud Secret Manager.
With extensive test coverage and benchmarks.
Features
- Lightweight and fast
- Native Go implementation.
- Context based client authorization
- Integrated API wrapper
- Improved API error handlers
- Improved CRUD operations on GCP Secrets
Installation
Install the package to your $GOPATH with the go tool from shell:
$ go get github.com/kioie/gcp-secret-manager
Requirements
gcp-secret-manager package tested against Go >= 1.13.x.
Usage
Import the gcp-secret-manager package
import "github.com/kioie/gcp-secret-manager"
Declare global variable ProjectID
ProjectID="<your-project-id>"
Example
package main
import (
"fmt"
"github.com/kioie/gcp-secret-manager"
)
func main() {
//Declare ProjectID
ProjectID = "secret-manager-test"
//Check if "my-secret" exists
fmt.Println(gcp_secret_manager.SecretExists("my-secret"))
//Get the secret
result, _ := gcp_secret_manager.GetSecret("my-secret", "")
fmt.Println(result)
}
Contributors
<a href="https://github.com/kioie/gcp-secret-manager/graphs/contributors"> <img src="https://contributors-img.web.app/image?repo=kioie/gcp-secret-manager" /> </a>Copyright
Copyright © 2020 Eddy Kioi
Go GCP-SECRET-MANAGER package released under Apache License .
Related Skills
tmux
347.2kRemote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output.
xurl
347.2kA CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.
diffs
347.2kUse the diffs tool to produce real, shareable diffs (viewer URL, file artifact, or both) instead of manual edit summaries.
terraform-provider-genesyscloud
Terraform Provider Genesyscloud

