Documentation
¶
Index ¶
- func CreateCD(directories []string, environment string) error
- func CreateInfra(directories []string, cloudProvider string, environment string) error
- func DeployStacks(stacks []string, environment string) error
- func DisplayMultipleStackWarningMessage(service string) bool
- func Exit()
- func GenerateDockerCompose() error
- func GitInit() error
- func InstallDependenciesAndDeploy(configStacks []string, environment string) error
- func PrintGitHubSecretsInfo(backendExist, webExist bool)
- func PromptAlertMessage()
- func PromptAllDatabases() string
- func PromptAlreadyExist(existingFile string) bool
- func PromptBuildSST(pkgManager string) error
- func PromptCICD()
- func PromptCloudProvider() string
- func PromptConfirm() bool
- func PromptCreateDockerCompose()
- func PromptCreateInfraStacksWhenDeploy(directories []string, environment string) error
- func PromptDeploy()
- func PromptDeployAfterInfra(configStacks []string, environment string) error
- func PromptDeployNow() (string, int)
- func PromptDockerCompose()
- func PromptEnvironment() string
- func PromptExit()
- func PromptGitInit()
- func PromptHome()
- func PromptRemoveDeploy()
- func PromptRunDockerCompose()
- func PromptSelectExistingStacks() []string
- func PromptSelectService()
- func PromptSetupInfra()
- func RemoveDeploy(environment string) error
- func ResetItems(items []string, index *int) []string
- func RunDockerCompose() error
- func ShowPromptGitInit() bool
- func ShowRemoveDeploy() bool
- func WriteDotGitignoreFile(file string) error
- type InitInfo
- func (i *InitInfo) GetDetailsTemplatesOfStacks() string
- func (i *InitInfo) Init()
- func (i *InitInfo) PromptGetDirectoryName() string
- func (i *InitInfo) PromptSelectInit()
- func (i *InitInfo) PromptSelectStack()
- func (i *InitInfo) PromptSelectStackDatabase()
- func (i *InitInfo) PromptStack() string
- func (i *InitInfo) SelectDatabase()
- func (i InitInfo) StackInitialize() error
- type Label
- type PromptInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateInfra ¶
CreateInfra execute all the functionalities of infra setup.
func DeployStacks ¶
DeployStacks will deploy the infrastructure.
func DisplayMultipleStackWarningMessage ¶
DisplayMultipleStackWarningMessage prints message if the selected service is already exists.
func GenerateDockerCompose ¶
func GenerateDockerCompose() error
GenerateDockerCompose generates docker-compose file for all the existing stacks as a monorepo in the root directory.
func InstallDependenciesAndDeploy ¶
InstallDependenciesAndDeploy install dependencies of each file, then deploy.
func PrintGitHubSecretsInfo ¶
func PrintGitHubSecretsInfo(backendExist, webExist bool)
func PromptAlertMessage ¶
func PromptAlertMessage()
func PromptAllDatabases ¶
func PromptAllDatabases() string
func PromptAlreadyExist ¶
func PromptCICD ¶
func PromptCICD()
func PromptCloudProvider ¶
func PromptCloudProvider() string
PromptCloudProvider is a prompt for selecting a cloud provider.
func PromptConfirm ¶
func PromptConfirm() bool
func PromptCreateDockerCompose ¶
func PromptCreateDockerCompose()
PromptCreateDockerCompose is a prompt function for create docker-compose.
func PromptCreateInfraStacksWhenDeploy ¶
PromptCreateInfraStacksWhenDeploy will setup the infra of stacks which are not already set up.
func PromptDeploy ¶
func PromptDeploy()
PromptDeploy is the prompt for the deploy option of Home prompt.
func PromptDeployAfterInfra ¶
PromptDeployAfterInfra will come up after setting up the infrastructure.
func PromptDeployNow ¶
func PromptDockerCompose ¶
func PromptDockerCompose()
func PromptEnvironment ¶
func PromptEnvironment() string
PromptEnvironment is a prompt for selecting an environment.
func PromptExit ¶
func PromptExit()
func PromptGitInit ¶
func PromptGitInit()
func PromptHome ¶
func PromptHome()
func PromptRemoveDeploy ¶
func PromptRemoveDeploy()
PromptRemoveDeploy is the prompt for the remove deploy option of Home prompt.
func PromptRunDockerCompose ¶
func PromptRunDockerCompose()
PromptRunDockerCompose is a prompt function for run docker-compose.
func PromptSelectExistingStacks ¶
func PromptSelectExistingStacks() []string
PromptSelectExistingStacks is a prompt function will ask for selecting available stacks.
func PromptSelectService ¶
func PromptSelectService()
func PromptSetupInfra ¶
func PromptSetupInfra()
PromptSetupInfra is the prompt for the setup infra option of Home prompt.
func RemoveDeploy ¶
func ResetItems ¶
ResetItems reset the values of items. index means last selected item's index.
func RunDockerCompose ¶
func RunDockerCompose() error
RunDockerCompose runs 'docker-compose up' from the root directory.
func ShowPromptGitInit ¶
func ShowPromptGitInit() bool
func ShowRemoveDeploy ¶
func ShowRemoveDeploy() bool
func WriteDotGitignoreFile ¶
Types ¶
type InitInfo ¶
func (*InitInfo) GetDetailsTemplatesOfStacks ¶
GetDetailsTemplatesOfStacks return the details template for the given service.
func (*InitInfo) PromptGetDirectoryName ¶
func (*InitInfo) PromptSelectInit ¶
func (i *InitInfo) PromptSelectInit()
func (*InitInfo) PromptSelectStack ¶
func (i *InitInfo) PromptSelectStack()
func (*InitInfo) PromptSelectStackDatabase ¶
func (i *InitInfo) PromptSelectStackDatabase()
func (*InitInfo) PromptStack ¶
PromptStack is prompt for selecting stack. It will come up after user selecting the service.
func (*InitInfo) SelectDatabase ¶
func (i *InitInfo) SelectDatabase()
func (InitInfo) StackInitialize ¶
type PromptInput ¶
func (PromptInput) PromptGetInput ¶
func (p PromptInput) PromptGetInput() string
func (PromptInput) PromptMultiSelect ¶
func (p PromptInput) PromptMultiSelect() ([]string, []int)
func (PromptInput) PromptPlatform ¶
func (p PromptInput) PromptPlatform() string
func (PromptInput) PromptSelect ¶
func (p PromptInput) PromptSelect() (string, int)
func (PromptInput) PromptYesOrNoConfirm ¶
func (p PromptInput) PromptYesOrNoConfirm() bool
func (PromptInput) PromptYesOrNoSelect ¶
func (p PromptInput) PromptYesOrNoSelect() bool