Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatabasePassword ¶
type DatabasePassword struct {
// contains filtered or unexported fields
}
DatabasePassword stores a non retrievable password and includes the encryption methods to store data protected with AES256
func LoadDatabasePasswordFromInput ¶
func LoadDatabasePasswordFromInput(input string) *DatabasePassword
LoadDatabasePasswordFromInput creates a new DatabasePassword store with the given password
func LoadDatabasePasswordFromLockagent ¶
func LoadDatabasePasswordFromLockagent(filename string) (*DatabasePassword, error)
LoadDatabasePasswordFromLockagent calls the lock agent of awsenv to get the password stored in memory for secure retrieval
func (*DatabasePassword) Decrypt ¶
func (p *DatabasePassword) Decrypt(in []byte) ([]byte, error)
Decrypt takes an encrypted message from Encrypt and decrypts it with a corresponding method
func (*DatabasePassword) Encrypt ¶
func (p *DatabasePassword) Encrypt(in []byte) ([]byte, error)
Encrypt uses the password stored in the DatabasePassword storage to encrypt the given message with AES256 and returns the encrypted message for storing
func (*DatabasePassword) KillLockAgent ¶
func (p *DatabasePassword) KillLockAgent(filename string) error
KillLockAgent sends the lockagent a kill command using its HTTP interface
func (*DatabasePassword) SpawnLockAgent ¶
func (p *DatabasePassword) SpawnLockAgent(filename, agentTimeout string) error
SpawnLockAgent spawns and detaches from a new lockagent