{"modulePath":"github.com/newstack-cloud/deploy-cli-sdk","version":"v0.10.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package stateexportui\n\n## Types\n\n```go\ntype ExportCompleteMsg struct {\n\tResult *stateio.ExportResult\n\tErr    error\n}\n```\nExportCompleteMsg indicates that exporting has completed.\n\n```go\ntype ExportModel struct {\n\t// contains filtered or unexported fields\n}\n```\nExportModel handles the export progress display.\n\n```go\nfunc NewExportModel(config ExportModelConfig) *ExportModel\n```\nNewExportModel creates a new export model.\n\n```go\nfunc (m *ExportModel) Init() tea.Cmd\n```\n\n```go\nfunc (m *ExportModel) IsFinished() bool\n```\nIsFinished returns whether the export has finished.\n\n```go\nfunc (m *ExportModel) SetFilePath(filePath string)\n```\nSetFilePath sets the file path for the export.\n\n```go\nfunc (m *ExportModel) SetWidth(width int)\n```\nSetWidth sets the terminal width for the export model.\n\n```go\nfunc (m *ExportModel) StartExport() tea.Cmd\n```\nStartExport returns a command to start the export process.\n\n```go\nfunc (m *ExportModel) Update(msg tea.Msg) (*ExportModel, tea.Cmd)\n```\n\n```go\nfunc (m *ExportModel) View() string\n```\n\n```go\ntype ExportModelConfig struct {\n\tEngineConfig    *stateio.EngineConfig\n\tFilePath        string\n\tInstanceFilters []string\n\tStyles          *stylespkg.Styles\n\tHeadless        bool\n\tHeadlessWriter  io.Writer\n\tJSONMode        bool\n\tFileEncryption  *stateio.StateEncryptionKeyConfig\n}\n```\nExportModelConfig holds configuration for the export model.\n\n```go\ntype ExportStartedMsg struct{}\n```\nExportStartedMsg indicates that exporting has started.\n\n```go\ntype MainModel struct {\n\tError error\n\t// contains filtered or unexported fields\n}\n```\nMainModel is the top-level model for the state export command TUI.\n\n```go\nfunc NewStateExportApp(config StateExportAppConfig) (*MainModel, error)\n```\nNewStateExportApp creates a new state export application.\n\n```go\nfunc (m MainModel) Init() tea.Cmd\n```\n\n```go\nfunc (m MainModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)\n```\n\n```go\nfunc (m MainModel) View() string\n```\n\n```go\ntype StateExportAppConfig struct {\n\tFilePath        string\n\tInstanceFilters []string\n\tEngineConfig    *stateio.EngineConfig\n\tStyles          *stylespkg.Styles\n\tHeadless        bool\n\tHeadlessWriter  io.Writer\n\tJSONMode        bool\n\t// FileEncryption is the key the output file is encrypted with, if any.\n\tFileEncryption *stateio.StateEncryptionKeyConfig\n}\n```\nStateExportAppConfig holds configuration for creating a new state export app.\n\n","path":"github.com/newstack-cloud/deploy-cli-sdk/tui/stateexportui","name":"stateexportui","synopsis":"","isRedistributable":true}
