Documentation
¶
Index ¶
- Constants
- func InitialModel(ghClient *githubv4.Client, workflows []Workflow, outputFmt OutputFmt, ...) model
- func RenderUI(ghClient *githubv4.Client, workflows []Workflow, outputFmt OutputFmt, ...)
- func RightPadTrim(s string, length int) string
- func Trim(s string, length int) string
- type CommitResult
- type HTMLData
- type HTMLDataRow
- type HTMLWorkflowResult
- type NodeResult
- type OutputFmt
- type QueryResult
- type Workflow
- type WorkflowResult
- type WorkflowRunNodesResult
- type WorkflowRunsFetchedMsg
Constants ¶
View Source
const ( RUN_NUMBER_WIDTH = 25 WORKFLOW_NAME_WIDTH = 30 )
View Source
const ( ErrorFetchingVersion = "error" SystemNotFound = "not found" )
View Source
const (
HTMLTemplText = `` /* 2067-byte string literal not displayed */
)
Variables ¶
This section is empty.
Functions ¶
func InitialModel ¶
func RightPadTrim ¶
Types ¶
type CommitResult ¶
type HTMLDataRow ¶
type HTMLDataRow struct {
Key string
Data []HTMLWorkflowResult
}
type HTMLWorkflowResult ¶
type NodeResult ¶
type NodeResult struct {
Id string
Workflow WorkflowResult `graphql:"... on Workflow"`
}
type QueryResult ¶
type QueryResult struct {
NodeResult `graphql:"node(id: $workflowId)"`
}
type WorkflowResult ¶
type WorkflowResult struct {
Name string
Id string
Runs struct {
Nodes []WorkflowRunNodesResult
} `graphql:"runs(first: $numWorkflowRuns)"`
}
type WorkflowRunNodesResult ¶
type WorkflowRunsFetchedMsg ¶
type WorkflowRunsFetchedMsg struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.