Documentation ¶
Overview ¶
Package secrets provides a set of utilities for working with secrets in Go.
Index ¶
- Constants
- func AesDecrypt(encrypted, key []byte) (message []byte, err error)
- func AesDecryptStr(encrypted, key string) (message string, err error)
- func AesEncrypt(key, message []byte) (encrypted []byte, err error)
- func AesEncryptStr(key, message string) (encrypted string, err error)
- type Credential
- type Manager
- type Store
Constants ¶
View Source
const ( CredType = "CredType" TextSecret = "TextSecret" )
View Source
const (
LocalStoreProvider = "localStore"
)
Variables ¶
This section is empty.
Functions ¶
func AesDecrypt ¶
func AesDecryptStr ¶
func AesEncrypt ¶
func AesEncryptStr ¶
Types ¶
type Credential ¶
type Credential struct { Value []byte LastUpdated time.Time Version string MetaData map[string]interface{} }
func (*Credential) Str ¶
func (c *Credential) Str() (s string)
Str function gets the Credential.Value field as string
func (*Credential) Type ¶
func (c *Credential) Type() (s string)
Type Returns the type of the credential
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func GetManager ¶
func GetManager() *Manager
Click to show internal directories.
Click to hide internal directories.