Documentation
¶
Index ¶
- type DeployStatus
- type InteractiveModel
- func (m *InteractiveModel) AddBuildLog(idx int, log string)
- func (m *InteractiveModel) Complete()
- func (m *InteractiveModel) Init() tea.Cmd
- func (m *InteractiveModel) SetProgram(p *tea.Program)
- func (m *InteractiveModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (m *InteractiveModel) UpdateResource(idx int, status DeployStatus, statusText string, err error)
- func (m *InteractiveModel) View() string
- type Resource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeployStatus ¶
type DeployStatus int
Resource deployment statuses
const ( StatusPending DeployStatus = iota StatusCompressing StatusUploading StatusBuilding StatusDeploying StatusComplete StatusFailed )
type InteractiveModel ¶
type InteractiveModel struct {
// contains filtered or unexported fields
}
InteractiveModel represents the interactive deployment UI
func NewInteractiveModel ¶
func NewInteractiveModel(resources []*Resource) *InteractiveModel
NewInteractiveModel creates a new interactive deployment model
func (*InteractiveModel) AddBuildLog ¶
func (m *InteractiveModel) AddBuildLog(idx int, log string)
AddBuildLog adds a build log line for a resource
func (*InteractiveModel) Complete ¶
func (m *InteractiveModel) Complete()
Complete marks the deployment as complete
func (*InteractiveModel) Init ¶
func (m *InteractiveModel) Init() tea.Cmd
func (*InteractiveModel) SetProgram ¶ added in v0.1.46
func (m *InteractiveModel) SetProgram(p *tea.Program)
SetProgram sets the tea.Program reference for sending messages
func (*InteractiveModel) UpdateResource ¶
func (m *InteractiveModel) UpdateResource(idx int, status DeployStatus, statusText string, err error)
UpdateResource updates the status of a resource
func (*InteractiveModel) View ¶
func (m *InteractiveModel) View() string
type Resource ¶
type Resource struct {
Kind string
Name string
Status DeployStatus
StatusText string
BuildLogs []string
AutoGenerated bool
Error error
CallbackSecret string // Secret for async callback URL
// contains filtered or unexported fields
}
Resource represents a deployable resource
func (*Resource) SetCallbackSecret ¶ added in v0.1.63
SetCallbackSecret sets the callback secret for a resource
Click to show internal directories.
Click to hide internal directories.