Documentation
¶
Index ¶
- func NewMock() (Factory, *Mock)
- type Client
- func (x *Client) CreateCheckRun(repo *model.GitHubRepo, commit string) (int64, error)
- func (x *Client) CreateIssueComment(repo *model.GitHubRepo, prID int, body string) error
- func (x *Client) GetCodeZip(repo *model.GitHubRepo, commitID string, w io.WriteCloser) error
- func (x *Client) UpdateCheckRun(repo *model.GitHubRepo, checkID int64, opt *github.UpdateCheckRunOptions) error
- type Factory
- type Interface
- type Mock
- func (x *Mock) CreateCheckRun(repo *model.GitHubRepo, commit string) (int64, error)
- func (x *Mock) CreateIssueComment(repo *model.GitHubRepo, prID int, body string) error
- func (x *Mock) GetCodeZip(repo *model.GitHubRepo, commitID string, w io.WriteCloser) error
- func (x *Mock) UpdateCheckRun(repo *model.GitHubRepo, checkID int64, opt *github.UpdateCheckRunOptions) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateCheckRun ¶
func (*Client) CreateIssueComment ¶
func (*Client) GetCodeZip ¶
func (x *Client) GetCodeZip(repo *model.GitHubRepo, commitID string, w io.WriteCloser) error
func (*Client) UpdateCheckRun ¶
func (x *Client) UpdateCheckRun(repo *model.GitHubRepo, checkID int64, opt *github.UpdateCheckRunOptions) error
type Interface ¶
type Interface interface { GetCodeZip(repo *model.GitHubRepo, commitID string, w io.WriteCloser) error CreateIssueComment(repo *model.GitHubRepo, prID int, body string) error CreateCheckRun(repo *model.GitHubRepo, commit string) (int64, error) UpdateCheckRun(repo *model.GitHubRepo, checkID int64, opt *github.UpdateCheckRunOptions) error }
type Mock ¶
type Mock struct { GetCodeZipMock func(repo *model.GitHubRepo, commitID string, w io.WriteCloser) error CreateIssueCommentMock func(repo *model.GitHubRepo, prID int, body string) error CreateCheckRunMock func(repo *model.GitHubRepo, commit string) (int64, error) UpdateCheckRunMock func(repo *model.GitHubRepo, checkID int64, opt *github.UpdateCheckRunOptions) error AppID int64 InstallID int64 PEM []byte }
func (*Mock) CreateCheckRun ¶
func (*Mock) CreateIssueComment ¶
func (*Mock) GetCodeZip ¶
func (x *Mock) GetCodeZip(repo *model.GitHubRepo, commitID string, w io.WriteCloser) error
func (*Mock) UpdateCheckRun ¶
func (x *Mock) UpdateCheckRun(repo *model.GitHubRepo, checkID int64, opt *github.UpdateCheckRunOptions) error
Click to show internal directories.
Click to hide internal directories.