Documentation
¶
Index ¶
- type CancelWorkflowInput
- type CancelWorkflowOutput
- type GetTriggerableWorkflowsInput
- type GetTriggerableWorkflowsOutput
- type GetWorkflowHistoryInput
- type GetWorkflowHistoryOutput
- type GithubRepository
- type InspectWorkflowInput
- type InspectWorkflowOutput
- type ListRepositoriesInput
- type ListRepositoriesOutput
- type ReRunFailedJobsInput
- type ReRunFailedJobsOutput
- type ReRunWorkflowInput
- type ReRunWorkflowOutput
- type TriggerWorkflowInput
- type TriggerWorkflowOutput
- type TriggerableWorkflow
- type UseCase
- type Workflow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CancelWorkflowInput ¶
type CancelWorkflowOutput ¶
type CancelWorkflowOutput struct {
}
type GetTriggerableWorkflowsOutput ¶
type GetTriggerableWorkflowsOutput struct {
TriggerableWorkflows []TriggerableWorkflow
}
type GetWorkflowHistoryInput ¶
type GetWorkflowHistoryOutput ¶
type GetWorkflowHistoryOutput struct {
Workflows []Workflow
}
type GithubRepository ¶
type InspectWorkflowInput ¶
type InspectWorkflowOutput ¶
type ListRepositoriesInput ¶
type ListRepositoriesInput struct {
}
type ListRepositoriesOutput ¶
type ListRepositoriesOutput struct {
Repositories []GithubRepository
}
type ReRunFailedJobsInput ¶
type ReRunFailedJobsOutput ¶
type ReRunFailedJobsOutput struct {
}
type ReRunWorkflowInput ¶
type ReRunWorkflowOutput ¶
type ReRunWorkflowOutput struct {
}
type TriggerWorkflowInput ¶
type TriggerWorkflowOutput ¶
type TriggerWorkflowOutput struct {
}
type TriggerableWorkflow ¶
type UseCase ¶
type UseCase interface {
ListRepositories(ctx context.Context, input ListRepositoriesInput) (*ListRepositoriesOutput, error)
GetWorkflowHistory(ctx context.Context, input GetWorkflowHistoryInput) (*GetWorkflowHistoryOutput, error)
GetTriggerableWorkflows(ctx context.Context, input GetTriggerableWorkflowsInput) (*GetTriggerableWorkflowsOutput, error)
InspectWorkflow(ctx context.Context, input InspectWorkflowInput) (*InspectWorkflowOutput, error)
TriggerWorkflow(ctx context.Context, input TriggerWorkflowInput) (*TriggerWorkflowOutput, error)
ReRunFailedJobs(ctx context.Context, input ReRunFailedJobsInput) (*ReRunFailedJobsOutput, error)
ReRunWorkflow(ctx context.Context, input ReRunWorkflowInput) (*ReRunWorkflowOutput, error)
CancelWorkflow(ctx context.Context, input CancelWorkflowInput) (*CancelWorkflowOutput, error)
}
func New ¶
func New(githubRepository gr.Repository) UseCase
type Workflow ¶
type Workflow struct {
ID int64 // workflow id
WorkflowName string // workflow name
ActionName string // commit message
TriggeredBy string // who triggered this workflow
StartedAt string // workflow's started at
Status string // workflow's status, like success, failure, etc.
Conclusion string // workflow's conclusion, like success, failure, etc.
Duration string // workflow's duration
}
Click to show internal directories.
Click to hide internal directories.