Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client manages client side of Gitlab REST API
func (*Client) PublishCommitStatus ¶
func (c *Client) PublishCommitStatus(repository, commitSHA, labelName, targetURL, description string, status CommitStatus) error
PublishCommitStatus publishes a commit status for a given SHA
type CommitStatus ¶
type CommitStatus string
CommitStatus represents a commit status
const ( // CommitStatusSuccess represents a success of commit status CommitStatusSuccess CommitStatus = "success" // CommitStatusFailure represents a failure of commit status CommitStatusFailure CommitStatus = "failed" )
type Gitlab ¶
type Gitlab interface { // PublishCommitStatus publishes a commit status for a given SHA PublishCommitStatus(repository, commitSHA, labelName, targetURL, description string, status CommitStatus) error }
Gitlab is the interface of Gitlab using Gitlab REST API
Click to show internal directories.
Click to hide internal directories.