struct Cryogen::VaultEntry

Overview

TODO make this a generic struct and implement Encrypted/DecryptedEntry as Entry(T) once crystal adds support for generic aliases; see https://github.com/crystal-lang/crystal/issues/5155

Included Modules

Defined in:

cryogen/vault_entry.cr

Constructors

Instance Method Summary

Constructor Detail

def self.empty : self #

[View source]
def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]
def self.new(value : ValueType) #

[View source]
def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node, &) #

[View source]

Instance Method Detail

def decrypt(key : Key) : self #

[View source]
def each(*args, **options) #

[View source]
def each(*args, **options, &) #

[View source]
def encrypt(key : Key) : self #

[View source]
def merge_encrypted(other : self, key : Key) : self #

assuming an encrypted entry, return a new entry containing contents of another encrypted entry, but with the ciphertext of this entry if plaintext matches. this prevents ciphertext churn for plaintext no-ops.


[View source]
def to_env(namespace : String | Nil = nil) : Hash(String, String) #

[View source]
def to_yaml(*args, **options) #

[View source]
def to_yaml(*args, **options, &) #

[View source]