Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockClient
- func (m *MockClient) AddDeployKeyToRepo(ctx context.Context, owner, repo string, key *github.Key) error
- func (m *MockClient) CreateRepo(ctx context.Context, org string, repo *github.Repository) (*github.Repository, *github.Response, error)
- func (m *MockClient) DeleteRepo(ctx context.Context, owner, repo string) (*github.Response, error)
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) GetContents(ctx context.Context, owner, repo, path string, ...) (*github.RepositoryContent, []*github.RepositoryContent, *github.Response, ...)
- func (m *MockClient) Organization(ctx context.Context, org string) (*github.Organization, *github.Response, error)
- func (m *MockClient) Repo(ctx context.Context, owner, repo string) (*github.Repository, *github.Response, error)
- func (m *MockClient) User(ctx context.Context, user string) (*github.User, *github.Response, error)
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) AddDeployKeyToRepo(ctx, owner, repo, key any) *gomock.Call
- func (mr *MockClientMockRecorder) CreateRepo(ctx, org, repo any) *gomock.Call
- func (mr *MockClientMockRecorder) DeleteRepo(ctx, owner, repo any) *gomock.Call
- func (mr *MockClientMockRecorder) GetContents(ctx, owner, repo, path, opt any) *gomock.Call
- func (mr *MockClientMockRecorder) Organization(ctx, org any) *gomock.Call
- func (mr *MockClientMockRecorder) Repo(ctx, owner, repo any) *gomock.Call
- func (mr *MockClientMockRecorder) User(ctx, user any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
MockClient is a mock of Client interface.
func NewMockClient ¶
func NewMockClient(ctrl *gomock.Controller) *MockClient
NewMockClient creates a new mock instance.
func (*MockClient) AddDeployKeyToRepo ¶ added in v0.9.2
func (m *MockClient) AddDeployKeyToRepo(ctx context.Context, owner, repo string, key *github.Key) error
AddDeployKeyToRepo mocks base method.
func (*MockClient) CreateRepo ¶
func (m *MockClient) CreateRepo(ctx context.Context, org string, repo *github.Repository) (*github.Repository, *github.Response, error)
CreateRepo mocks base method.
func (*MockClient) DeleteRepo ¶ added in v0.6.0
DeleteRepo mocks base method.
func (*MockClient) EXPECT ¶
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClient) GetContents ¶
func (m *MockClient) GetContents(ctx context.Context, owner, repo, path string, opt *github.RepositoryContentGetOptions) (*github.RepositoryContent, []*github.RepositoryContent, *github.Response, error)
GetContents mocks base method.
func (*MockClient) Organization ¶
func (m *MockClient) Organization(ctx context.Context, org string) (*github.Organization, *github.Response, error)
Organization mocks base method.
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient.
func (*MockClientMockRecorder) AddDeployKeyToRepo ¶ added in v0.9.2
func (mr *MockClientMockRecorder) AddDeployKeyToRepo(ctx, owner, repo, key any) *gomock.Call
AddDeployKeyToRepo indicates an expected call of AddDeployKeyToRepo.
func (*MockClientMockRecorder) CreateRepo ¶
func (mr *MockClientMockRecorder) CreateRepo(ctx, org, repo any) *gomock.Call
CreateRepo indicates an expected call of CreateRepo.
func (*MockClientMockRecorder) DeleteRepo ¶ added in v0.6.0
func (mr *MockClientMockRecorder) DeleteRepo(ctx, owner, repo any) *gomock.Call
DeleteRepo indicates an expected call of DeleteRepo.
func (*MockClientMockRecorder) GetContents ¶
func (mr *MockClientMockRecorder) GetContents(ctx, owner, repo, path, opt any) *gomock.Call
GetContents indicates an expected call of GetContents.
func (*MockClientMockRecorder) Organization ¶
func (mr *MockClientMockRecorder) Organization(ctx, org any) *gomock.Call
Organization indicates an expected call of Organization.