Documentation ¶
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 ¶ added in v0.0.9
func AesDecryptStr ¶ added in v0.0.9
func AesEncrypt ¶ added in v0.0.9
func AesEncryptStr ¶ added in v0.0.9
Types ¶
type Credential ¶ added in v0.0.9
type Credential struct { Value []byte LastUpdated time.Time Version string MetaData map[string]interface{} }
func (*Credential) Str ¶ added in v0.0.9
func (c *Credential) Str() (s string)
Str function gets the Credential.Value field as string
func (*Credential) Type ¶ added in v0.0.9
func (c *Credential) Type() (s string)
Type Returns the type of the credential
type Manager ¶ added in v0.0.9
type Manager struct {
// contains filtered or unexported fields
}
func GetManager ¶ added in v0.0.9
func GetManager() *Manager
type Store ¶ added in v0.0.9
type Store interface { Get(key string, ctx context.Context) (*Credential, error) Write(key string, credential *Credential, ctx context.Context) error Provider() string }
func NewLocalStore ¶ added in v0.0.9
Click to show internal directories.
Click to hide internal directories.