Documentation ¶
Index ¶
- func BuildSST(pkgManager string) error
- func ConvertDBConfig(stack, dirName string) error
- func ConvertDBTests(stack, dirName string) error
- func ConvertQueries(stack, dirName string) error
- func CreateCI(stackDirs []string) error
- func CreateDockerComposeFile(stackInfo map[string]interface{}) error
- func CreateInfraSetup() error
- func CreateSstConfigFile(stackInfo map[string]interface{}, directories []string) error
- func CreateStackCI(path, stackDir, stack string) error
- func CreateTaskDefinition(stackDir, environment string) error
- func DeploySST(pkgManager, environment string) error
- func GetNonExistingInfraStacks(stacksDirectories []string) []string
- func InstallDependencies(pkgManager string, path ...string) error
- func IsInfraFilesExist() bool
- func IsInfraStackExist(stackDirName string) bool
- func ParseDeployOutputs() error
- func ProgressBar(max int, description string, done chan bool)
- func RemoveDeploy(pkgManager, environment string) error
- func UpdateDBConfig(stack, dbFile string, stackInfo map[string]interface{}) error
- func UpdateDockerCompose(stack, dirName string, stackInfo map[string]interface{}) error
- func UpdateEnvByEnvironment(dirName, environment string) error
- func UpdateEnvDockerFileForDefaultDBInTemplate(stack, dirName string) error
- func UpdateEnvFiles(stack, dirName string) error
- func UpdatePackageDotJson(stack, dirName string) error
- type Infra
- type StackDetails
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertDBConfig ¶
func ConvertDBTests ¶
func ConvertQueries ¶
func CreateDockerComposeFile ¶
func CreateInfraSetup ¶
func CreateInfraSetup() error
CreateInfraSetup creates package.json and .env files for infra setup.
func CreateSstConfigFile ¶
CreateSstConfigFile creates sst.config.js file.
func CreateStackCI ¶
CreateStackCI creates and writes CI for the given stack.
func CreateTaskDefinition ¶
func GetNonExistingInfraStacks ¶
IsInfraStacksExist will return non existing stacks in the stacks directory. It will check the stack function is exists in the stacks directory.
func InstallDependencies ¶
func IsInfraFilesExist ¶
func IsInfraFilesExist() bool
IsInfraFilesExist checks the infra related files are exist of not.
func IsInfraStackExist ¶
func ParseDeployOutputs ¶
func ParseDeployOutputs() error
func ProgressBar ¶
func RemoveDeploy ¶
func UpdateDBConfig ¶
func UpdateDockerCompose ¶
func UpdateEnvByEnvironment ¶
UpdateEnvByEnvironment updates the env file with respect to environment.
func UpdateEnvFiles ¶
func UpdatePackageDotJson ¶
Types ¶
type Infra ¶
type Infra struct { Service string Stack string Database string DirName string CamelCaseDirName string Environment string ForceCreate bool }
func (Infra) CreateInfraStack ¶
CreateInfraStack creates the infra stack file of existing stack in the stacks directory.
type StackDetails ¶
type StackDetails struct { // Service refers to the service type of the stack. Service string // Stacks refers to Wednesday Solutions open source templates. Stack string // DirName refers to the name of directory of stack. DirName string // CurrentDir refers to the root directory. CurrentDir string // Database refers to the database of selected stack. Database string // Environment refers to the environment Environment string // StackInfo consist of all the details about stacks. StackInfo map[string]interface{} }
StackDetails is the collection of all stack details.
func (StackDetails) CloneRepo ¶
func (s StackDetails) CloneRepo() error
func (StackDetails) ConvertTemplateDatabase ¶
func (s StackDetails) ConvertTemplateDatabase() error
func (StackDetails) CreateCDFile ¶
func (s StackDetails) CreateCDFile() error
func (StackDetails) CreateDockerFiles ¶
func (s StackDetails) CreateDockerFiles() error
func (StackDetails) DeleteDotGitFolder ¶
func (s StackDetails) DeleteDotGitFolder() error
DeleteDotGitFolder deletes .git folder from stack folder.
func (StackDetails) GetStackInfo ¶
func (s StackDetails) GetStackInfo() map[string]interface{}
Source Files ¶
- clone_repo.go
- commands.go
- convert_dbconfig.go
- convert_dbtests.go
- convert_queries.go
- convert_template_database.go
- create_cd.go
- create_ci.go
- create_docker_files.go
- create_dockercompose.go
- create_infra.go
- delete_git.go
- get_stack_info.go
- progress_bar.go
- update_db_config.go
- update_dockercompose.go
- update_env_files.go
- update_package_json.go