Documentation ¶
Index ¶
- func AgentDataTable(agent buildkite.Agent) string
- func DefaultItemStyles() (s itemStyles)
- func MapStatusToColour(s string) lipgloss.Color
- func NewDelegate() listAgentDelegate
- func ParseMetadata(metadataList []string) (string, string)
- type AgentItemsMsg
- type AgentListItem
- type AgentListModel
- type BulkAgent
- type Status
- type StatusUpdate
- type StopFn
- type StoppableAgent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AgentDataTable ¶
func AgentDataTable(agent buildkite.Agent) string
func DefaultItemStyles ¶
func DefaultItemStyles() (s itemStyles)
func MapStatusToColour ¶
func NewDelegate ¶
func NewDelegate() listAgentDelegate
func ParseMetadata ¶
Types ¶
type AgentItemsMsg ¶
type AgentItemsMsg struct {
// contains filtered or unexported fields
}
func NewAgentItemsMsg ¶
func NewAgentItemsMsg(items []AgentListItem, page int) AgentItemsMsg
func (AgentItemsMsg) ListItems ¶
func (a AgentItemsMsg) ListItems() []list.Item
type AgentListItem ¶
type AgentListItem struct {
buildkite.Agent
}
AgentListItem implements list.Item for displaying in a list
func (AgentListItem) FilterValue ¶
func (ali AgentListItem) FilterValue() string
func (AgentListItem) QueueName ¶
func (ali AgentListItem) QueueName() string
type AgentListModel ¶
type AgentListModel struct {
// contains filtered or unexported fields
}
func NewAgentList ¶
func NewAgentList(loader func(int) tea.Cmd, page, perpage int) AgentListModel
func (AgentListModel) Init ¶
func (m AgentListModel) Init() tea.Cmd
func (AgentListModel) View ¶
func (m AgentListModel) View() string
type BulkAgent ¶
type BulkAgent struct {
Agents []StoppableAgent
}
BulkAgent aggregates multiple StoppableAgents to stop them in parallel and display the progress to the user.
type StatusUpdate ¶
StatusUpdate is used to update the internal state of a StoppableAgent
type StopFn ¶
type StopFn func() StatusUpdate
StopFn represents a function that returns a StatusUpdate Use a function of this type to update the state of a StoppableAgent
type StoppableAgent ¶
type StoppableAgent struct {
// contains filtered or unexported fields
}
func NewStoppableAgent ¶
func NewStoppableAgent(id string, stopFn StopFn) StoppableAgent
func (StoppableAgent) Errored ¶
func (agent StoppableAgent) Errored() bool
Click to show internal directories.
Click to hide internal directories.