Documentation
¶
Index ¶
- type MockGitHubClient
- func (_mock *MockGitHubClient) AddLabelsToPullRequest(ctx context.Context, owner string, repo string, number int, labels []string) error
- func (_mock *MockGitHubClient) CreatePullRequest(ctx context.Context, owner string, repo string, pull *github.NewPullRequest) (*github.PullRequest, error)
- func (_mock *MockGitHubClient) CreateRepo(ctx context.Context, owner string, slug string) (*github.Repository, error)
- func (_mock *MockGitHubClient) DownloadAsset(ctx context.Context, owner string, repo string, assetID int64) (io.ReadCloser, error)
- func (_mock *MockGitHubClient) DownloadAssetTo(ctx context.Context, fs afero.Fs, owner string, repo string, assetID int64, ...) error
- func (_m *MockGitHubClient) EXPECT() *MockGitHubClient_Expecter
- func (_mock *MockGitHubClient) GetClient() *github.Client
- func (_mock *MockGitHubClient) GetFileContents(ctx context.Context, owner string, repo string, path string, ref string) (string, error)
- func (_mock *MockGitHubClient) GetPullRequestByBranch(ctx context.Context, owner string, repo string, branch string, state string) (*github.PullRequest, error)
- func (_mock *MockGitHubClient) GetReleaseAssetID(ctx context.Context, owner string, repo string, tag string, assetName string) (int64, error)
- func (_mock *MockGitHubClient) GetReleaseAssets(ctx context.Context, owner string, repo string, tag string) ([]*github.ReleaseAsset, error)
- func (_mock *MockGitHubClient) ListReleases(ctx context.Context, owner string, repo string) ([]string, error)
- func (_mock *MockGitHubClient) UpdatePullRequest(ctx context.Context, owner string, repo string, number int, ...) (*github.PullRequest, *github.Response, error)
- func (_mock *MockGitHubClient) UploadKey(ctx context.Context, name string, key []byte) error
- type MockGitHubClient_AddLabelsToPullRequest_Call
- func (_c *MockGitHubClient_AddLabelsToPullRequest_Call) Return(err error) *MockGitHubClient_AddLabelsToPullRequest_Call
- func (_c *MockGitHubClient_AddLabelsToPullRequest_Call) Run(...) *MockGitHubClient_AddLabelsToPullRequest_Call
- func (_c *MockGitHubClient_AddLabelsToPullRequest_Call) RunAndReturn(...) *MockGitHubClient_AddLabelsToPullRequest_Call
- type MockGitHubClient_CreatePullRequest_Call
- func (_c *MockGitHubClient_CreatePullRequest_Call) Return(pullRequest *github.PullRequest, err error) *MockGitHubClient_CreatePullRequest_Call
- func (_c *MockGitHubClient_CreatePullRequest_Call) Run(...) *MockGitHubClient_CreatePullRequest_Call
- func (_c *MockGitHubClient_CreatePullRequest_Call) RunAndReturn(...) *MockGitHubClient_CreatePullRequest_Call
- type MockGitHubClient_CreateRepo_Call
- func (_c *MockGitHubClient_CreateRepo_Call) Return(repository *github.Repository, err error) *MockGitHubClient_CreateRepo_Call
- func (_c *MockGitHubClient_CreateRepo_Call) Run(run func(ctx context.Context, owner string, slug string)) *MockGitHubClient_CreateRepo_Call
- func (_c *MockGitHubClient_CreateRepo_Call) RunAndReturn(...) *MockGitHubClient_CreateRepo_Call
- type MockGitHubClient_DownloadAssetTo_Call
- func (_c *MockGitHubClient_DownloadAssetTo_Call) Return(err error) *MockGitHubClient_DownloadAssetTo_Call
- func (_c *MockGitHubClient_DownloadAssetTo_Call) Run(...) *MockGitHubClient_DownloadAssetTo_Call
- func (_c *MockGitHubClient_DownloadAssetTo_Call) RunAndReturn(...) *MockGitHubClient_DownloadAssetTo_Call
- type MockGitHubClient_DownloadAsset_Call
- func (_c *MockGitHubClient_DownloadAsset_Call) Return(readCloser io.ReadCloser, err error) *MockGitHubClient_DownloadAsset_Call
- func (_c *MockGitHubClient_DownloadAsset_Call) Run(run func(ctx context.Context, owner string, repo string, assetID int64)) *MockGitHubClient_DownloadAsset_Call
- func (_c *MockGitHubClient_DownloadAsset_Call) RunAndReturn(...) *MockGitHubClient_DownloadAsset_Call
- type MockGitHubClient_Expecter
- func (_e *MockGitHubClient_Expecter) AddLabelsToPullRequest(ctx interface{}, owner interface{}, repo interface{}, number interface{}, ...) *MockGitHubClient_AddLabelsToPullRequest_Call
- func (_e *MockGitHubClient_Expecter) CreatePullRequest(ctx interface{}, owner interface{}, repo interface{}, pull interface{}) *MockGitHubClient_CreatePullRequest_Call
- func (_e *MockGitHubClient_Expecter) CreateRepo(ctx interface{}, owner interface{}, slug interface{}) *MockGitHubClient_CreateRepo_Call
- func (_e *MockGitHubClient_Expecter) DownloadAsset(ctx interface{}, owner interface{}, repo interface{}, assetID interface{}) *MockGitHubClient_DownloadAsset_Call
- func (_e *MockGitHubClient_Expecter) DownloadAssetTo(ctx interface{}, fs interface{}, owner interface{}, repo interface{}, ...) *MockGitHubClient_DownloadAssetTo_Call
- func (_e *MockGitHubClient_Expecter) GetClient() *MockGitHubClient_GetClient_Call
- func (_e *MockGitHubClient_Expecter) GetFileContents(ctx interface{}, owner interface{}, repo interface{}, path interface{}, ...) *MockGitHubClient_GetFileContents_Call
- func (_e *MockGitHubClient_Expecter) GetPullRequestByBranch(ctx interface{}, owner interface{}, repo interface{}, branch interface{}, ...) *MockGitHubClient_GetPullRequestByBranch_Call
- func (_e *MockGitHubClient_Expecter) GetReleaseAssetID(ctx interface{}, owner interface{}, repo interface{}, tag interface{}, ...) *MockGitHubClient_GetReleaseAssetID_Call
- func (_e *MockGitHubClient_Expecter) GetReleaseAssets(ctx interface{}, owner interface{}, repo interface{}, tag interface{}) *MockGitHubClient_GetReleaseAssets_Call
- func (_e *MockGitHubClient_Expecter) ListReleases(ctx interface{}, owner interface{}, repo interface{}) *MockGitHubClient_ListReleases_Call
- func (_e *MockGitHubClient_Expecter) UpdatePullRequest(ctx interface{}, owner interface{}, repo interface{}, number interface{}, ...) *MockGitHubClient_UpdatePullRequest_Call
- func (_e *MockGitHubClient_Expecter) UploadKey(ctx interface{}, name interface{}, key interface{}) *MockGitHubClient_UploadKey_Call
- type MockGitHubClient_GetClient_Call
- func (_c *MockGitHubClient_GetClient_Call) Return(client *github.Client) *MockGitHubClient_GetClient_Call
- func (_c *MockGitHubClient_GetClient_Call) Run(run func()) *MockGitHubClient_GetClient_Call
- func (_c *MockGitHubClient_GetClient_Call) RunAndReturn(run func() *github.Client) *MockGitHubClient_GetClient_Call
- type MockGitHubClient_GetFileContents_Call
- func (_c *MockGitHubClient_GetFileContents_Call) Return(s string, err error) *MockGitHubClient_GetFileContents_Call
- func (_c *MockGitHubClient_GetFileContents_Call) Run(...) *MockGitHubClient_GetFileContents_Call
- func (_c *MockGitHubClient_GetFileContents_Call) RunAndReturn(...) *MockGitHubClient_GetFileContents_Call
- type MockGitHubClient_GetPullRequestByBranch_Call
- func (_c *MockGitHubClient_GetPullRequestByBranch_Call) Return(pullRequest *github.PullRequest, err error) *MockGitHubClient_GetPullRequestByBranch_Call
- func (_c *MockGitHubClient_GetPullRequestByBranch_Call) Run(...) *MockGitHubClient_GetPullRequestByBranch_Call
- func (_c *MockGitHubClient_GetPullRequestByBranch_Call) RunAndReturn(...) *MockGitHubClient_GetPullRequestByBranch_Call
- type MockGitHubClient_GetReleaseAssetID_Call
- func (_c *MockGitHubClient_GetReleaseAssetID_Call) Return(n int64, err error) *MockGitHubClient_GetReleaseAssetID_Call
- func (_c *MockGitHubClient_GetReleaseAssetID_Call) Run(...) *MockGitHubClient_GetReleaseAssetID_Call
- func (_c *MockGitHubClient_GetReleaseAssetID_Call) RunAndReturn(...) *MockGitHubClient_GetReleaseAssetID_Call
- type MockGitHubClient_GetReleaseAssets_Call
- func (_c *MockGitHubClient_GetReleaseAssets_Call) Return(releaseAssets []*github.ReleaseAsset, err error) *MockGitHubClient_GetReleaseAssets_Call
- func (_c *MockGitHubClient_GetReleaseAssets_Call) Run(run func(ctx context.Context, owner string, repo string, tag string)) *MockGitHubClient_GetReleaseAssets_Call
- func (_c *MockGitHubClient_GetReleaseAssets_Call) RunAndReturn(...) *MockGitHubClient_GetReleaseAssets_Call
- type MockGitHubClient_ListReleases_Call
- func (_c *MockGitHubClient_ListReleases_Call) Return(strings []string, err error) *MockGitHubClient_ListReleases_Call
- func (_c *MockGitHubClient_ListReleases_Call) Run(run func(ctx context.Context, owner string, repo string)) *MockGitHubClient_ListReleases_Call
- func (_c *MockGitHubClient_ListReleases_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string) ([]string, error)) *MockGitHubClient_ListReleases_Call
- type MockGitHubClient_UpdatePullRequest_Call
- func (_c *MockGitHubClient_UpdatePullRequest_Call) Return(pullRequest *github.PullRequest, response *github.Response, err error) *MockGitHubClient_UpdatePullRequest_Call
- func (_c *MockGitHubClient_UpdatePullRequest_Call) Run(run func(ctx context.Context, owner string, repo string, number int, ...)) *MockGitHubClient_UpdatePullRequest_Call
- func (_c *MockGitHubClient_UpdatePullRequest_Call) RunAndReturn(...) *MockGitHubClient_UpdatePullRequest_Call
- type MockGitHubClient_UploadKey_Call
- func (_c *MockGitHubClient_UploadKey_Call) Return(err error) *MockGitHubClient_UploadKey_Call
- func (_c *MockGitHubClient_UploadKey_Call) Run(run func(ctx context.Context, name string, key []byte)) *MockGitHubClient_UploadKey_Call
- func (_c *MockGitHubClient_UploadKey_Call) RunAndReturn(run func(ctx context.Context, name string, key []byte) error) *MockGitHubClient_UploadKey_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockGitHubClient ¶
MockGitHubClient is an autogenerated mock type for the GitHubClient type
func NewMockGitHubClient ¶
func NewMockGitHubClient(t interface {
mock.TestingT
Cleanup(func())
}) *MockGitHubClient
NewMockGitHubClient creates a new instance of MockGitHubClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockGitHubClient) AddLabelsToPullRequest ¶
func (_mock *MockGitHubClient) AddLabelsToPullRequest(ctx context.Context, owner string, repo string, number int, labels []string) error
AddLabelsToPullRequest provides a mock function for the type MockGitHubClient
func (*MockGitHubClient) CreatePullRequest ¶
func (_mock *MockGitHubClient) CreatePullRequest(ctx context.Context, owner string, repo string, pull *github.NewPullRequest) (*github.PullRequest, error)
CreatePullRequest provides a mock function for the type MockGitHubClient
func (*MockGitHubClient) CreateRepo ¶
func (_mock *MockGitHubClient) CreateRepo(ctx context.Context, owner string, slug string) (*github.Repository, error)
CreateRepo provides a mock function for the type MockGitHubClient
func (*MockGitHubClient) DownloadAsset ¶
func (_mock *MockGitHubClient) DownloadAsset(ctx context.Context, owner string, repo string, assetID int64) (io.ReadCloser, error)
DownloadAsset provides a mock function for the type MockGitHubClient
func (*MockGitHubClient) DownloadAssetTo ¶
func (_mock *MockGitHubClient) DownloadAssetTo(ctx context.Context, fs afero.Fs, owner string, repo string, assetID int64, filePath string) error
DownloadAssetTo provides a mock function for the type MockGitHubClient
func (*MockGitHubClient) EXPECT ¶
func (_m *MockGitHubClient) EXPECT() *MockGitHubClient_Expecter
func (*MockGitHubClient) GetClient ¶
func (_mock *MockGitHubClient) GetClient() *github.Client
GetClient provides a mock function for the type MockGitHubClient
func (*MockGitHubClient) GetFileContents ¶
func (_mock *MockGitHubClient) GetFileContents(ctx context.Context, owner string, repo string, path string, ref string) (string, error)
GetFileContents provides a mock function for the type MockGitHubClient
func (*MockGitHubClient) GetPullRequestByBranch ¶
func (_mock *MockGitHubClient) GetPullRequestByBranch(ctx context.Context, owner string, repo string, branch string, state string) (*github.PullRequest, error)
GetPullRequestByBranch provides a mock function for the type MockGitHubClient
func (*MockGitHubClient) GetReleaseAssetID ¶
func (_mock *MockGitHubClient) GetReleaseAssetID(ctx context.Context, owner string, repo string, tag string, assetName string) (int64, error)
GetReleaseAssetID provides a mock function for the type MockGitHubClient
func (*MockGitHubClient) GetReleaseAssets ¶
func (_mock *MockGitHubClient) GetReleaseAssets(ctx context.Context, owner string, repo string, tag string) ([]*github.ReleaseAsset, error)
GetReleaseAssets provides a mock function for the type MockGitHubClient
func (*MockGitHubClient) ListReleases ¶
func (_mock *MockGitHubClient) ListReleases(ctx context.Context, owner string, repo string) ([]string, error)
ListReleases provides a mock function for the type MockGitHubClient
func (*MockGitHubClient) UpdatePullRequest ¶
func (_mock *MockGitHubClient) UpdatePullRequest(ctx context.Context, owner string, repo string, number int, pull *github.PullRequest) (*github.PullRequest, *github.Response, error)
UpdatePullRequest provides a mock function for the type MockGitHubClient
type MockGitHubClient_AddLabelsToPullRequest_Call ¶
MockGitHubClient_AddLabelsToPullRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddLabelsToPullRequest'
func (*MockGitHubClient_AddLabelsToPullRequest_Call) Return ¶
func (_c *MockGitHubClient_AddLabelsToPullRequest_Call) Return(err error) *MockGitHubClient_AddLabelsToPullRequest_Call
func (*MockGitHubClient_AddLabelsToPullRequest_Call) Run ¶
func (_c *MockGitHubClient_AddLabelsToPullRequest_Call) Run(run func(ctx context.Context, owner string, repo string, number int, labels []string)) *MockGitHubClient_AddLabelsToPullRequest_Call
func (*MockGitHubClient_AddLabelsToPullRequest_Call) RunAndReturn ¶
func (_c *MockGitHubClient_AddLabelsToPullRequest_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, number int, labels []string) error) *MockGitHubClient_AddLabelsToPullRequest_Call
type MockGitHubClient_CreatePullRequest_Call ¶
MockGitHubClient_CreatePullRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreatePullRequest'
func (*MockGitHubClient_CreatePullRequest_Call) Return ¶
func (_c *MockGitHubClient_CreatePullRequest_Call) Return(pullRequest *github.PullRequest, err error) *MockGitHubClient_CreatePullRequest_Call
func (*MockGitHubClient_CreatePullRequest_Call) Run ¶
func (_c *MockGitHubClient_CreatePullRequest_Call) Run(run func(ctx context.Context, owner string, repo string, pull *github.NewPullRequest)) *MockGitHubClient_CreatePullRequest_Call
func (*MockGitHubClient_CreatePullRequest_Call) RunAndReturn ¶
func (_c *MockGitHubClient_CreatePullRequest_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, pull *github.NewPullRequest) (*github.PullRequest, error)) *MockGitHubClient_CreatePullRequest_Call
type MockGitHubClient_CreateRepo_Call ¶
MockGitHubClient_CreateRepo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateRepo'
func (*MockGitHubClient_CreateRepo_Call) Return ¶
func (_c *MockGitHubClient_CreateRepo_Call) Return(repository *github.Repository, err error) *MockGitHubClient_CreateRepo_Call
func (*MockGitHubClient_CreateRepo_Call) Run ¶
func (_c *MockGitHubClient_CreateRepo_Call) Run(run func(ctx context.Context, owner string, slug string)) *MockGitHubClient_CreateRepo_Call
func (*MockGitHubClient_CreateRepo_Call) RunAndReturn ¶
func (_c *MockGitHubClient_CreateRepo_Call) RunAndReturn(run func(ctx context.Context, owner string, slug string) (*github.Repository, error)) *MockGitHubClient_CreateRepo_Call
type MockGitHubClient_DownloadAssetTo_Call ¶
MockGitHubClient_DownloadAssetTo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DownloadAssetTo'
func (*MockGitHubClient_DownloadAssetTo_Call) Return ¶
func (_c *MockGitHubClient_DownloadAssetTo_Call) Return(err error) *MockGitHubClient_DownloadAssetTo_Call
func (*MockGitHubClient_DownloadAssetTo_Call) Run ¶
func (_c *MockGitHubClient_DownloadAssetTo_Call) Run(run func(ctx context.Context, fs afero.Fs, owner string, repo string, assetID int64, filePath string)) *MockGitHubClient_DownloadAssetTo_Call
func (*MockGitHubClient_DownloadAssetTo_Call) RunAndReturn ¶
type MockGitHubClient_DownloadAsset_Call ¶
MockGitHubClient_DownloadAsset_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DownloadAsset'
func (*MockGitHubClient_DownloadAsset_Call) Return ¶
func (_c *MockGitHubClient_DownloadAsset_Call) Return(readCloser io.ReadCloser, err error) *MockGitHubClient_DownloadAsset_Call
func (*MockGitHubClient_DownloadAsset_Call) Run ¶
func (_c *MockGitHubClient_DownloadAsset_Call) Run(run func(ctx context.Context, owner string, repo string, assetID int64)) *MockGitHubClient_DownloadAsset_Call
func (*MockGitHubClient_DownloadAsset_Call) RunAndReturn ¶
func (_c *MockGitHubClient_DownloadAsset_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, assetID int64) (io.ReadCloser, error)) *MockGitHubClient_DownloadAsset_Call
type MockGitHubClient_Expecter ¶
type MockGitHubClient_Expecter struct {
// contains filtered or unexported fields
}
func (*MockGitHubClient_Expecter) AddLabelsToPullRequest ¶
func (_e *MockGitHubClient_Expecter) AddLabelsToPullRequest(ctx interface{}, owner interface{}, repo interface{}, number interface{}, labels interface{}) *MockGitHubClient_AddLabelsToPullRequest_Call
AddLabelsToPullRequest is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- number int
- labels []string
func (*MockGitHubClient_Expecter) CreatePullRequest ¶
func (_e *MockGitHubClient_Expecter) CreatePullRequest(ctx interface{}, owner interface{}, repo interface{}, pull interface{}) *MockGitHubClient_CreatePullRequest_Call
CreatePullRequest is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- pull *github.NewPullRequest
func (*MockGitHubClient_Expecter) CreateRepo ¶
func (_e *MockGitHubClient_Expecter) CreateRepo(ctx interface{}, owner interface{}, slug interface{}) *MockGitHubClient_CreateRepo_Call
CreateRepo is a helper method to define mock.On call
- ctx context.Context
- owner string
- slug string
func (*MockGitHubClient_Expecter) DownloadAsset ¶
func (_e *MockGitHubClient_Expecter) DownloadAsset(ctx interface{}, owner interface{}, repo interface{}, assetID interface{}) *MockGitHubClient_DownloadAsset_Call
DownloadAsset is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- assetID int64
func (*MockGitHubClient_Expecter) DownloadAssetTo ¶
func (_e *MockGitHubClient_Expecter) DownloadAssetTo(ctx interface{}, fs interface{}, owner interface{}, repo interface{}, assetID interface{}, filePath interface{}) *MockGitHubClient_DownloadAssetTo_Call
DownloadAssetTo is a helper method to define mock.On call
- ctx context.Context
- fs afero.Fs
- owner string
- repo string
- assetID int64
- filePath string
func (*MockGitHubClient_Expecter) GetClient ¶
func (_e *MockGitHubClient_Expecter) GetClient() *MockGitHubClient_GetClient_Call
GetClient is a helper method to define mock.On call
func (*MockGitHubClient_Expecter) GetFileContents ¶
func (_e *MockGitHubClient_Expecter) GetFileContents(ctx interface{}, owner interface{}, repo interface{}, path interface{}, ref interface{}) *MockGitHubClient_GetFileContents_Call
GetFileContents is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- path string
- ref string
func (*MockGitHubClient_Expecter) GetPullRequestByBranch ¶
func (_e *MockGitHubClient_Expecter) GetPullRequestByBranch(ctx interface{}, owner interface{}, repo interface{}, branch interface{}, state interface{}) *MockGitHubClient_GetPullRequestByBranch_Call
GetPullRequestByBranch is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- branch string
- state string
func (*MockGitHubClient_Expecter) GetReleaseAssetID ¶
func (_e *MockGitHubClient_Expecter) GetReleaseAssetID(ctx interface{}, owner interface{}, repo interface{}, tag interface{}, assetName interface{}) *MockGitHubClient_GetReleaseAssetID_Call
GetReleaseAssetID is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- tag string
- assetName string
func (*MockGitHubClient_Expecter) GetReleaseAssets ¶
func (_e *MockGitHubClient_Expecter) GetReleaseAssets(ctx interface{}, owner interface{}, repo interface{}, tag interface{}) *MockGitHubClient_GetReleaseAssets_Call
GetReleaseAssets is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- tag string
func (*MockGitHubClient_Expecter) ListReleases ¶
func (_e *MockGitHubClient_Expecter) ListReleases(ctx interface{}, owner interface{}, repo interface{}) *MockGitHubClient_ListReleases_Call
ListReleases is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
func (*MockGitHubClient_Expecter) UpdatePullRequest ¶
func (_e *MockGitHubClient_Expecter) UpdatePullRequest(ctx interface{}, owner interface{}, repo interface{}, number interface{}, pull interface{}) *MockGitHubClient_UpdatePullRequest_Call
UpdatePullRequest is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- number int
- pull *github.PullRequest
func (*MockGitHubClient_Expecter) UploadKey ¶
func (_e *MockGitHubClient_Expecter) UploadKey(ctx interface{}, name interface{}, key interface{}) *MockGitHubClient_UploadKey_Call
UploadKey is a helper method to define mock.On call
- ctx context.Context
- name string
- key []byte
type MockGitHubClient_GetClient_Call ¶
MockGitHubClient_GetClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetClient'
func (*MockGitHubClient_GetClient_Call) Return ¶
func (_c *MockGitHubClient_GetClient_Call) Return(client *github.Client) *MockGitHubClient_GetClient_Call
func (*MockGitHubClient_GetClient_Call) Run ¶
func (_c *MockGitHubClient_GetClient_Call) Run(run func()) *MockGitHubClient_GetClient_Call
func (*MockGitHubClient_GetClient_Call) RunAndReturn ¶
func (_c *MockGitHubClient_GetClient_Call) RunAndReturn(run func() *github.Client) *MockGitHubClient_GetClient_Call
type MockGitHubClient_GetFileContents_Call ¶
MockGitHubClient_GetFileContents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFileContents'
func (*MockGitHubClient_GetFileContents_Call) Return ¶
func (_c *MockGitHubClient_GetFileContents_Call) Return(s string, err error) *MockGitHubClient_GetFileContents_Call
func (*MockGitHubClient_GetFileContents_Call) Run ¶
func (_c *MockGitHubClient_GetFileContents_Call) Run(run func(ctx context.Context, owner string, repo string, path string, ref string)) *MockGitHubClient_GetFileContents_Call
func (*MockGitHubClient_GetFileContents_Call) RunAndReturn ¶
func (_c *MockGitHubClient_GetFileContents_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, path string, ref string) (string, error)) *MockGitHubClient_GetFileContents_Call
type MockGitHubClient_GetPullRequestByBranch_Call ¶
MockGitHubClient_GetPullRequestByBranch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPullRequestByBranch'
func (*MockGitHubClient_GetPullRequestByBranch_Call) Return ¶
func (_c *MockGitHubClient_GetPullRequestByBranch_Call) Return(pullRequest *github.PullRequest, err error) *MockGitHubClient_GetPullRequestByBranch_Call
func (*MockGitHubClient_GetPullRequestByBranch_Call) Run ¶
func (_c *MockGitHubClient_GetPullRequestByBranch_Call) Run(run func(ctx context.Context, owner string, repo string, branch string, state string)) *MockGitHubClient_GetPullRequestByBranch_Call
func (*MockGitHubClient_GetPullRequestByBranch_Call) RunAndReturn ¶
func (_c *MockGitHubClient_GetPullRequestByBranch_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, branch string, state string) (*github.PullRequest, error)) *MockGitHubClient_GetPullRequestByBranch_Call
type MockGitHubClient_GetReleaseAssetID_Call ¶
MockGitHubClient_GetReleaseAssetID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetReleaseAssetID'
func (*MockGitHubClient_GetReleaseAssetID_Call) Return ¶
func (_c *MockGitHubClient_GetReleaseAssetID_Call) Return(n int64, err error) *MockGitHubClient_GetReleaseAssetID_Call
func (*MockGitHubClient_GetReleaseAssetID_Call) Run ¶
func (_c *MockGitHubClient_GetReleaseAssetID_Call) Run(run func(ctx context.Context, owner string, repo string, tag string, assetName string)) *MockGitHubClient_GetReleaseAssetID_Call
func (*MockGitHubClient_GetReleaseAssetID_Call) RunAndReturn ¶
func (_c *MockGitHubClient_GetReleaseAssetID_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, tag string, assetName string) (int64, error)) *MockGitHubClient_GetReleaseAssetID_Call
type MockGitHubClient_GetReleaseAssets_Call ¶
MockGitHubClient_GetReleaseAssets_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetReleaseAssets'
func (*MockGitHubClient_GetReleaseAssets_Call) Return ¶
func (_c *MockGitHubClient_GetReleaseAssets_Call) Return(releaseAssets []*github.ReleaseAsset, err error) *MockGitHubClient_GetReleaseAssets_Call
func (*MockGitHubClient_GetReleaseAssets_Call) Run ¶
func (_c *MockGitHubClient_GetReleaseAssets_Call) Run(run func(ctx context.Context, owner string, repo string, tag string)) *MockGitHubClient_GetReleaseAssets_Call
func (*MockGitHubClient_GetReleaseAssets_Call) RunAndReturn ¶
func (_c *MockGitHubClient_GetReleaseAssets_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, tag string) ([]*github.ReleaseAsset, error)) *MockGitHubClient_GetReleaseAssets_Call
type MockGitHubClient_ListReleases_Call ¶
MockGitHubClient_ListReleases_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListReleases'
func (*MockGitHubClient_ListReleases_Call) Return ¶
func (_c *MockGitHubClient_ListReleases_Call) Return(strings []string, err error) *MockGitHubClient_ListReleases_Call
func (*MockGitHubClient_ListReleases_Call) Run ¶
func (_c *MockGitHubClient_ListReleases_Call) Run(run func(ctx context.Context, owner string, repo string)) *MockGitHubClient_ListReleases_Call
func (*MockGitHubClient_ListReleases_Call) RunAndReturn ¶
func (_c *MockGitHubClient_ListReleases_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string) ([]string, error)) *MockGitHubClient_ListReleases_Call
type MockGitHubClient_UpdatePullRequest_Call ¶
MockGitHubClient_UpdatePullRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdatePullRequest'
func (*MockGitHubClient_UpdatePullRequest_Call) Return ¶
func (_c *MockGitHubClient_UpdatePullRequest_Call) Return(pullRequest *github.PullRequest, response *github.Response, err error) *MockGitHubClient_UpdatePullRequest_Call
func (*MockGitHubClient_UpdatePullRequest_Call) Run ¶
func (_c *MockGitHubClient_UpdatePullRequest_Call) Run(run func(ctx context.Context, owner string, repo string, number int, pull *github.PullRequest)) *MockGitHubClient_UpdatePullRequest_Call
func (*MockGitHubClient_UpdatePullRequest_Call) RunAndReturn ¶
func (_c *MockGitHubClient_UpdatePullRequest_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, number int, pull *github.PullRequest) (*github.PullRequest, *github.Response, error)) *MockGitHubClient_UpdatePullRequest_Call
type MockGitHubClient_UploadKey_Call ¶
MockGitHubClient_UploadKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UploadKey'
func (*MockGitHubClient_UploadKey_Call) Return ¶
func (_c *MockGitHubClient_UploadKey_Call) Return(err error) *MockGitHubClient_UploadKey_Call
func (*MockGitHubClient_UploadKey_Call) Run ¶
func (_c *MockGitHubClient_UploadKey_Call) Run(run func(ctx context.Context, name string, key []byte)) *MockGitHubClient_UploadKey_Call
func (*MockGitHubClient_UploadKey_Call) RunAndReturn ¶
func (_c *MockGitHubClient_UploadKey_Call) RunAndReturn(run func(ctx context.Context, name string, key []byte) error) *MockGitHubClient_UploadKey_Call