Documentation
¶
Index ¶
Constants ¶
View Source
const VariablePlaceHolderPrefix = "$"
Variables ¶
View Source
var ConfigurationsRelativeFileExtension = ".yaml"
View Source
var ConfigurationsRelativeFilePath = "./configurations"
View Source
var Resources = map[string]Resource{}
Functions ¶
func ExtractPaginationToken ¶
ExtractPaginationToken extracts the next page token from JSON output
func GetAvailableResourceNames ¶
func GetAvailableResourceNames() []string
Types ¶
type BreadcrumbType ¶
type BreadcrumbType string
const ( BreadcrumbProfiles BreadcrumbType = "profiles" BreadcrumbProfile BreadcrumbType = "profile" BreadcrumbResource BreadcrumbType = "resource" BreadcrumbCommand BreadcrumbType = "command" BreadcrumbSelectedItem BreadcrumbType = "selected_item" BreadcrumbDependentCmds BreadcrumbType = "dependent_commands" // List of dependent commands to choose from BreadcrumbDependentCmd BreadcrumbType = "dependent_command" BreadcrumbJsonView BreadcrumbType = "json_view" BreadcrumbProcessedJson BreadcrumbType = "processed_json" )
type Command ¶
type Command struct {
Name string `yaml:"name"`
ResourceName string `yaml:"resourceName"`
DefaultCommand string `yaml:"defaultCommand"`
DependsOn string `yaml:"depends_on"`
Arguments []string `yaml:"arguments"`
View string `yaml:"view"`
Parse Parse `yaml:"parse"`
ShowJsonViewer bool `yaml:"showJsonViewer"`
RerunOnBack bool `yaml:"rerunOnBack"` // If true, rerun command when navigating back; if false, use cached result
RequiresKeyInput bool `yaml:"requiresKeyInput"` // If true, prompt user for key value before executing
Pagination *Pagination `yaml:"pagination,omitempty"` // Pagination configuration
}
type NavigationState ¶
type NavigationState struct {
}
type Pagination ¶
type Pagination struct {
Enabled bool `yaml:"enabled"`
NextTokenParam string `yaml:"nextTokenParam"` // Parameter name for next token (e.g., "--starting-token" or "--exclusive-start-key")
NextTokenJsonPath string `yaml:"nextTokenJsonPath"` // JSON path to extract next token (e.g., "NextToken" or "LastEvaluatedKey")
}
type Resource ¶
type Resource struct {
Name string `yaml:"name"`
DefaultCommand string `yaml:"defaultCommand"`
Commands []Command `yaml:"commands"`
}
func (*Resource) GetCommand ¶
func (*Resource) GetCommandNames ¶
type UIState ¶
type UIState struct {
Profile string `yaml:"profile"`
Resource Resource `yaml:"resource"`
Command Command `yaml:"command"`
SelectedItems map[string]string `yaml:"selectedItems"`
CommandBarVisible bool `yaml:"commandBarVisible"`
Breadcrumbs []string `yaml:"breadcrumbs"`
CommandCache map[string]string // Cache of command results: "resource:command:params" -> output
ViewStack []tview.Primitive
ProcessedJsonData interface{} // Stores processed JSON data (parsed or decompressed)
JsonViewerCallback func() // Callback to rebuild JSON viewer
SelectedNodeText string // Stores the text of the selected node for focus restoration
CurrentPageToken string // Current page token for active paginated command
PageHistory []string // Stack of page tokens for backward navigation
OriginalTableData *TableData // Original unfiltered table data for search/filter
}
Click to show internal directories.
Click to hide internal directories.