Documentation ¶
Index ¶
- Variables
- func CheckSecretExists(storageService *cloudstore.Client, target Profile, key string) bool
- func DeleteSecret(kmsService *cloudkms.Service, storageService *cloudstore.Client, ...) error
- func GenerateSecret(length int, runes []rune) (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 Move(kmsService *cloudkms.Service, storageService *cloudstore.Client, ...) error
- func NewAuthenticatedClient(authLocation string) *http.Client
- func PutSecret(kmsService *cloudkms.Service, storageService *cloudstore.Client, ...) error
- func StoreSecret(storageService *cloudstore.Client, target Profile, key, encryptedValue string) error
- type Key
- 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 CheckSecretExists ¶ added in v1.8.0
func CheckSecretExists(storageService *cloudstore.Client, target Profile, key string) bool
func DeleteSecret ¶ added in v1.8.0
func DeleteSecret(kmsService *cloudkms.Service, 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 GetDecryptedValue ¶ added in v1.8.0
func GetDecryptedValue(kmsService *cloudkms.Service, target Profile, cipherText string) (string, error)
GetDecryptedValue decrypts an encrypted value via Google KMS
func GetEncryptedValue ¶ added in v1.8.0
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.8.0
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.8.0
func LoadConfiguration(configFile string)
LoadConfiguration loads the .kiya file
func LoadSecret ¶ added in v1.8.0
LoadSecret gets a secret from the bucket
func NewAuthenticatedClient ¶ added in v1.8.0
NewAuthenticatedClient creates an authenticated google client
func PutSecret ¶ added in v1.8.0
func PutSecret(kmsService *cloudkms.Service, storageService *cloudstore.Client, target Profile, key, value string) error
PutSecret encrypts the given value and stores it
func StoreSecret ¶ added in v1.8.0
func StoreSecret(storageService *cloudstore.Client, target Profile, key, encryptedValue string) error
StoreSecret stores a new secret in a bucket
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.