Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nhatthm/go-secretstorage
Storing and retrieving secrets
https://github.com/nhatthm/go-secretstorage
go go-keyring golang keyring secret-storage secrets secretstorage
Last synced: 21 days ago
JSON representation
Storing and retrieving secrets
- Host: GitHub
- URL: https://github.com/nhatthm/go-secretstorage
- Owner: nhatthm
- License: mit
- Created: 2024-02-27T22:31:37.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-06-07T19:27:31.000Z (5 months ago)
- Last Synced: 2024-10-09T10:20:42.221Z (about 1 month ago)
- Topics: go, go-keyring, golang, keyring, secret-storage, secrets, secretstorage
- Language: Go
- Homepage:
- Size: 30.3 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Secret Storage
[![GitHub Releases](https://img.shields.io/github/v/release/nhatthm/go-secretstorage)](https://github.com/nhatthm/go-secretstorage/releases/latest)
[![Build Status](https://github.com/nhatthm/go-secretstorage/actions/workflows/test.yaml/badge.svg)](https://github.com/nhatthm/go-secretstorage/actions/workflows/test.yaml)
[![codecov](https://codecov.io/gh/nhatthm/go-secretstorage/branch/master/graph/badge.svg?token=eTdAgDE2vR)](https://codecov.io/gh/nhatthm/go-secretstorage)
[![Go Report Card](https://goreportcard.com/badge/go.nhat.io/secretstorage)](https://goreportcard.com/report/go.nhat.io/secretstorage)
[![GoDevDoc](https://img.shields.io/badge/dev-doc-00ADD8?logo=go)](https://pkg.go.dev/go.nhat.io/secretstorage)
[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/donate/?hosted_button_id=PJZSGJN57TDJY)A library for storing and retrieving secrets.
## Prerequisites
- `Go >= 1.21`
## Install
```bash
go get go.nhat.io/secretstorage
```## Usage
```go
package mainimport (
"fmt""go.nhat.io/secretstorage"
)func main() {
ss := secretstorage.NewKeyringStorage[string]()err := ss.Set("service", "key", "value")
if err != nil {
panic(err)
}value, err := ss.Get("service", "key")
if err != nil {
panic(err)
}fmt.Println(value)
}
```## Donation
If this project help you reduce time to develop, you can give me a cup of coffee :)
### Paypal donation
[![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/donate/?hosted_button_id=PJZSGJN57TDJY)
or scan this