pickyhelpers

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildSST

func BuildSST(pkgManager string) error

func ConvertDBConfig

func ConvertDBConfig(stack, dirName string) error

func ConvertDBTests

func ConvertDBTests(stack, dirName string) error

func ConvertQueries

func ConvertQueries(stack, dirName string) error

func CreateCI

func CreateCI(stackDirs []string) error

func CreateDockerComposeFile

func CreateDockerComposeFile(stackInfo map[string]interface{}) error

func CreateInfraSetup

func CreateInfraSetup() error

CreateInfraSetup creates package.json and .env files for infra setup.

func CreateSstConfigFile

func CreateSstConfigFile(stackInfo map[string]interface{}, directories []string,
) error

CreateSstConfigFile creates sst.config.js file.

func CreateStackCI

func CreateStackCI(path, stackDir, stack string) error

CreateStackCI creates and writes CI for the given stack.

func CreateTaskDefinition

func CreateTaskDefinition(stackDir, environment string) error

func DeploySST

func DeploySST(pkgManager, environment string) error

func GetNonExistingInfraStacks

func GetNonExistingInfraStacks(stacksDirectories []string) []string

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 InstallDependencies(pkgManager string, path ...string) error

func IsInfraFilesExist

func IsInfraFilesExist() bool

IsInfraFilesExist checks the infra related files are exist of not.

func IsInfraStackExist

func IsInfraStackExist(stackDirName string) bool

func ParseDeployOutputs

func ParseDeployOutputs() error

func ProgressBar

func ProgressBar(max int, description string, done chan bool)

func RemoveDeploy

func RemoveDeploy(pkgManager, environment string) error

func UpdateDBConfig

func UpdateDBConfig(stack, dbFile string, stackInfo map[string]interface{}) error

func UpdateDockerCompose

func UpdateDockerCompose(stack, dirName string, stackInfo map[string]interface{}) error

func UpdateEnvByEnvironment

func UpdateEnvByEnvironment(dirName, environment string) error

UpdateEnvByEnvironment updates the env file with respect to environment.

func UpdateEnvDockerFileForDefaultDBInTemplate

func UpdateEnvDockerFileForDefaultDBInTemplate(stack, dirName string) error

func UpdateEnvFiles

func UpdateEnvFiles(stack, dirName string) error

func UpdatePackageDotJson

func UpdatePackageDotJson(stack, dirName string) error

Types

type Infra

type Infra struct {
	Service          string
	Stack            string
	Database         string
	DirName          string
	CamelCaseDirName string
	Environment      string
	ForceCreate      bool
}

func (Infra) CreateInfraStack

func (i Infra) CreateInfraStack() error

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{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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