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 (*Client) DeleteWebHook ¶
func (*Client) GetFileContent ¶
func (*Client) GetLatestRepositoryCommit ¶
func (c *Client) GetLatestRepositoryCommit(owner, repo, path, branch string) (*git.RepositoryCommit, error)
func (*Client) GetTreeContents ¶
func (*Client) GetYAMLContents ¶
func (*Client) RefreshWebHookSecret ¶
func (*Client) UpdateCheckStatus ¶
func (c *Client) UpdateCheckStatus(opt *StatusOptions) error
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.