canasta

package
v1.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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

func CloneStackRepo(orchestrator, canastaId string, path *string) error

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

func CopyDatabase(databasePath, path, pwd string) error

Copies database dump from databasePath to the /_initdb/ at the installation directory

func CopyEnv

func CopyEnv(envPath, domainName, path, pwd string) error

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

func CopyLocalSettings(localSettingsPath, path, pwd string) error

Copies the LocalSettings.php at localSettingsPath to /config at the installation directory

func DeleteConfigAndContainers added in v1.2.0

func DeleteConfigAndContainers(keepConfig bool, installationDir, orchestrator string)

func GetEnvVariable

func GetEnvVariable(envPath string) map[string]string

Get values saved inside the .env at the envPath

func SanityChecks

func SanityChecks(databasePath, localSettingsPath string) error

Verifying file extension for database dump

func SaveEnvVariable

func SaveEnvVariable(envPath, key, value string) error

Make changes to the .env file at the installation directory

Types

type CanastaVariables

type CanastaVariables struct {
	Id            string
	WikiName      string
	DomainName    string
	AdminPassword string
	AdminName     string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL