Documentation ¶
Index ¶
- Constants
- func GetTaskLink(baseURI, productName, pipelineName, displayName string, ...) string
- func UIType(pipelineType config.PipelineType) string
- type CIStatus
- type Client
- func (c *Client) CompleteGitCheck(gitCheckID int64, status CIStatus, check *GitCheck) error
- func (c *Client) CreateWebHook(owner, repo string) (string, error)
- func (c *Client) DeleteWebHook(owner, repo, hookID string) error
- func (c *Client) GetFileContent(owner, repo, path, branch string) ([]byte, error)
- func (c *Client) GetLatestRepositoryCommit(owner, repo, path, branch string) (*git.RepositoryCommit, error)
- func (c *Client) GetTree(owner, repo, path, branch string) ([]*git.TreeNode, error)
- func (c *Client) GetTreeContents(owner, repo, path, branch string) (afero.Fs, error)
- func (c *Client) GetYAMLContents(owner, repo, path, branch string, isDir, split bool) ([]string, error)
- func (c *Client) RefreshWebHookSecret(secret, owner, repo, hookID string) error
- func (c *Client) StartGitCheck(check *GitCheck) (int64, error)
- func (c *Client) UpdateCheckStatus(opt *StatusOptions) error
- func (c *Client) UpdateGitCheck(gitCheckID int64, check *GitCheck) error
- type GitCheck
- type StatusOptions
Constants ¶
View Source
const ( StatusQueued = "queued" StatusInProgress = "in_progress" StatusCompleted = "completed" )
View Source
const ( StateError = "error" StateFailure = "failure" StatePending = "pending" StateSuccess = "success" )
Variables ¶
This section is empty.
Functions ¶
func GetTaskLink ¶
func GetTaskLink(baseURI, productName, pipelineName, displayName string, pipelineType config.PipelineType, taskID int64) string
func UIType ¶
func UIType(pipelineType config.PipelineType) string
Types ¶
type Client ¶
func GetGithubAppClientByOwner ¶ added in v1.2.0
func (*Client) CompleteGitCheck ¶ added in v1.2.0
https://developer.github.com/v3/checks/runs/#update-a-check-run
func (*Client) CreateWebHook ¶ added in v1.2.0
func (*Client) DeleteWebHook ¶ added in v1.2.0
func (*Client) GetFileContent ¶ added in v1.5.0
func (*Client) GetLatestRepositoryCommit ¶ added in v1.4.0
func (c *Client) GetLatestRepositoryCommit(owner, repo, path, branch string) (*git.RepositoryCommit, error)
func (*Client) GetTreeContents ¶ added in v1.4.0
func (*Client) GetYAMLContents ¶ added in v1.4.0
func (*Client) RefreshWebHookSecret ¶ added in v1.7.0
func (*Client) StartGitCheck ¶ added in v1.2.0
https://developer.github.com/v3/checks/runs/#create-a-check-run
func (*Client) UpdateCheckStatus ¶ added in v1.2.0
func (c *Client) UpdateCheckStatus(opt *StatusOptions) error
func (*Client) UpdateGitCheck ¶ added in v1.2.0
https://developer.github.com/v3/checks/runs/#update-a-check-run
type GitCheck ¶
type GitCheck struct { Owner string Repo string Branch string // The name of the branch to perform a check against. (Required.) Ref string // The SHA of the commit. (Required.) IsPr bool AslanURL string PipeName string DisplayName string ProductName string PipeType config.PipelineType TaskID int64 TestReports []*commonmodels.TestSuite }
Click to show internal directories.
Click to hide internal directories.