Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MilliSecPrecision ¶
MilliSecPrecision return the time to millisecond precision and in UTC. The extra precisions are truncated.
func StringMsToTime ¶
StringMsToTime converts a string(Unix milliseconds) into a time. This is used for serialize timestamp into string when storing credential into vault.
func TimeToStringMs ¶
TimeToStringMs converts a time into a string(Unix milliseconds). This is used for de-serialize timestamp from string when retrieve credential from vault.
func VaultSecretToServiceCred ¶
func VaultSecretToServiceCred(owner, credID string, data VaultSecretData) (service.CredentialModel, error)
VaultSecretToServiceCred ...
Types ¶
type VaultSecretData ¶
type VaultSecretData map[string]interface{}
VaultSecretData is the data of KV secret in Vault
func ServiceCredToVaultSecret ¶
func ServiceCredToVaultSecret(cred service.CredentialModel) (VaultSecretData, error)
ServiceCredToVaultSecret converts service model of credential into vault secret
Click to show internal directories.
Click to hide internal directories.