Documentation ¶
Index ¶
- type FakeGithubClient
- func (g *FakeGithubClient) AddLabels(_, _ string, _ int, _ ...string) error
- func (g *FakeGithubClient) CreatePullRequest(_, _, _, _, _, _ string, _ bool) (int, error)
- func (g *FakeGithubClient) EnsureFork(_, _, repo string) (string, error)
- func (g *FakeGithubClient) GetBranches(_, _ string, onlyProtected bool) ([]github.Branch, error)
- func (g *FakeGithubClient) GetPullRequests(_, _ string) ([]github.PullRequest, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeGithubClient ¶
type FakeGithubClient struct { ProtectedBranches []github.Branch UnprotectedBranches []github.Branch }
FakeGithubClient fakes the prow GitHubClient
func (*FakeGithubClient) AddLabels ¶
func (g *FakeGithubClient) AddLabels(_, _ string, _ int, _ ...string) error
AddLabels is a fake for AddLabels
func (*FakeGithubClient) CreatePullRequest ¶
func (g *FakeGithubClient) CreatePullRequest(_, _, _, _, _, _ string, _ bool) (int, error)
CreatePullRequest is a fake for CreatePullRequest
func (*FakeGithubClient) EnsureFork ¶
func (g *FakeGithubClient) EnsureFork(_, _, repo string) (string, error)
EnsureFork is a fake for EnsureFork
func (*FakeGithubClient) GetBranches ¶
GetBranches is a fake for GetBranches
func (*FakeGithubClient) GetPullRequests ¶
func (g *FakeGithubClient) GetPullRequests(_, _ string) ([]github.PullRequest, error)
GetPullRequests is a fake for GetPullRequests
Click to show internal directories.
Click to hide internal directories.