Documentation
¶
Index ¶
- type ApprovalAction
- type ApprovalResultMsg
- type ApprovalsMsg
- type ApprovalsPageMsg
- type AuthenticationState
- type Category
- type CategoryInfo
- type ErrMsg
- type FunctionStatus
- type FunctionStatusMsg
- type FunctionsPageMsg
- type InputState
- type LambdaExecuteResultMsg
- type Model
- func (m *Model) Clone() *Model
- func (m *Model) GetApprovalComment() string
- func (m *Model) GetApprovals() []cloud.ApprovalAction
- func (m *Model) GetApproveAction() bool
- func (m *Model) GetAuthConfig(key string) string
- func (m *Model) GetAwsProfile() string
- func (m *Model) GetAwsRegion() string
- func (m *Model) GetCommitID() string
- func (m *Model) GetFunctions() []cloud.FunctionStatus
- func (m *Model) GetInputBool(key string) bool
- func (m *Model) GetInputText(key string) string
- func (m *Model) GetLambdaPayload() string
- func (m *Model) GetLambdaResult() *cloud.LambdaExecuteResult
- func (m *Model) GetManualCommitID() bool
- func (m *Model) GetPipelines() []cloud.PipelineStatus
- func (m *Model) GetProviderConfig(key string) string
- func (m *Model) GetSelectedApproval() *cloud.ApprovalAction
- func (m *Model) GetSelectedFunction() *cloud.FunctionStatus
- func (m *Model) GetSelectedPipeline() *cloud.PipelineStatus
- func (m *Model) Init() tea.Cmd
- func (m *Model) ResetApprovalState()
- func (m *Model) ResetTextInput()
- func (m *Model) SetApprovalComment(comment string)
- func (m *Model) SetApprovals(approvals []cloud.ApprovalAction)
- func (m *Model) SetApproveAction(approve bool)
- func (m *Model) SetAuthConfig(key, value string)
- func (m *Model) SetAwsProfile(profile string)
- func (m *Model) SetAwsRegion(region string)
- func (m *Model) SetCommitID(commitID string)
- func (m *Model) SetFunctions(functions []cloud.FunctionStatus)
- func (m *Model) SetInputBool(key string, value bool)
- func (m *Model) SetInputText(key, value string)
- func (m *Model) SetLambdaPayload(payload string)
- func (m *Model) SetLambdaResult(result *cloud.LambdaExecuteResult)
- func (m *Model) SetManualCommitID(manual bool)
- func (m *Model) SetPipelines(pipelines []cloud.PipelineStatus)
- func (m *Model) SetProviderConfig(key, value string)
- func (m *Model) SetSelectedApproval(approval *cloud.ApprovalAction)
- func (m *Model) SetSelectedFunction(function *cloud.FunctionStatus)
- func (m *Model) SetSelectedPipeline(pipeline *cloud.PipelineStatus)
- func (m *Model) SetTextInputForApproval(isApproval bool)
- type Operation
- type OperationInfo
- type Pagination
- type PaginationType
- type PipelineExecutionMsg
- type PipelineStatus
- type PipelineStatusMsg
- type PipelinesPageMsg
- type ProviderState
- type SearchState
- type Service
- type ServiceInfo
- type StageStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApprovalAction ¶
type ApprovalAction = cloud.ApprovalAction
ApprovalAction is an alias for cloud.ApprovalAction
type ApprovalResultMsg ¶
type ApprovalResultMsg struct {
Err error
}
ApprovalResultMsg represents the result of an approval action
type ApprovalsMsg ¶
type ApprovalsMsg struct {
Approvals []ApprovalAction
Provider cloud.Provider
}
ApprovalsMsg represents a message containing approvals
type ApprovalsPageMsg ¶ added in v0.1.7
type ApprovalsPageMsg struct {
Approvals []ApprovalAction
NextPageToken string
HasMorePages bool
}
ApprovalsPageMsg represents a message containing a page of approvals
type AuthenticationState ¶
type AuthenticationState struct {
// Current authentication method
Method string
// Authentication configuration
AuthConfig map[string]string
// Available authentication methods
AvailableMethods []string
// Current authentication config key being set
CurrentAuthConfigKey string
// Authentication status
IsAuthenticated bool
// Error message if authentication failed
AuthError string
}
AuthenticationState represents the authentication state for different providers
type CategoryInfo ¶
CategoryInfo represents information about a category
type FunctionStatus ¶
type FunctionStatus = cloud.FunctionStatus
FunctionStatus is an alias for cloud.FunctionStatus
type FunctionStatusMsg ¶
type FunctionStatusMsg struct {
Functions []FunctionStatus
Provider cloud.Provider
}
FunctionStatusMsg represents a message containing function status
type FunctionsPageMsg ¶ added in v0.1.7
type FunctionsPageMsg struct {
Functions []FunctionStatus
NextPageToken string
HasMorePages bool
}
FunctionsPageMsg represents a message containing a page of functions
type InputState ¶
type InputState struct {
// Generic input fields
TextValues map[string]string // e.g., "comment" -> "This is a comment"
BoolValues map[string]bool // e.g., "approve" -> true
// Operation-specific state
OperationState map[string]interface{} // Operation-specific state
}
InputState represents the state of user input
type LambdaExecuteResultMsg ¶ added in v0.1.5
type LambdaExecuteResultMsg struct {
Result *cloud.LambdaExecuteResult
Err error
}
LambdaExecuteResultMsg represents the result of a Lambda execution
type Model ¶
type Model struct {
// UI Components
Table table.Model
TextInput textinput.Model
TextArea textarea.Model
Viewport viewport.Model
Spinner spinner.Model
Styles styles.Styles
// Window dimensions
Width int
Height int
// View state
CurrentView constants.View
ManualInput bool
Err error
Error string // Error message
Success string // Success message
// Viewport state
ViewportReady bool // Tracks if the viewport has been properly initialized
// Loading state
IsLoading bool
LoadingMsg string
// Provider Registry
Registry *cloud.ProviderRegistry
// Provider state
ProviderState ProviderState
// Input state
InputState InputState
// Pagination state
Pagination Pagination
PageSize int // Global page size setting
// Search state
Search SearchState
// Legacy fields for backward compatibility
// These will be gradually migrated to the new structure
AwsProfile string
AwsRegion string
Profiles []string
Regions []string
Provider cloud.Provider
Approvals []cloud.ApprovalAction
Pipelines []cloud.PipelineStatus
Functions []cloud.FunctionStatus
Services []Service
Categories []Category
Operations []Operation
SelectedService *Service
SelectedCategory *Category
SelectedOperation *Operation
SelectedApproval *cloud.ApprovalAction
SelectedFunction *cloud.FunctionStatus
ApproveAction bool
Summary string
SelectedPipeline *cloud.PipelineStatus
ManualCommitID bool
CommitID string
ApprovalComment string
// Lambda execution state
LambdaPayload string
LambdaResult *cloud.LambdaExecuteResult
// Operation flow tracking
IsExecuteLambdaFlow bool
// UI focus state
IsViewportFocused bool
// Lambda input mode (when true, Enter adds new lines; when false, Enter executes)
IsLambdaInputMode bool
}
Model represents the application state
func (*Model) GetApprovalComment ¶
GetApprovalComment returns the approval comment from the input state
func (*Model) GetApprovals ¶
func (m *Model) GetApprovals() []cloud.ApprovalAction
GetApprovals returns the approvals from the provider-specific state
func (*Model) GetApproveAction ¶
GetApproveAction returns the approve action from the input state
func (*Model) GetAuthConfig ¶
func (*Model) GetAwsProfile ¶
GetAwsProfile returns the AWS profile from the provider config
func (*Model) GetAwsRegion ¶
GetAwsRegion returns the AWS region from the provider config
func (*Model) GetCommitID ¶
GetCommitID returns the commit ID from the input state
func (*Model) GetFunctions ¶
func (m *Model) GetFunctions() []cloud.FunctionStatus
GetFunctions returns the functions from the provider-specific state
func (*Model) GetInputBool ¶
func (*Model) GetInputText ¶
func (*Model) GetLambdaPayload ¶ added in v0.1.5
GetLambdaPayload returns the Lambda payload
func (*Model) GetLambdaResult ¶ added in v0.1.5
func (m *Model) GetLambdaResult() *cloud.LambdaExecuteResult
GetLambdaResult returns the Lambda execution result
func (*Model) GetManualCommitID ¶
GetManualCommitID returns whether to use manual commit ID
func (*Model) GetPipelines ¶
func (m *Model) GetPipelines() []cloud.PipelineStatus
GetPipelines returns the pipelines from the provider-specific state
func (*Model) GetProviderConfig ¶
func (*Model) GetSelectedApproval ¶
func (m *Model) GetSelectedApproval() *cloud.ApprovalAction
GetSelectedApproval returns the selected approval from the provider-specific state
func (*Model) GetSelectedFunction ¶
func (m *Model) GetSelectedFunction() *cloud.FunctionStatus
GetSelectedFunction returns the selected function from the provider-specific state
func (*Model) GetSelectedPipeline ¶
func (m *Model) GetSelectedPipeline() *cloud.PipelineStatus
GetSelectedPipeline returns the selected pipeline from the provider-specific state
func (*Model) ResetApprovalState ¶
func (m *Model) ResetApprovalState()
ResetApprovalState resets the approval state
func (*Model) ResetTextInput ¶
func (m *Model) ResetTextInput()
ResetTextInput resets the text input
func (*Model) SetApprovalComment ¶
SetApprovalComment sets the approval comment in the input state
func (*Model) SetApprovals ¶
func (m *Model) SetApprovals(approvals []cloud.ApprovalAction)
SetApprovals sets the approvals in the provider-specific state
func (*Model) SetApproveAction ¶
SetApproveAction sets the approve action in the input state
func (*Model) SetAuthConfig ¶
func (*Model) SetAwsProfile ¶
SetAwsProfile sets the AWS profile in the provider config
func (*Model) SetAwsRegion ¶
SetAwsRegion sets the AWS region in the provider config
func (*Model) SetCommitID ¶
SetCommitID sets the commit ID in the input state
func (*Model) SetFunctions ¶
func (m *Model) SetFunctions(functions []cloud.FunctionStatus)
SetFunctions sets the functions in the provider-specific state
func (*Model) SetInputBool ¶
func (*Model) SetInputText ¶
func (*Model) SetLambdaPayload ¶ added in v0.1.5
SetLambdaPayload sets the Lambda payload
func (*Model) SetLambdaResult ¶ added in v0.1.5
func (m *Model) SetLambdaResult(result *cloud.LambdaExecuteResult)
SetLambdaResult sets the Lambda execution result
func (*Model) SetManualCommitID ¶
SetManualCommitID sets whether to use manual commit ID
func (*Model) SetPipelines ¶
func (m *Model) SetPipelines(pipelines []cloud.PipelineStatus)
SetPipelines sets the pipelines in the provider-specific state
func (*Model) SetProviderConfig ¶
Helper methods for working with the model
func (*Model) SetSelectedApproval ¶
func (m *Model) SetSelectedApproval(approval *cloud.ApprovalAction)
SetSelectedApproval sets the selected approval in the provider-specific state
func (*Model) SetSelectedFunction ¶
func (m *Model) SetSelectedFunction(function *cloud.FunctionStatus)
SetSelectedFunction sets the selected function
func (*Model) SetSelectedPipeline ¶
func (m *Model) SetSelectedPipeline(pipeline *cloud.PipelineStatus)
SetSelectedPipeline sets the selected pipeline in the provider-specific state
func (*Model) SetTextInputForApproval ¶
SetTextInputForApproval configures the text input for approval
type OperationInfo ¶
OperationInfo represents information about an operation
type Pagination ¶ added in v0.1.7
type Pagination struct {
Type PaginationType
CurrentPage int
PageSize int
TotalItems int64 // May be unknown (-1)
HasMorePages bool
NextPageToken string // Service-specific token
IsLoading bool
// For client-side pagination
AllItems []interface{} // All items fetched so far
FilteredItems []interface{} // Items after filtering
}
Pagination represents a generic pagination state
type PaginationType ¶ added in v0.1.7
type PaginationType int
PaginationType represents the type of pagination to use
const ( // PaginationTypeNone indicates no pagination is needed PaginationTypeNone PaginationType = iota // PaginationTypeAPI indicates API-level pagination (e.g., Lambda) PaginationTypeAPI // PaginationTypeClientSide indicates client-side pagination (e.g., S3) PaginationTypeClientSide )
type PipelineExecutionMsg ¶
type PipelineExecutionMsg struct {
Err error
}
PipelineExecutionMsg represents the result of a pipeline execution
type PipelineStatus ¶
type PipelineStatus = cloud.PipelineStatus
PipelineStatus is an alias for cloud.PipelineStatus
type PipelineStatusMsg ¶
type PipelineStatusMsg struct {
Pipelines []PipelineStatus
Provider cloud.Provider
}
PipelineStatusMsg represents a message containing pipeline status
type PipelinesPageMsg ¶ added in v0.1.7
type PipelinesPageMsg struct {
Pipelines []PipelineStatus
NextPageToken string
HasMorePages bool
}
PipelinesPageMsg represents a message containing a page of pipelines
type ProviderState ¶
type ProviderState struct {
// Selected provider
ProviderName string
// Provider configuration
Config map[string]string // Generic configuration (e.g., "profile", "region")
// Available configuration options
ConfigOptions map[string][]string // e.g., "profile" -> ["default", "dev", "prod"]
// Current configuration key being set
CurrentConfigKey string
// Authentication state
AuthState AuthenticationState
// Selected service, category, and operation
SelectedService *ServiceInfo
SelectedCategory *CategoryInfo
SelectedOperation *OperationInfo
// Provider-specific state (stored as generic interface{})
ProviderSpecificState map[string]interface{}
}
ProviderState represents the state of the selected provider, service, category, and operation
type SearchState ¶ added in v0.1.7
type SearchState struct {
IsActive bool // Whether search mode is active
Query string // Current search query
FilteredItems []interface{} // Items that match the search query
}
SearchState represents the state of the search functionality
type ServiceInfo ¶
ServiceInfo represents information about a service
type StageStatus ¶
type StageStatus = cloud.StageStatus
StageStatus is an alias for cloud.StageStatus