Documentation
¶
Index ¶
- Variables
- func BlackfireCmd(cmd *cobra.Command, args []string) error
- func BootstrapCmd() error
- func CheckAndCreateLocalAppDirs() error
- func CheckAndInstallMutagen() error
- func CheckIfInstalled() error
- func DBBuildDockerComposeCommand(args []string, suppressOsStdOut ...bool) (string, error)
- func DBConnectCmd(cmd *cobra.Command, args []string) error
- func DBDumpCmd(cmd *cobra.Command, args []string) error
- func DBImportCmd(cmd *cobra.Command, args []string) error
- func DBRunDockerCompose(args []string, suppressOsStdOut ...bool) error
- func DBRunDockerComposeCommandModifyStdin(args []string, suppressOsStdOut ...bool) (string, error)
- func DBRunDockerComposeWithConfig(args []string, details compose.ConfigDetails, suppressOsStdOut ...bool) (string, error)
- func DebugCmd(cmd *cobra.Command, args []string) error
- func EnvBuildDockerComposeCommand(args []string, suppressOsStdOut ...bool) (string, error)
- func EnvBuildDockerComposeTemplate(t *template.Template, templateList *list.List) error
- func EnvCheck() error
- func EnvCmd(args []string) error
- func EnvInitCmd(cmd *cobra.Command, args []string) error
- func EnvRunDockerCompose(args []string, suppressOsStdOut ...bool) error
- func GetSyncedContainer() string
- func GetSyncedDir() string
- func GetValidEnvTypes() []string
- func InstallCmd() error
- func InstallMutagen() error
- func InstallMutagenForWindows() error
- func IsContainerChanged(container string) bool
- func SelfUpdateCmd(cmd *cobra.Command) error
- func SetDefaultShellCommand(s string)
- func SetShellContainer(s string)
- func SetShellUser(s string)
- func SetSyncSettingsByEnvType()
- func SetSyncedContainer(s string)
- func SetSyncedDir(s string)
- func ShellCmd(cmd *cobra.Command, args []string) error
- func SignCertificateCmd(args []string, dontAskRecreate ...bool) error
- func SvcBuildDockerComposeCommand(args []string, suppressOsStdOut ...bool) (string, error)
- func SvcBuildDockerComposeTemplate(t *template.Template, templateList *list.List) error
- func SvcCmd(args []string) error
- func SvcGenerateTraefikConfig() error
- func SvcGenerateTraefikDynamicConfig() error
- func SvcRunDockerCompose(args []string, suppressOsStdOut ...bool) error
- func SyncCheck() error
- func SyncFlushCmd() error
- func SyncListCmd(suppressOsStdOut ...bool) (string, error)
- func SyncMonitorCmd() error
- func SyncPauseCmd() error
- func SyncResetCmd() error
- func SyncResumeCmd() error
- func SyncStartCmd() error
- func SyncStopCmd() error
Constants ¶
This section is empty.
Variables ¶
var ( // ShellCommand is the command which is called in the ShellContainer. ShellCommand []string // ShellContainer is the container used for shell command. ShellContainer string DefaultShellCommand = "bash" ShellUser = "" )
Functions ¶
func BlackfireCmd ¶
BlackfireCmd represents the blackfire command.
func CheckAndCreateLocalAppDirs ¶
func CheckAndCreateLocalAppDirs() error
func CheckAndInstallMutagen ¶
func CheckAndInstallMutagen() error
CheckAndInstallMutagen checks if mutagen is available. If not, it's going to install mutagen.
func CheckIfInstalled ¶
func CheckIfInstalled() error
CheckIfInstalled returns an error if the application is not yet installed.
func DBBuildDockerComposeCommand ¶
DBBuildDockerComposeCommand builds up the docker-compose command's templates.
func DBConnectCmd ¶
DBConnectCmd connects to the environment's database container.
func DBImportCmd ¶
DBImportCmd imports a database from stdin to the environment's database container.
func DBRunDockerCompose ¶
DBRunDockerCompose function is a wrapper around the docker-compose command.
It appends the current directory and current project name to the args. It also changes the output if the OS StdOut is suppressed.
func DBRunDockerComposeCommandModifyStdin ¶
DBRunDockerComposeCommandModifyStdin runs the passed parameters with docker-compose and returns the output.
func DBRunDockerComposeWithConfig ¶
func DBRunDockerComposeWithConfig( args []string, details compose.ConfigDetails, suppressOsStdOut ...bool, ) (string, error)
DBRunDockerComposeWithConfig calls docker-compose with the previously built docker-compose configuration.
func EnvBuildDockerComposeCommand ¶
EnvBuildDockerComposeCommand builds up the docker-compose command by passing it the previously built templates.
func EnvBuildDockerComposeTemplate ¶
EnvBuildDockerComposeTemplate builds the templates which are used to invoke docker-compose.
func EnvCheck ¶
func EnvCheck() error
EnvCheck returns an error if the env name is empty (.env file does not contain an env name).
func EnvInitCmd ¶
EnvInitCmd creates a .env file for envType based on envName.
func EnvRunDockerCompose ¶
EnvRunDockerCompose function is a wrapper around the docker-compose command.
It appends the current directory and current project name to the args. It also changes the output if the OS StdOut is suppressed.
func GetSyncedContainer ¶
func GetSyncedContainer() string
GetSyncedContainer returns the name of the container which is used for syncing.
func GetSyncedDir ¶
func GetSyncedDir() string
GetSyncedDir returns the directory which is synchronized with mutagen.
func GetValidEnvTypes ¶
func GetValidEnvTypes() []string
GetValidEnvTypes return a list of valid environment types based on the predefined EnvTypes.
func InstallMutagenForWindows ¶
func InstallMutagenForWindows() error
InstallMutagenForWindows installs mutagen for Windows.
func IsContainerChanged ¶
IsContainerChanged returns true if the container's state is not "running" or the container's ID is changed since
the last sync session.
func SelfUpdateCmd ¶
SelfUpdateCmd represents the self-update command.
func SetDefaultShellCommand ¶
func SetDefaultShellCommand(s string)
SetDefaultShellCommand changes the command invoked by reward shell command.
func SetShellContainer ¶
func SetShellContainer(s string)
SetShellContainer changes the container used for the reward shell command.
func SetShellUser ¶
func SetShellUser(s string)
SetShellUser changes the user of the reward shell command.
func SetSyncSettingsByEnvType ¶
func SetSyncSettingsByEnvType()
SetSyncSettingsByEnvType sets the settings for synchronization.
func SetSyncedContainer ¶
func SetSyncedContainer(s string)
SetSyncedContainer sets the synced container.
func SetSyncedDir ¶
func SetSyncedDir(s string)
SetSyncedDir sets the directory to be synchronized with mutagen.
func SignCertificateCmd ¶
SignCertificateCmd represents the sign-certificate command.
func SvcBuildDockerComposeCommand ¶
SvcBuildDockerComposeCommand builds up the docker-compose command by passing it the previously built templates for the common services..
func SvcBuildDockerComposeTemplate ¶
SvcBuildDockerComposeTemplate builds the templates which are used to invoke docker-compose for the common services.
func SvcGenerateTraefikConfig ¶
func SvcGenerateTraefikConfig() error
SvcGenerateTraefikConfig generates the default traefik configuration.
func SvcGenerateTraefikDynamicConfig ¶
func SvcGenerateTraefikDynamicConfig() error
SvcGenerateTraefikDynamicConfig generates the dynamic traefik configuration.
func SvcRunDockerCompose ¶
SvcRunDockerCompose function is a wrapper around the docker-compose command.
It appends the current directory and current project name to the args. It also changes the output if the OS StdOut is suppressed.
func SyncCheck ¶
func SyncCheck() error
SyncCheck checks if mutagen configuration is ok. If it doesn't exists, this function is going to generate one.
func SyncListCmd ¶
SyncListCmd represents the sync list command.
func SyncMonitorCmd ¶
func SyncMonitorCmd() error
SyncMonitorCmd represents the sync monitor command.
Types ¶
This section is empty.