Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GitHubPlugin ¶
func GitHubPlugin(plugin Executor) func(w http.ResponseWriter, req *http.Request)
Types ¶
type ActionSpec ¶
type ActionSpec struct { Issue *IssueActionSpec `json:"issue,omitempty"` Timeout string `json:"timeout,omitempty"` }
type Executor ¶
type Executor interface { Authorize(req *http.Request) error // Execute runs commands based on the args provided from the workflow Execute(args executor.ExecuteTemplateArgs) executor.ExecuteTemplateReply }
Executor performs the tasks requested by the Workflow.
type GitHubClient ¶
type GitHubClient struct {
Issues GitHubIssuesClient
}
type GitHubExecutor ¶
type GitHubExecutor struct {
// contains filtered or unexported fields
}
func NewGitHubExecutor ¶
func NewGitHubExecutor(client *GitHubClient, agentToken string) GitHubExecutor
func (*GitHubExecutor) Execute ¶
func (e *GitHubExecutor) Execute(args executor.ExecuteTemplateArgs) executor.ExecuteTemplateReply
type GitHubIssuesClient ¶
type IssueActionSpec ¶
type IssueActionSpec struct { Comment *IssueCommentAction `json:"comment,omitempty"` Create *IssueCreateAction `json:"create,omitempty"` }
type IssueCommentAction ¶
type IssueCreateAction ¶
type IssueCreateAction struct { Owner string `json:"owner,omitempty"` Repo string `json:"repo,omitempty"` Request *github.IssueRequest `json:"-"` }
type PluginSpec ¶
type PluginSpec struct {
GitHub *ActionSpec `json:"github,omitempty"`
}
PluginSpec represents the `plugin` block of an Argo Workflows template.
Click to show internal directories.
Click to hide internal directories.