Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllCleanupsDoneMsg ¶
type AllCleanupsDoneMsg struct{}
AllCleanupsDoneMsg is sent when all cleanup operations have completed.
type CleanupAppConfig ¶
type CleanupAppConfig struct {
Engine engine.DeployEngine
Logger *zap.Logger
CleanupValidations bool
CleanupChangesets bool
CleanupReconciliationResults bool
CleanupEvents bool
ShowOptionsForm bool
Styles *stylespkg.Styles
Headless bool
HeadlessWriter io.Writer
}
CleanupAppConfig holds configuration for creating a new cleanup application.
type CleanupCompletedMsg ¶
type CleanupCompletedMsg struct {
Operation *manage.CleanupOperation
}
CleanupCompletedMsg is sent when a cleanup operation has completed.
type CleanupErrorMsg ¶
type CleanupErrorMsg struct {
Err error
}
CleanupErrorMsg is sent when a cleanup operation encounters an error.
type CleanupModel ¶
type CleanupModel struct {
// contains filtered or unexported fields
}
CleanupModel handles the execution of cleanup operations.
func NewCleanupModel ¶
func NewCleanupModel(cfg CleanupModelConfig) *CleanupModel
NewCleanupModel creates a new cleanup execution model.
func (*CleanupModel) Init ¶
func (m *CleanupModel) Init() tea.Cmd
func (*CleanupModel) View ¶
func (m *CleanupModel) View() string
type CleanupModelConfig ¶
type CleanupModelConfig struct {
Engine engine.DeployEngine
Logger *zap.Logger
CleanupValidations bool
CleanupChangesets bool
CleanupReconciliationResults bool
CleanupEvents bool
Headless bool
HeadlessWriter io.Writer
Styles *stylespkg.Styles
}
CleanupModelConfig holds configuration for creating a new cleanup model.
type CleanupOptionsFormModel ¶
type CleanupOptionsFormModel struct {
// contains filtered or unexported fields
}
CleanupOptionsFormModel provides a form for selecting which resource types to clean up.
func NewCleanupOptionsFormModel ¶
func NewCleanupOptionsFormModel(styles *stylespkg.Styles) *CleanupOptionsFormModel
NewCleanupOptionsFormModel creates a new cleanup options form model.
func (*CleanupOptionsFormModel) Init ¶
func (m *CleanupOptionsFormModel) Init() tea.Cmd
func (*CleanupOptionsFormModel) Update ¶
func (m *CleanupOptionsFormModel) Update(msg tea.Msg) (*CleanupOptionsFormModel, tea.Cmd)
func (*CleanupOptionsFormModel) View ¶
func (m *CleanupOptionsFormModel) View() string
type CleanupOptionsSelectedMsg ¶
type CleanupOptionsSelectedMsg struct {
Validations bool
Changesets bool
ReconciliationResults bool
Events bool
}
CleanupOptionsSelectedMsg is sent when user completes the options form.
type CleanupStartedMsg ¶
type CleanupStartedMsg struct {
Operation *manage.CleanupOperation
}
CleanupStartedMsg is sent when a cleanup operation has been started.
type MainModel ¶
type MainModel struct {
Error error
// contains filtered or unexported fields
}
MainModel is the top-level model for the cleanup TUI.
func NewCleanupApp ¶
func NewCleanupApp(cfg CleanupAppConfig) (*MainModel, error)
NewCleanupApp creates a new cleanup TUI application.