Documentation
¶
Index ¶
- type CancelWorkflowInput
- type GetAuthUserOutput
- type GetRepositoryBranchesInput
- type GetRepositoryBranchesOutput
- type GetTriggerableWorkflowsInput
- type GetTriggerableWorkflowsOutput
- type GetWorkflowHistoryInput
- type GetWorkflowHistoryOutput
- type GithubBranch
- type GithubRepository
- type GithubUser
- type InspectWorkflowInput
- type InspectWorkflowOutput
- type ListRepositoriesInput
- type ListRepositoriesOutput
- type ReRunFailedJobsInput
- type ReRunWorkflowInput
- type TriggerWorkflowInput
- 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 GetAuthUserOutput ¶ added in v1.1.1
type GetAuthUserOutput struct {
GithubUser
}
type GetRepositoryBranchesInput ¶ added in v1.2.0
type GetRepositoryBranchesInput struct {
Repository string
}
type GetRepositoryBranchesOutput ¶ added in v1.2.0
type GetRepositoryBranchesOutput struct {
Branches []GithubBranch
}
type GetTriggerableWorkflowsOutput ¶
type GetTriggerableWorkflowsOutput struct {
TriggerableWorkflows []TriggerableWorkflow
}
type GetWorkflowHistoryInput ¶
type GetWorkflowHistoryOutput ¶
type GetWorkflowHistoryOutput struct {
Workflows []Workflow
}
type GithubBranch ¶ added in v1.2.0
type GithubRepository ¶
type GithubUser ¶ added in v1.1.1
type InspectWorkflowInput ¶
type InspectWorkflowOutput ¶
type ListRepositoriesInput ¶
func (*ListRepositoriesInput) Prepare ¶ added in v1.1.1
func (i *ListRepositoriesInput) Prepare()
type ListRepositoriesOutput ¶
type ListRepositoriesOutput struct {
Repositories []GithubRepository
}
type ReRunFailedJobsInput ¶
type ReRunWorkflowInput ¶
type TriggerWorkflowInput ¶
type TriggerableWorkflow ¶
type UseCase ¶
type UseCase interface {
GetAuthUser(ctx context.Context) (*GetAuthUserOutput, error)
ListRepositories(ctx context.Context, input ListRepositoriesInput) (*ListRepositoriesOutput, error)
GetRepositoryBranches(ctx context.Context, input GetRepositoryBranchesInput) (*GetRepositoryBranchesOutput, 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) error
ReRunFailedJobs(ctx context.Context, input ReRunFailedJobsInput) error
ReRunWorkflow(ctx context.Context, input ReRunWorkflowInput) error
CancelWorkflow(ctx context.Context, input CancelWorkflowInput) 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.