persistence/mysqldump.go
func NewRemoteMysqlDumpWithPath(username, password string, sshCfg command.SshConfig, remoteArchivePath string) (*MysqlDump, error) {
	lo.G.Debug("setting up a new remote MyslDump object")
	remoteExecuter, err := command.NewRemoteExecutor(sshCfg)

	remoteOps := osutils.NewRemoteOperations(sshCfg)
	if len(remoteArchivePath) > 0 {
		remoteOps.SetPath(remoteArchivePath)
	}

	return &MysqlDump{
		IP:        "localhost",
		Username:  username,
		Password:  password,
		Caller:    remoteExecuter,
		RemoteOps: remoteOps,
	}, err
}
func NewRemoteMysqlDumpWithPath(username, password string, sshCfg command.SshConfig, remoteArchivePath string) (*MysqlDump, error) {
	lo.G.Debug("setting up a new remote MyslDump object")
	remoteExecuter, err := command.NewRemoteExecutor(sshCfg)

	remoteOps := osutils.NewRemoteOperations(sshCfg)
	if len(remoteArchivePath) > 0 {
		remoteOps.SetPath(remoteArchivePath)
	}

	return &MysqlDump{
		IP:        "localhost",
		Username:  username,
		Password:  password,
		Caller:    remoteExecuter,
		RemoteOps: remoteOps,
	}, err
}
func NewRemoteMysqlDumpWithPath ( username , password string , sshCfg command . SshConfig , remoteArchivePath string ) ( * MysqlDump , error ) { lo . G . Debug ( " " ) remoteExecuter , err := command . NewRemoteExecutor ( sshCfg ) remoteOps := osutils . NewRemoteOperations ( sshCfg ) if len ( remoteArchivePath ) > 0 { remoteOps . SetPath ( remoteArchivePath ) } return & MysqlDump { IP : " " , Username : username , Password : password , Caller : remoteExecuter , RemoteOps : remoteOps , } , err }
//NewRemoteMysqlDumpWithPath -
NewRemoteMysqlDumpWithPath -