Documentation
¶
Index ¶
- type Client
- func (c *Client) CheckAndCreateLocalAppDirs() error
- func (c *Client) CheckAndInstallMutagen() error
- func (c *Client) ContainerChanged(container string) bool
- func (c *Client) InstallMutagen() error
- func (c *Client) InstallMutagenForWindows() error
- func (c *Client) RunCmdBlackfire(cmd *cmdpkg.Command, args []string) error
- func (c *Client) RunCmdBootstrap() error
- func (c *Client) RunCmdDBBuildDockerComposeCommand(args []string, suppressOsStdOut ...bool) (string, error)
- func (c *Client) RunCmdDBConnect(cmd *cobra.Command, args []string) error
- func (c *Client) RunCmdDBDockerCompose(args []string, suppressOsStdOut ...bool) error
- func (c *Client) RunCmdDBDockerComposeCommandModifyStdin(args []string, suppressOsStdOut ...bool) (string, error)
- func (c *Client) RunCmdDBDockerComposeWithConfig(args []string, details compose.ConfigDetails, suppressOsStdOut ...bool) (string, error)
- func (c *Client) RunCmdDBDump(cmd *cobra.Command, args []string) error
- func (c *Client) RunCmdDBImport(cmd *cobra.Command, args []string) error
- func (c *Client) RunCmdDebug(cmd *cobra.Command, args []string) error
- func (c *Client) RunCmdEnv(args []string) error
- func (c *Client) RunCmdEnvBuildDockerCompose(args []string, opts ...shell.Opt) (string, error)
- func (c *Client) RunCmdEnvBuildDockerComposeTemplate(tpl *template.Template, templateList *list.List) error
- func (c *Client) RunCmdEnvDockerCompose(args []string, opts ...shell.Opt) error
- func (c *Client) RunCmdEnvExec(args string) error
- func (c *Client) RunCmdEnvInit(cmd *cobra.Command, args []string) error
- func (c *Client) RunCmdInfo(cmd *cmdpkg.Command) error
- func (c *Client) RunCmdInstall() error
- func (c *Client) RunCmdPluginInstall(cmd *cmdpkg.Command, args []string) error
- func (c *Client) RunCmdPluginList() error
- func (c *Client) RunCmdPluginListAvailable() error
- func (c *Client) RunCmdPluginRemove(cmd *cmdpkg.Command, args []string) error
- func (c *Client) RunCmdRoot(cmd *cmdpkg.Command) error
- func (c *Client) RunCmdSelfUpdate(cmd *cmdpkg.Command) error
- func (c *Client) RunCmdShell(cmd *cobra.Command, args []string) error
- func (c *Client) RunCmdSignCertificate(args []string, force ...bool) error
- func (c *Client) RunCmdSvc(args []string) error
- func (c *Client) RunCmdSvcBuildDockerComposeCommand(args []string, opts ...shell.Opt) (string, error)
- func (c *Client) RunCmdSvcDockerCompose(args []string, opts ...shell.Opt) error
- func (c *Client) RunCmdSyncCheck() error
- func (c *Client) RunCmdSyncFlush() error
- func (c *Client) RunCmdSyncList(opts ...shell.Opt) (string, error)
- func (c *Client) RunCmdSyncMonitor() error
- func (c *Client) RunCmdSyncPause() error
- func (c *Client) RunCmdSyncReset() error
- func (c *Client) RunCmdSyncResume() error
- func (c *Client) RunCmdSyncStart() error
- func (c *Client) RunCmdSyncStop() error
- func (c *Client) RunCmdSyncTerminate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) CheckAndCreateLocalAppDirs ¶
func (*Client) CheckAndInstallMutagen ¶
CheckAndInstallMutagen checks if mutagen is available. If not, it's going to install mutagen.
func (*Client) ContainerChanged ¶
ContainerChanged returns true if the container's state is not "running" or the container's ID is changed since the last sync session.
func (*Client) InstallMutagen ¶
InstallMutagen installs mutagen.
func (*Client) InstallMutagenForWindows ¶
InstallMutagenForWindows installs mutagen for Windows.
func (*Client) RunCmdBlackfire ¶
RunCmdBlackfire represents the blackfire command.
func (*Client) RunCmdBootstrap ¶
RunCmdBootstrap represents the bootstrap command.
func (*Client) RunCmdDBBuildDockerComposeCommand ¶
func (c *Client) RunCmdDBBuildDockerComposeCommand(args []string, suppressOsStdOut ...bool) (string, error)
DBBuildDockerComposeCommand builds up the docker-compose command's templates.
func (*Client) RunCmdDBConnect ¶
RunCmdDBConnect connects to the environment's database container.
func (*Client) RunCmdDBDockerCompose ¶
RunCmdDBDockerCompose 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 (*Client) RunCmdDBDockerComposeCommandModifyStdin ¶
func (c *Client) RunCmdDBDockerComposeCommandModifyStdin(args []string, suppressOsStdOut ...bool) (string, error)
RunCmdDBDockerComposeCommandModifyStdin runs the passed parameters with docker-compose and returns the output.
func (*Client) RunCmdDBDockerComposeWithConfig ¶
func (c *Client) RunCmdDBDockerComposeWithConfig( args []string, details compose.ConfigDetails, suppressOsStdOut ...bool, ) (string, error)
RunCmdDBDockerComposeWithConfig calls docker-compose with the previously built docker-compose configuration.
func (*Client) RunCmdDBDump ¶
RunCmdDBDump dumps the database from the environment's database container.
func (*Client) RunCmdDBImport ¶
RunCmdDBImport imports a database from stdin to the environment's database container.
func (*Client) RunCmdDebug ¶
RunCmdDebug opens a shell in the debug container.
func (*Client) RunCmdEnvBuildDockerCompose ¶
RunCmdEnvBuildDockerCompose builds up the docker-compose command by passing it the previously built templates.
func (*Client) RunCmdEnvBuildDockerComposeTemplate ¶
func (c *Client) RunCmdEnvBuildDockerComposeTemplate(tpl *template.Template, templateList *list.List) error
RunCmdEnvBuildDockerComposeTemplate builds the templates which are used to invoke docker-compose.
func (*Client) RunCmdEnvDockerCompose ¶
RunCmdEnvDockerCompose 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 (*Client) RunCmdEnvExec ¶
func (*Client) RunCmdEnvInit ¶
RunCmdEnvInit creates a .env file for envType based on envName.
func (*Client) RunCmdInfo ¶
RunCmdInfo represents the info command.
func (*Client) RunCmdInstall ¶
RunCmdInstall opens a shell in the environment's default application container.
func (*Client) RunCmdPluginInstall ¶
func (*Client) RunCmdPluginList ¶
func (*Client) RunCmdPluginListAvailable ¶
func (*Client) RunCmdPluginRemove ¶
func (*Client) RunCmdRoot ¶
RunCmdRoot is the default command. If no additional args passed print the help.
func (*Client) RunCmdSelfUpdate ¶
RunCmdSelfUpdate represents the self-update command.
func (*Client) RunCmdShell ¶
RunCmdShell opens a shell in the environment's default application container.
func (*Client) RunCmdSignCertificate ¶
RunCmdSignCertificate represents the sign-certificate command.
func (*Client) RunCmdSvcBuildDockerComposeCommand ¶
func (c *Client) RunCmdSvcBuildDockerComposeCommand(args []string, opts ...shell.Opt) (string, error)
RunCmdSvcBuildDockerComposeCommand builds up the docker-compose command by passing it the previously built templates for the common services..
func (*Client) RunCmdSvcDockerCompose ¶
RunCmdSvcDockerCompose 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 (*Client) RunCmdSyncCheck ¶
RunCmdSyncCheck checks if mutagen configuration is ok. If it doesn't exist, this function is going to generate one.
func (*Client) RunCmdSyncFlush ¶
RunCmdSyncFlush represents the sync flush command.
func (*Client) RunCmdSyncList ¶
RunCmdSyncList represents the sync list command.
func (*Client) RunCmdSyncMonitor ¶
RunCmdSyncMonitor represents the sync monitor command.
func (*Client) RunCmdSyncPause ¶
RunCmdSyncPause represents the sync pause command.
func (*Client) RunCmdSyncReset ¶
RunCmdSyncReset represents the sync reset command.
func (*Client) RunCmdSyncResume ¶
RunCmdSyncResume represents the sync status command.
func (*Client) RunCmdSyncStart ¶
RunCmdSyncStart represents the sync start command.
func (*Client) RunCmdSyncStop ¶
RunCmdSyncStop represents the sync stop command.
func (*Client) RunCmdSyncTerminate ¶
RunCmdSyncTerminate represents the sync start command.