Documentation
¶
Overview ¶
Package secrets provides a simple interface to return credentials/key/dsn from keyring
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
func Get(service ServiceName, key string) (string, error)
Get returns a secret from keyring
func Set ¶
func Set(service ServiceName, key, value string) error
Set adds a new secret to the keyring
func SetFromFile ¶
func SetFromFile(svnm ServiceName, key, filename string) error
SetFromFile adds a new secret to the keyring
Types ¶
type ServiceName ¶
type ServiceName string
ServiceName provides name for keyring list
const ( // ServiceSQL is id for sql dsn secrets ServiceSQL ServiceName = "sql" // ServiceSSHDB is id fro sshdb configuration secrets ServiceSSHDB ServiceName = "sshdb" // ServiceIntacct is id for intacct configuration secrets ServiceIntacct ServiceName = "intacct" // ServiceSalesforce is id for salesforce configurations ServiceSalesforce ServiceName = "sf" // ServiceCertify is id for certify configs ServiceCertify ServiceName = "certify" // ServiceDocuSign is id for docusign configs ServiceDocuSign ServiceName = "esign" // ServiceJira is id for jira jwt configs ServiceJira ServiceName = "jira" // ServiceGoogle is id for google jwt configs ServiceGoogle ServiceName = "google" )
Directories
¶
| Path | Synopsis |
|---|---|
|
Package certify provides a simple interface for generating a certify api service from a keyring entry
|
Package certify provides a simple interface for generating a certify api service from a keyring entry |
|
Package esign provides a simple interface genarate credentials for esign api service from a keyring entry
|
Package esign provides a simple interface genarate credentials for esign api service from a keyring entry |
|
Package googlejwt provides a simple way to generate a Google JWT Tokensource
|
Package googlejwt provides a simple way to generate a Google JWT Tokensource |
|
Package intacct provides a client for accessing the Intacct API.
|
Package intacct provides a client for accessing the Intacct API. |
|
Package jira provides a client for accessing the Jira API.
|
Package jira provides a client for accessing the Jira API. |
|
Package salesforcejwt provides a simple way to generate a JWT assertion from a keyring entry
|
Package salesforcejwt provides a simple way to generate a JWT assertion from a keyring entry |
|
Package sqldb provides a simple way to get an mssql db connection from a keyring
|
Package sqldb provides a simple way to get an mssql db connection from a keyring |
|
sshdb creates an ssh database using credentials for the keyring
|
sshdb creates an ssh database using credentials for the keyring |
Click to show internal directories.
Click to hide internal directories.