render

package
v0.2.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2020 License: Apache-2.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptAWS

func DecryptAWS(awsRegion, awsProfile, ciphertext string) (string, error)

DecryptAWS decrypts ciphertext using AWS KMS

func DecryptAzure

func DecryptAzure(azureVaultURL, azureKey, azureKeyVersion, ciphertext string) (string, error)

DecryptAzure decrypts ciphertext using Azure Key Vault

func DecryptGCP

func DecryptGCP(gcpProject, gcpLocation, gcpKeyring, gcpKey, ciphertext string) (string, error)

DecryptGCP decrypts ciphertext using GCP KMS

func EncryptAWS

func EncryptAWS(awsKms, awsRegion, awsProfile, plaintext string) ([]byte, error)

EncryptAWS encrypts plaintext using AWS KMS

func EncryptAzure

func EncryptAzure(azureVaultURL, azureKey, azureKeyVersion, plaintext string) ([]byte, error)

EncryptAzure encrypts plaintext using Azure Key Vault

func EncryptGCP

func EncryptGCP(gcpProject, gcpLocation, gcpKeyring, gcpKey, plaintext string) ([]byte, error)

EncryptGCP encrypts plaintext using GCP KMS

func TemplateFunctions added in v0.2.0

func TemplateFunctions() template.FuncMap

TemplateFunctions provides template functions for render or the standard (text/template) template engine

  • encryptAWS - encrypts the data from inside of the template using AWS KMS, for best results use with gzip and b64enc
  • decryptAWS - decrypts the data from inside of the template using AWS KMS, for best results use with ungzip and b64dec
  • encryptGCP - encrypts the data from inside of the template using GCP KMS, for best results use with gzip and b64enc
  • decryptGCP - decrypts the data from inside of the template using GCP KMS, for best results use with ungzip and b64dec
  • encryptAzure - encrypts the data from inside of the template using Azure Key Vault, for best results use with gzip and b64enc
  • decryptAzure - decrypts the data from inside of the template using Azure Key Vault, for best results use with ungzip and b64dec

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL