bws

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: MIT Imports: 5 Imported by: 0

README

Bitwarden Secret Manager for Go (bws-g)

This is a Go package that provides a function to retrieve secrets from Bitwarden secret manager.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites
Installing
  1. Get the module from Github
go get github.com/JCStaples/bwsgo
  1. Import it
import "github.com/JCStaples/bwsgo"

Usage

To use the GetSecret function, pass the name of the environment variable that holds the secret key as an argument. Here's an example:

import "github.com/JCStaples/bwsgo"
secret := bws.GetSecret("UUID_ENVIRONMENT_VAR")

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSecret

func GetSecret(env_var string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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