https://github.com/nikoksr/doppler-go
A Go client for the Doppler API.
https://github.com/nikoksr/doppler-go
doppler doppler-api golang golang-sdk secret-management secrets
Last synced: 5 months ago
JSON representation
A Go client for the Doppler API.
- Host: GitHub
- URL: https://github.com/nikoksr/doppler-go
- Owner: nikoksr
- License: mit
- Archived: true
- Created: 2022-10-09T14:54:46.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-19T00:09:48.000Z (over 1 year ago)
- Last Synced: 2024-10-24T02:19:21.384Z (8 months ago)
- Topics: doppler, doppler-api, golang, golang-sdk, secret-management, secrets
- Language: Go
- Homepage:
- Size: 146 KB
- Stars: 12
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Audit: audit.go
- Security: SECURITY.md
Awesome Lists containing this project
README
doppler-go
A Go client for the Doppler API.
[](https://codecov.io/gh/nikoksr/doppler-go)
[](https://goreportcard.com/report/github.com/nikoksr/doppler-go)
[](https://www.codacy.com/gh/nikoksr/doppler-go/dashboard?utm_source=github.com&utm_medium=referral&utm_content=nikoksr/doppler-go&utm_campaign=Badge_Grade)
[](https://codeclimate.com/github/nikoksr/doppler-go/maintainability)
[](https://pkg.go.dev/github.com/nikoksr/doppler-go)doppler-go is a Go client for the [Doppler](https://www.doppler.com/) API. It provides a simple and easy to use interface for interacting with the [Doppler API](https://docs.doppler.com/reference/api).
The base design is heavily inspired by the [Stripe Go client](https://github.com/stripe/stripe-go), yet there are still some distinct differences.
This project is currently in an early stage of development. I have not yet confirmed the functionality of all endpoints through extensive end-to-end testing. Therefore, I cannot guarantee for any stability or correctness.
I plan to support this project for the foreseeable future. However, I cannot guarantee that I will be able to fix bugs or add new features in a timely manner.
If you find any bugs or have any suggestions, please open an issue or a pull request.
* Doppler REST API v3:
* Audit
* Auth
* Configs
* Config Logs
* Dynamic Secrets
* Environments
* Projects
* Secrets
* Service Tokens
* Token Sharing
* Workplaces```sh
go get -u github.com/nikoksr/doppler-go
``````go
package mainimport (
"context"
"fmt"
"log""github.com/nikoksr/doppler-go"
"github.com/nikoksr/doppler-go/secret"
)func main() {
// Set your API key
doppler.Key = "YOUR_API_KEY"// List all your secrets
secrets, err := secret.List(context.Background(), &doppler.SecretListOptions{
Project: "YOUR_PROJECT",
Config: "YOUR_CONFIG",
})
if err != nil {
log.Fatalf("failed to list secrets: %v", err)
}for name, value := range secrets {
fmt.Printf("%s: %v\n", name, value)
}
}
```Contributions of all kinds are very welcome! Feel free to check
our [open issues](https://github.com/nikoksr/doppler-go/issues). Please also take a look at
the [contribution guidelines](https://github.com/nikoksr/doppler-go/blob/main/CONTRIBUTING.md).Please give a ⭐️ if you like this project! This helps us to get more visibility and helps other people to find this
project.