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, path, pwd, rootDBpass string) error
- func CopyLocalSettings(localSettingsPath, path, pwd string) error
- func CopySetting(path, name string) error
- func CopySettings(path string) error
- func CopyYaml(yamlPath, path string) error
- func DeleteConfigAndContainers(keepConfig bool, installationDir, orchestrator string)
- func GetEnvVariable(envPath string) map[string]string
- func GetOrGenerateAndSavePassword(pwd, path, prompt, filename string) (string, error)
- func GetPasswordFromFile(path, filename string) (string, error)
- func MigrateToNewVersion(path string) error
- func RemoveImages(path, name string) error
- func RemoveSettings(path, name string) error
- func RewriteCaddy(path string) error
- func RewriteSettings(path string, WikiNames []string) error
- 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() accepts the orchestrator from the CLI, passes the corresponding repository 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 CopySetting ¶ added in v1.11.0
func CopySettings ¶ added in v1.11.0
func DeleteConfigAndContainers ¶ added in v1.2.0
func GetEnvVariable ¶
Get values saved inside the .env at the envPath
func GetOrGenerateAndSavePassword ¶ added in v1.12.0
func GetPasswordFromFile ¶ added in v1.12.0
func MigrateToNewVersion ¶ added in v1.11.0
func RemoveImages ¶ added in v1.11.0
func RemoveSettings ¶ added in v1.11.0
func RewriteCaddy ¶ added in v1.11.0
func RewriteSettings ¶ added in v1.11.0
func SanityChecks ¶
Verifying file extension for database dump
func SaveEnvVariable ¶
Make changes to the .env file at the installation directory
Types ¶
type CanastaVariables ¶
type CanastaVariables struct { Id string AdminPassword string AdminName string RootDBPassword string WikiDBUsername string WikiDBPassword string }
func GeneratePasswords ¶ added in v1.12.0
func GeneratePasswords(path string, canastaInfo CanastaVariables) (CanastaVariables, error)