Documentation ¶
Index ¶
- func CheckCanastaId(instance config.Installation) (config.Installation, error)
- func CloneStackRepo(orchestrator, canastaId string, path *string) error
- func CopyDatabase(databasePath, path, pwd string) error
- func CopyEnv(envPath, domainName, path, pwd string) error
- func CopyLocalSettings(localSettingsPath, path, pwd string) error
- func DeleteConfigAndContainers(keepConfig bool, installationDir, orchestrator string)
- func GetEnvVariable(envPath string) map[string]string
- func SanityChecks(databasePath, localSettingsPath string) error
- func SaveEnvVariable(envPath, key, value string) error
- type CanastaVariables
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckCanastaId ¶
func CheckCanastaId(instance config.Installation) (config.Installation, error)
Checking Installation existence
func CloneStackRepo ¶
CloneStackRepo accept the orchestrator from the cli and pass the corresponding reopository link and clones the repo to a new folder in the specified path
func CopyDatabase ¶
Copies database dump from databasePath to the /_initdb/ at the installation directory
func CopyEnv ¶
if envPath is passed as argument copies the file located at envPath to the installation directory else copies .env.example to .env in the installation directory
func CopyLocalSettings ¶
Copies the LocalSettings.php at localSettingsPath to /config at the installation directory
func DeleteConfigAndContainers ¶ added in v1.2.0
func GetEnvVariable ¶
Get values saved inside the .env at the envPath
func SanityChecks ¶
Verifying file extension for database dump
func SaveEnvVariable ¶
Make changes to the .env file at the installation directory