Documentation
¶
Index ¶
- Constants
- func CheckTableExists(ctx context.Context, db *sql.DB, tableName string) (bool, error)
- func CreateSecretsLibraryVariableSet(values string, state state.State) error
- func DecryptSensitiveVariable(masterKey string, value string) (string, error)
- func ExtractVariables(server string, port string, database string, username string, password string, ...) (string, error)
- func GetDatabaseConnection(server string, port string, database string, username string, password string, ...) (*sql.DB, error)
- func PKCS7Unpad(data []byte) []byte
- func PingDatabase(ctx context.Context, db *sql.DB) error
Constants ¶
View Source
const SecretsLibraryVariableSetName = "SpaceSensitiveVars"
View Source
const SecretsVariableName = "OctoterraWiz.Terraform.Vars"
Variables ¶
This section is empty.
Functions ¶
func CheckTableExists ¶ added in v0.1.316
func CreateSecretsLibraryVariableSet ¶
CreateSecretsLibraryVariableSet will create or reuse a library variable set called OctoterraWizSecrets that containers a single sensitive variable called OctoterraWiz.Terraform.Vars. The variable is the contents of a terraform.tfvars file that contains all the sensitive variables required to migrate a space.
func ExtractVariables ¶
func ExtractVariables(server string, port string, database string, username string, password string, masterKey string) (string, error)
ExtractVariables extracts sensitive variables from the database and returns them as terraform variable values
func GetDatabaseConnection ¶
func PKCS7Unpad ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.