Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockGithubClient
- func (m *MockGithubClient) AddDeployKeyToRepo(ctx context.Context, opts git.AddDeployKeyOpts) error
- func (m *MockGithubClient) AuthenticatedUser(ctx context.Context) (*github.User, error)
- func (m *MockGithubClient) CheckAccessTokenPermissions(checkPATPermission, allPermissionScopes string) error
- func (m *MockGithubClient) CreateRepo(ctx context.Context, opts git.CreateRepoOpts) (*git.Repository, error)
- func (m *MockGithubClient) DeleteRepo(ctx context.Context, opts git.DeleteRepoOpts) error
- func (m *MockGithubClient) EXPECT() *MockGithubClientMockRecorder
- func (m *MockGithubClient) GetAccessTokenPermissions(accessToken string) (string, error)
- func (m *MockGithubClient) GetRepo(ctx context.Context, opts git.GetRepoOpts) (*git.Repository, error)
- func (m *MockGithubClient) Organization(ctx context.Context, org string) (*github.Organization, error)
- func (m *MockGithubClient) PathExists(ctx context.Context, owner, repo, branch, path string) (bool, error)
- type MockGithubClientMockRecorder
- func (mr *MockGithubClientMockRecorder) AddDeployKeyToRepo(ctx, opts any) *gomock.Call
- func (mr *MockGithubClientMockRecorder) AuthenticatedUser(ctx any) *gomock.Call
- func (mr *MockGithubClientMockRecorder) CheckAccessTokenPermissions(checkPATPermission, allPermissionScopes any) *gomock.Call
- func (mr *MockGithubClientMockRecorder) CreateRepo(ctx, opts any) *gomock.Call
- func (mr *MockGithubClientMockRecorder) DeleteRepo(ctx, opts any) *gomock.Call
- func (mr *MockGithubClientMockRecorder) GetAccessTokenPermissions(accessToken any) *gomock.Call
- func (mr *MockGithubClientMockRecorder) GetRepo(ctx, opts any) *gomock.Call
- func (mr *MockGithubClientMockRecorder) Organization(ctx, org any) *gomock.Call
- func (mr *MockGithubClientMockRecorder) PathExists(ctx, owner, repo, branch, path any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockGithubClient ¶ added in v0.9.0
type MockGithubClient struct {
// contains filtered or unexported fields
}
MockGithubClient is a mock of GithubClient interface.
func NewMockGithubClient ¶ added in v0.9.0
func NewMockGithubClient(ctrl *gomock.Controller) *MockGithubClient
NewMockGithubClient creates a new mock instance.
func (*MockGithubClient) AddDeployKeyToRepo ¶ added in v0.9.2
func (m *MockGithubClient) AddDeployKeyToRepo(ctx context.Context, opts git.AddDeployKeyOpts) error
AddDeployKeyToRepo mocks base method.
func (*MockGithubClient) AuthenticatedUser ¶ added in v0.9.0
AuthenticatedUser mocks base method.
func (*MockGithubClient) CheckAccessTokenPermissions ¶ added in v0.9.0
func (m *MockGithubClient) CheckAccessTokenPermissions(checkPATPermission, allPermissionScopes string) error
CheckAccessTokenPermissions mocks base method.
func (*MockGithubClient) CreateRepo ¶ added in v0.9.0
func (m *MockGithubClient) CreateRepo(ctx context.Context, opts git.CreateRepoOpts) (*git.Repository, error)
CreateRepo mocks base method.
func (*MockGithubClient) DeleteRepo ¶ added in v0.9.0
func (m *MockGithubClient) DeleteRepo(ctx context.Context, opts git.DeleteRepoOpts) error
DeleteRepo mocks base method.
func (*MockGithubClient) EXPECT ¶ added in v0.9.0
func (m *MockGithubClient) EXPECT() *MockGithubClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGithubClient) GetAccessTokenPermissions ¶ added in v0.9.0
func (m *MockGithubClient) GetAccessTokenPermissions(accessToken string) (string, error)
GetAccessTokenPermissions mocks base method.
func (*MockGithubClient) GetRepo ¶ added in v0.9.0
func (m *MockGithubClient) GetRepo(ctx context.Context, opts git.GetRepoOpts) (*git.Repository, error)
GetRepo mocks base method.
func (*MockGithubClient) Organization ¶ added in v0.9.0
func (m *MockGithubClient) Organization(ctx context.Context, org string) (*github.Organization, error)
Organization mocks base method.
func (*MockGithubClient) PathExists ¶ added in v0.9.0
func (m *MockGithubClient) PathExists(ctx context.Context, owner, repo, branch, path string) (bool, error)
PathExists mocks base method.
type MockGithubClientMockRecorder ¶ added in v0.9.0
type MockGithubClientMockRecorder struct {
// contains filtered or unexported fields
}
MockGithubClientMockRecorder is the mock recorder for MockGithubClient.
func (*MockGithubClientMockRecorder) AddDeployKeyToRepo ¶ added in v0.9.2
func (mr *MockGithubClientMockRecorder) AddDeployKeyToRepo(ctx, opts any) *gomock.Call
AddDeployKeyToRepo indicates an expected call of AddDeployKeyToRepo.
func (*MockGithubClientMockRecorder) AuthenticatedUser ¶ added in v0.9.0
func (mr *MockGithubClientMockRecorder) AuthenticatedUser(ctx any) *gomock.Call
AuthenticatedUser indicates an expected call of AuthenticatedUser.
func (*MockGithubClientMockRecorder) CheckAccessTokenPermissions ¶ added in v0.9.0
func (mr *MockGithubClientMockRecorder) CheckAccessTokenPermissions(checkPATPermission, allPermissionScopes any) *gomock.Call
CheckAccessTokenPermissions indicates an expected call of CheckAccessTokenPermissions.
func (*MockGithubClientMockRecorder) CreateRepo ¶ added in v0.9.0
func (mr *MockGithubClientMockRecorder) CreateRepo(ctx, opts any) *gomock.Call
CreateRepo indicates an expected call of CreateRepo.
func (*MockGithubClientMockRecorder) DeleteRepo ¶ added in v0.9.0
func (mr *MockGithubClientMockRecorder) DeleteRepo(ctx, opts any) *gomock.Call
DeleteRepo indicates an expected call of DeleteRepo.
func (*MockGithubClientMockRecorder) GetAccessTokenPermissions ¶ added in v0.9.0
func (mr *MockGithubClientMockRecorder) GetAccessTokenPermissions(accessToken any) *gomock.Call
GetAccessTokenPermissions indicates an expected call of GetAccessTokenPermissions.
func (*MockGithubClientMockRecorder) GetRepo ¶ added in v0.9.0
func (mr *MockGithubClientMockRecorder) GetRepo(ctx, opts any) *gomock.Call
GetRepo indicates an expected call of GetRepo.
func (*MockGithubClientMockRecorder) Organization ¶ added in v0.9.0
func (mr *MockGithubClientMockRecorder) Organization(ctx, org any) *gomock.Call
Organization indicates an expected call of Organization.
func (*MockGithubClientMockRecorder) PathExists ¶ added in v0.9.0
func (mr *MockGithubClientMockRecorder) PathExists(ctx, owner, repo, branch, path any) *gomock.Call
PathExists indicates an expected call of PathExists.