Documentation ¶
Index ¶
- Variables
- func DeleteSecret(storageService *cloudstore.Client, target Profile, key string) error
- func GenerateSecret(length int, runes []rune) (string, error)
- func Generate_secret(length int, chars string) (string, error)
- func GetDecryptedValue(kmsService *cloudkms.Service, target Profile, cipherText string) (string, error)
- func GetEncryptedValue(kmsService *cloudkms.Service, target Profile, plainText string) (string, error)
- func GetValueByKey(kmsService *cloudkms.Service, storageService *cloudstore.Client, key string, ...) (string, error)
- func LoadConfiguration(configFile string)
- func LoadSecret(storageService *cloudstore.Client, target Profile, key string) (string, error)
- func NewAuthenticatedClient(authLocation string) *http.Client
- func StoreSecret(storageService *cloudstore.Client, target Profile, key, encryptedValue string) error
- type Profile
Constants ¶
This section is empty.
Variables ¶
View Source
var Profiles map[string]Profile
Profiles is a collection of profiles as described in the .kiya configuration
Functions ¶
func DeleteSecret ¶ added in v1.7.1
func DeleteSecret(storageService *cloudstore.Client, target Profile, key string) error
DeleteSecret removes a key from the bucket
func GenerateSecret ¶
GenerateSecret composes a random secrets using runes from a give set.
func Generate_secret ¶ added in v1.7.1
Generate_secret generates a random key
func GetDecryptedValue ¶ added in v1.7.1
func GetDecryptedValue(kmsService *cloudkms.Service, target Profile, cipherText string) (string, error)
GetDecryptedValue decrypts an encrypted value via Google KMS
func GetEncryptedValue ¶ added in v1.7.1
func GetEncryptedValue(kmsService *cloudkms.Service, target Profile, plainText string) (string, error)
GetEncryptedValue converts a plain text to a Google KMS encrypted text
func GetValueByKey ¶ added in v1.7.1
func GetValueByKey(kmsService *cloudkms.Service, storageService *cloudstore.Client, key string, target Profile) (string, error)
GetValueByKey is very self explanatory :P
func LoadConfiguration ¶ added in v1.7.1
func LoadConfiguration(configFile string)
LoadConfiguration loads the .kiya file
func LoadSecret ¶ added in v1.7.1
LoadSecret gets a secret from the bucket
func NewAuthenticatedClient ¶ added in v1.7.1
NewAuthenticatedClient creates an authenticated google client
func StoreSecret ¶ added in v1.7.1
func StoreSecret(storageService *cloudstore.Client, target Profile, key, encryptedValue string) error
StoreSecret stores a new secret in a bucket
Types ¶
Click to show internal directories.
Click to hide internal directories.