Documentation
¶
Index ¶
- Variables
- func GetCompressionByFilename(file string) string
- func NewSigIntHandler(callback func()) func()
- type FileStubs
- type MysqlCommonOptions
- func (conf *MysqlCommonOptions) ExecQuery(database string, statement string) xmlMysqlQueryResult
- func (conf *MysqlCommonOptions) ExecStatement(database string, statement string) string
- func (conf *MysqlCommonOptions) GetTableList(database string) []string
- func (conf *MysqlCommonOptions) Init() error
- func (conf *MysqlCommonOptions) InitDockerSettings()
- func (conf *MysqlCommonOptions) MysqlCommandBuilder(args ...string) []interface{}
- func (conf *MysqlCommonOptions) MysqlDumpCommandBuilder(args ...string) []interface{}
- func (conf *MysqlCommonOptions) MysqlInteractiveCommandBuilder(args ...string) []interface{}
- func (conf *MysqlCommonOptions) MysqlRestoreCommandBuilder(args ...string) []interface{}
- type MysqlConvert
- type MysqlDbDump
- type MysqlDbRestore
- type MysqlDebug
- type MysqlServerDump
- type MysqlServerRestore
- type MysqlSlowLog
- type MysqlSql
- type PostgresCommonOptions
- func (conf *PostgresCommonOptions) ExecStatement(statement string) string
- func (conf *PostgresCommonOptions) Init() error
- func (conf *PostgresCommonOptions) InitDockerSettings()
- func (conf *PostgresCommonOptions) PgDumpAllCommandBuilder() []interface{}
- func (conf *PostgresCommonOptions) PgDumpCommandBuilder(database string) []interface{}
- func (conf *PostgresCommonOptions) PostgresRestoreCommandBuilder(args ...string) []interface{}
- func (conf *PostgresCommonOptions) PsqlCommandBuilder(args ...string) []interface{}
- type PostgresDbDump
- type PostgresDbRestore
- type PostgresServerDump
- type PostgresServerRestore
- type PostgresSql
- type SelfUpdate
- type Typo3BeUser
- type Typo3Stubs
- type Version
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Logger *logger.Logger
)
Functions ¶
func NewSigIntHandler ¶
func NewSigIntHandler(callback func()) func()
Types ¶
type FileStubs ¶
type FileStubs struct {
Positional struct {
SourceFile string `description:"Source file"`
} `positional-args:"true"`
RootPath string `long:"path" description:"Prefix path for stub files"`
SourceStdin bool `long:"stdin" description:"Use stdin as file list source"`
Force bool `short:"f" long:"force" description:"Overwrite existing files"`
}
func (*FileStubs) GetRootPath ¶
type MysqlCommonOptions ¶
type MysqlCommonOptions struct {
SSH string `long:"ssh"`
Docker string `long:"docker"`
Mysql string `long:"mysql"`
MysqlOptions struct {
Hostname string `long:"hostname"`
Port string `long:"port"`
Username string `long:"user"`
Password string `long:"password"`
} `group:"mysql" namespace:"mysql"`
// contains filtered or unexported fields
}
func (*MysqlCommonOptions) ExecQuery ¶
func (conf *MysqlCommonOptions) ExecQuery(database string, statement string) xmlMysqlQueryResult
func (*MysqlCommonOptions) ExecStatement ¶
func (conf *MysqlCommonOptions) ExecStatement(database string, statement string) string
func (*MysqlCommonOptions) GetTableList ¶
func (conf *MysqlCommonOptions) GetTableList(database string) []string
func (*MysqlCommonOptions) Init ¶
func (conf *MysqlCommonOptions) Init() error
func (*MysqlCommonOptions) InitDockerSettings ¶
func (conf *MysqlCommonOptions) InitDockerSettings()
func (*MysqlCommonOptions) MysqlCommandBuilder ¶
func (conf *MysqlCommonOptions) MysqlCommandBuilder(args ...string) []interface{}
func (*MysqlCommonOptions) MysqlDumpCommandBuilder ¶
func (conf *MysqlCommonOptions) MysqlDumpCommandBuilder(args ...string) []interface{}
func (*MysqlCommonOptions) MysqlInteractiveCommandBuilder ¶
func (conf *MysqlCommonOptions) MysqlInteractiveCommandBuilder(args ...string) []interface{}
func (*MysqlCommonOptions) MysqlRestoreCommandBuilder ¶
func (conf *MysqlCommonOptions) MysqlRestoreCommandBuilder(args ...string) []interface{}
type MysqlConvert ¶
type MysqlConvert struct {
Options MysqlCommonOptions `group:"common"`
Positional struct {
Database string `description:"Database" required:"true"`
} `positional-args:"true"`
Charset string `long:"charset" description:"MySQL charset" default:"utf8mb4"`
Collation string `long:"collation" description:"MySQL collation" default:"utf8mb4_unicode_ci"`
}
func (*MysqlConvert) Execute ¶
func (conf *MysqlConvert) Execute(args []string) error
type MysqlDbDump ¶
type MysqlDbDump struct {
Options MysqlCommonOptions `group:"common"`
Positional struct {
Database string `description:"Database" required:"1"`
Filename string `description:"Backup filename" required:"1"`
} `positional-args:"true"`
}
func (*MysqlDbDump) Execute ¶
func (conf *MysqlDbDump) Execute(args []string) error
type MysqlDbRestore ¶
type MysqlDbRestore struct {
Options MysqlCommonOptions `group:"common"`
Positional struct {
Database string `description:"Database" required:"1"`
Filename string `description:"Backup filename" required:"1"`
} `positional-args:"true"`
}
func (*MysqlDbRestore) Execute ¶
func (conf *MysqlDbRestore) Execute(args []string) error
type MysqlDebug ¶
type MysqlDebug struct {
Options MysqlCommonOptions `group:"common"`
}
func (*MysqlDebug) Execute ¶
func (conf *MysqlDebug) Execute(args []string) error
type MysqlServerDump ¶
type MysqlServerDump struct {
Options MysqlCommonOptions `group:"common"`
Positional struct {
Filename string `description:"Backup filename" required:"1"`
} `positional-args:"true"`
}
func (*MysqlServerDump) Execute ¶
func (conf *MysqlServerDump) Execute(args []string) error
type MysqlServerRestore ¶
type MysqlServerRestore struct {
Options MysqlCommonOptions `group:"common"`
Positional struct {
Filename string `description:"Backup filename" required:"1"`
} `positional-args:"true"`
}
func (*MysqlServerRestore) Execute ¶
func (conf *MysqlServerRestore) Execute(args []string) error
type MysqlSlowLog ¶
type MysqlSlowLog struct {
Options MysqlCommonOptions `group:"common"`
QueryTime int `long:"querytime" description:"Slow query time (seconds)" default:"10"`
QueryWithoutIndex bool `long:"no-index" description:"Log queries using NO index"`
}
func (*MysqlSlowLog) Execute ¶
func (conf *MysqlSlowLog) Execute(args []string) error
type MysqlSql ¶
type MysqlSql struct {
Options MysqlCommonOptions `group:"common"`
Interactive bool `short:"i" long:"interactive" description:"Run interactive shell"`
}
type PostgresCommonOptions ¶
type PostgresCommonOptions struct {
SSH string `long:"ssh"`
Docker string `long:"docker"`
Postgres string `long:"postgres"`
PostgresOptions struct {
Hostname string `long:"hostname"`
Port string `long:"port"`
Username string `long:"user"`
Password string `long:"password"`
} `group:"postgres" namespace:"postgres"`
// contains filtered or unexported fields
}
func (*PostgresCommonOptions) ExecStatement ¶
func (conf *PostgresCommonOptions) ExecStatement(statement string) string
func (*PostgresCommonOptions) Init ¶
func (conf *PostgresCommonOptions) Init() error
func (*PostgresCommonOptions) InitDockerSettings ¶
func (conf *PostgresCommonOptions) InitDockerSettings()
func (*PostgresCommonOptions) PgDumpAllCommandBuilder ¶
func (conf *PostgresCommonOptions) PgDumpAllCommandBuilder() []interface{}
func (*PostgresCommonOptions) PgDumpCommandBuilder ¶
func (conf *PostgresCommonOptions) PgDumpCommandBuilder(database string) []interface{}
func (*PostgresCommonOptions) PostgresRestoreCommandBuilder ¶
func (conf *PostgresCommonOptions) PostgresRestoreCommandBuilder(args ...string) []interface{}
func (*PostgresCommonOptions) PsqlCommandBuilder ¶
func (conf *PostgresCommonOptions) PsqlCommandBuilder(args ...string) []interface{}
type PostgresDbDump ¶
type PostgresDbDump struct {
Options PostgresCommonOptions `group:"common"`
Positional struct {
Database string `description:"Database" required:"1"`
Filename string `description:"Backup filename" required:"1"`
} `positional-args:"true"`
}
func (*PostgresDbDump) Execute ¶
func (conf *PostgresDbDump) Execute(args []string) error
type PostgresDbRestore ¶
type PostgresDbRestore struct {
Options PostgresCommonOptions `group:"common"`
Positional struct {
Database string `description:"Database" required:"1"`
Filename string `description:"Backup filename" required:"1"`
} `positional-args:"true"`
}
func (*PostgresDbRestore) Execute ¶
func (conf *PostgresDbRestore) Execute(args []string) error
type PostgresServerDump ¶
type PostgresServerDump struct {
Options PostgresCommonOptions `group:"common"`
Positional struct {
Filename string `description:"Backup filename" required:"1"`
} `positional-args:"true"`
}
func (*PostgresServerDump) Execute ¶
func (conf *PostgresServerDump) Execute(args []string) error
type PostgresServerRestore ¶
type PostgresServerRestore struct {
Options PostgresCommonOptions `group:"common"`
Positional struct {
Filename string `description:"Backup filename" required:"1"`
} `positional-args:"true"`
}
func (*PostgresServerRestore) Execute ¶
func (conf *PostgresServerRestore) Execute(args []string) error
type PostgresSql ¶
type PostgresSql struct {
Options PostgresCommonOptions `group:"common"`
Interactive bool `short:"i" long:"interactive" description:"Run interactive shell"`
}
func (*PostgresSql) Execute ¶
func (conf *PostgresSql) Execute(args []string) error
type SelfUpdate ¶
type SelfUpdate struct {
CurrentVersion string
GithubOrganization string
GithubRepository string
GithubAssetTemplate string
Force bool `long:"force" description:"force update"`
}
func (*SelfUpdate) Execute ¶
func (conf *SelfUpdate) Execute(args []string) error
type Typo3BeUser ¶
type Typo3BeUser struct {
Options MysqlCommonOptions `group:"common"`
Positional struct {
Database string `description:"Database" required:"1"`
} `positional-args:"true"`
Username string `long:"typo3-user" description:"TYPO3 username" default:"dev"`
Password string `long:"typo3-password" description:"TYPO3 password" default:"dev"`
}
func (*Typo3BeUser) Execute ¶
func (conf *Typo3BeUser) Execute(args []string) error
type Typo3Stubs ¶
type Typo3Stubs struct {
Options MysqlCommonOptions `group:"common"`
Positional struct {
Database string `description:"Database" required:"1"`
} `positional-args:"true"`
RootPath string `long:"path" description:"TYPO3 root path"`
Force bool `short:"f" long:"force" description:"Overwrite existing files"`
}
func (*Typo3Stubs) Execute ¶
func (conf *Typo3Stubs) Execute(args []string) error
func (*Typo3Stubs) GetTypo3Root ¶
func (conf *Typo3Stubs) GetTypo3Root() (string, error)
Source Files
¶
- Config.go
- FileStubs.go
- Helper.go
- MysqlCommon.go
- MysqlConvert.go
- MysqlDbDump.go
- MysqlDbRestore.go
- MysqlDebug.go
- MysqlServerDump.go
- MysqlServerRestore.go
- MysqlSlowLog.go
- MysqlSql.go
- PostgresCommon.go
- PostgresDbDump.go
- PostgresSchemaRestore.go
- PostgresServerDump.go
- PostgresServerRestore.go
- PostgresSql.go
- SelfUpdate.go
- Typo3BeUser.go
- Typo3Stubs.go
- Version.go
Click to show internal directories.
Click to hide internal directories.