Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // KMSConnection is the connection to the key management service // that's used to encrypt and decrypt secrets. KMSConnection string )
Functions ¶
Types ¶
type Ciphertext ¶ added in v1.0.824
type Ciphertext []byte
func Encrypt ¶ added in v1.0.824
func Encrypt(ctx context.Context, sensitive Sensitive) (Ciphertext, error)
func ParseCiphertext ¶ added in v1.0.824
func ParseCiphertext(s string) (Ciphertext, error)
func (Ciphertext) MarshalJSON ¶ added in v1.0.824
func (t Ciphertext) MarshalJSON() ([]byte, error)
func (Ciphertext) MarshalText ¶ added in v1.0.824
func (t Ciphertext) MarshalText() ([]byte, error)
func (Ciphertext) String ¶ added in v1.0.824
func (t Ciphertext) String() string
type Sensitive ¶ added in v1.0.824
type Sensitive []byte
func Decrypt ¶ added in v1.0.824
func Decrypt(ctx context.Context, ciphertext Ciphertext) (Sensitive, error)
func (Sensitive) MarshalJSON ¶ added in v1.0.824
func (Sensitive) MarshalText ¶ added in v1.0.824
Click to show internal directories.
Click to hide internal directories.