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 InstallCmd() error
- func InstallMutagen() error
- func InstallMutagenForWindows() error
- func IsContainerChanged(container string) bool
- func SelfUpdateCmd(cmd *cobra.Command) error
- func SetDefaultShellCommand(containerName string)
- func SetShellContainer(envType string)
- func SetShellUser(containerName string)
- func SetSyncSettings()
- func SetSyncedContainer(name 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
- func SyncedContainer() string
- func SyncedDir() string
- func ValidEnvTypes() []string
Constants ¶
This section is empty.
Variables ¶
var ( // ShellCommand is the command which is called in the ShellContainer. ShellCommand []string // DefaultShellCommand is the default shell for the container (the first element in ShellCommand). DefaultShellCommand string // ShellContainer is the container used for shell command. ShellContainer string // ShellUser represents the user of the container. ShellUser string )
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 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(containerName string)
SetDefaultShellCommand changes the command invoked by reward shell command.
func SetShellContainer ¶
func SetShellContainer(envType string)
SetShellContainer changes the container used for the reward shell command.
func SetShellUser ¶
func SetShellUser(containerName string)
SetShellUser changes the user of the reward shell command.
func SetSyncSettings ¶
func SetSyncSettings()
SetSyncSettings sets the settings for synchronization.
func SetSyncedContainer ¶
func SetSyncedContainer(name 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 exist, 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.
func SyncedContainer ¶
func SyncedContainer() string
SyncedContainer returns the name of the container which is used for syncing.
func SyncedDir ¶
func SyncedDir() string
SyncedDir returns the directory which is synchronized with mutagen.
func ValidEnvTypes ¶
func ValidEnvTypes() []string
ValidEnvTypes return a list of valid environment types based on the predefined EnvTypes.
Types ¶
This section is empty.