Documentation
¶
Overview ¶
Package interactive implements an interactive command-line interface using the Bubble Tea framework.
Index ¶
- Variables
- func InitialModel() *parentModel
- func InitialModelWithConfig(container, user, password string) *parentModel
- func NewActionModel() actionModel
- func NewBackupExecModel(config ServerConfig, dbName, filename string) backupExecModel
- func NewBackupModel(config ServerConfig) backupModel
- func NewInspectModel(config ServerConfig, bakFileName string) inspectModel
- func NewListFilesModel(config ServerConfig) listFilesModel
- func NewLoginModel(err error) loginModel
- func NewRestoreExecModel(config ServerConfig, bakFileInfo BakFileInfo, newDBName string) restoreExecModel
- func NewRestoreModel(config ServerConfig, fileInfo BakFileInfo) restoreModel
- func NewWelcomeModel() templateModel
- func RenderStatusBar(container string, model tea.Model) string
- type BakFileInfo
- type ServerConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var BorderStyle = lipgloss.NewStyle(). BorderStyle(lipgloss.NormalBorder()). Padding(1, 1). BorderForeground(lipgloss.Color("240"))
View Source
var ColHeaderStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("#ffffff")). Background(lipgloss.Color("99"))
View Source
var DocStyle = lipgloss.NewStyle().Margin(1, 2)
View Source
var ErrorTextStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("9"))
View Source
var HeadingStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("99")). Bold(true).Align(lipgloss.Center)
View Source
var Logo string = `` /* 280-byte string literal not displayed */
View Source
var OuterStyle = lipgloss.NewStyle().Margin(0, 2)
View Source
var PurpleBgStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("#ffffff")). Background(lipgloss.Color("#5E5ED2"))
View Source
var TableTitleStyle = PurpleBgStyle.
Padding(0, 1).Margin(0, 2)
Functions ¶
func InitialModel ¶
func InitialModel() *parentModel
func InitialModelWithConfig ¶
func InitialModelWithConfig(container, user, password string) *parentModel
func NewActionModel ¶
func NewActionModel() actionModel
func NewBackupExecModel ¶
func NewBackupExecModel(config ServerConfig, dbName, filename string) backupExecModel
func NewBackupModel ¶
func NewBackupModel(config ServerConfig) backupModel
func NewInspectModel ¶
func NewInspectModel(config ServerConfig, bakFileName string) inspectModel
func NewListFilesModel ¶
func NewListFilesModel(config ServerConfig) listFilesModel
func NewLoginModel ¶
func NewLoginModel(err error) loginModel
func NewRestoreExecModel ¶
func NewRestoreExecModel(config ServerConfig, bakFileInfo BakFileInfo, newDBName string) restoreExecModel
func NewRestoreModel ¶
func NewRestoreModel(config ServerConfig, fileInfo BakFileInfo) restoreModel
func NewWelcomeModel ¶
func NewWelcomeModel() templateModel
Types ¶
type BakFileInfo ¶
type BakFileInfo struct {
// contains filtered or unexported fields
}
type ServerConfig ¶
type ServerConfig struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.