Documentation
¶
Overview ¶
Package hosting_mock is a generated GoMock package.
Package hosting_mock is a generated GoMock package.
Index ¶
- type MockHostingService
- func (m *MockHostingService) CreateRepository(ctx context.Context, ref repository.Reference, ...) (*hosting.Repository, error)
- func (m *MockHostingService) CreateRepositoryFromTemplate(ctx context.Context, ref, tmp repository.Reference, ...) (*hosting.Repository, error)
- func (m *MockHostingService) DeleteRepository(arg0 context.Context, arg1 repository.Reference) error
- func (m *MockHostingService) EXPECT() *MockHostingServiceMockRecorder
- func (m *MockHostingService) ForkRepository(ctx context.Context, ref, target repository.Reference, ...) (*hosting.Repository, error)
- func (m *MockHostingService) GetRepository(arg0 context.Context, arg1 repository.Reference) (*hosting.Repository, error)
- func (m *MockHostingService) GetTokenFor(ctx context.Context, host, owner string) (string, auth.Token, error)
- func (m *MockHostingService) GetURLOf(ref repository.Reference) (*url.URL, error)
- func (m *MockHostingService) ListRepository(arg0 context.Context, arg1 hosting.ListRepositoryOptions) iter.Seq2[*hosting.Repository, error]
- func (m *MockHostingService) ParseURL(u *url.URL) (*repository.Reference, error)
- type MockHostingServiceMockRecorder
- func (mr *MockHostingServiceMockRecorder) CreateRepository(ctx, ref, opts any) *gomock.Call
- func (mr *MockHostingServiceMockRecorder) CreateRepositoryFromTemplate(ctx, ref, tmp, opts any) *gomock.Call
- func (mr *MockHostingServiceMockRecorder) DeleteRepository(arg0, arg1 any) *gomock.Call
- func (mr *MockHostingServiceMockRecorder) ForkRepository(ctx, ref, target, opts any) *gomock.Call
- func (mr *MockHostingServiceMockRecorder) GetRepository(arg0, arg1 any) *gomock.Call
- func (mr *MockHostingServiceMockRecorder) GetTokenFor(ctx, host, owner any) *gomock.Call
- func (mr *MockHostingServiceMockRecorder) GetURLOf(ref any) *gomock.Call
- func (mr *MockHostingServiceMockRecorder) ListRepository(arg0, arg1 any) *gomock.Call
- func (mr *MockHostingServiceMockRecorder) ParseURL(u any) *gomock.Call
- type MockRepositoryFormat
- type MockRepositoryFormatMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockHostingService ¶
type MockHostingService struct {
// contains filtered or unexported fields
}
MockHostingService is a mock of HostingService interface.
func NewMockHostingService ¶
func NewMockHostingService(ctrl *gomock.Controller) *MockHostingService
NewMockHostingService creates a new mock instance.
func (*MockHostingService) CreateRepository ¶
func (m *MockHostingService) CreateRepository(ctx context.Context, ref repository.Reference, opts hosting.CreateRepositoryOptions) (*hosting.Repository, error)
CreateRepository mocks base method.
func (*MockHostingService) CreateRepositoryFromTemplate ¶
func (m *MockHostingService) CreateRepositoryFromTemplate(ctx context.Context, ref, tmp repository.Reference, opts hosting.CreateRepositoryFromTemplateOptions) (*hosting.Repository, error)
CreateRepositoryFromTemplate mocks base method.
func (*MockHostingService) DeleteRepository ¶
func (m *MockHostingService) DeleteRepository(arg0 context.Context, arg1 repository.Reference) error
DeleteRepository mocks base method.
func (*MockHostingService) EXPECT ¶
func (m *MockHostingService) EXPECT() *MockHostingServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockHostingService) ForkRepository ¶
func (m *MockHostingService) ForkRepository(ctx context.Context, ref, target repository.Reference, opts hosting.ForkRepositoryOptions) (*hosting.Repository, error)
ForkRepository mocks base method.
func (*MockHostingService) GetRepository ¶
func (m *MockHostingService) GetRepository(arg0 context.Context, arg1 repository.Reference) (*hosting.Repository, error)
GetRepository mocks base method.
func (*MockHostingService) GetTokenFor ¶
func (m *MockHostingService) GetTokenFor(ctx context.Context, host, owner string) (string, auth.Token, error)
GetTokenFor mocks base method.
func (*MockHostingService) GetURLOf ¶
func (m *MockHostingService) GetURLOf(ref repository.Reference) (*url.URL, error)
GetURLOf mocks base method.
func (*MockHostingService) ListRepository ¶
func (m *MockHostingService) ListRepository(arg0 context.Context, arg1 hosting.ListRepositoryOptions) iter.Seq2[*hosting.Repository, error]
ListRepository mocks base method.
func (*MockHostingService) ParseURL ¶
func (m *MockHostingService) ParseURL(u *url.URL) (*repository.Reference, error)
ParseURL mocks base method.
type MockHostingServiceMockRecorder ¶
type MockHostingServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockHostingServiceMockRecorder is the mock recorder for MockHostingService.
func (*MockHostingServiceMockRecorder) CreateRepository ¶
func (mr *MockHostingServiceMockRecorder) CreateRepository(ctx, ref, opts any) *gomock.Call
CreateRepository indicates an expected call of CreateRepository.
func (*MockHostingServiceMockRecorder) CreateRepositoryFromTemplate ¶
func (mr *MockHostingServiceMockRecorder) CreateRepositoryFromTemplate(ctx, ref, tmp, opts any) *gomock.Call
CreateRepositoryFromTemplate indicates an expected call of CreateRepositoryFromTemplate.
func (*MockHostingServiceMockRecorder) DeleteRepository ¶
func (mr *MockHostingServiceMockRecorder) DeleteRepository(arg0, arg1 any) *gomock.Call
DeleteRepository indicates an expected call of DeleteRepository.
func (*MockHostingServiceMockRecorder) ForkRepository ¶
func (mr *MockHostingServiceMockRecorder) ForkRepository(ctx, ref, target, opts any) *gomock.Call
ForkRepository indicates an expected call of ForkRepository.
func (*MockHostingServiceMockRecorder) GetRepository ¶
func (mr *MockHostingServiceMockRecorder) GetRepository(arg0, arg1 any) *gomock.Call
GetRepository indicates an expected call of GetRepository.
func (*MockHostingServiceMockRecorder) GetTokenFor ¶
func (mr *MockHostingServiceMockRecorder) GetTokenFor(ctx, host, owner any) *gomock.Call
GetTokenFor indicates an expected call of GetTokenFor.
func (*MockHostingServiceMockRecorder) GetURLOf ¶
func (mr *MockHostingServiceMockRecorder) GetURLOf(ref any) *gomock.Call
GetURLOf indicates an expected call of GetURLOf.
func (*MockHostingServiceMockRecorder) ListRepository ¶
func (mr *MockHostingServiceMockRecorder) ListRepository(arg0, arg1 any) *gomock.Call
ListRepository indicates an expected call of ListRepository.
type MockRepositoryFormat ¶
type MockRepositoryFormat struct {
// contains filtered or unexported fields
}
MockRepositoryFormat is a mock of RepositoryFormat interface.
func NewMockRepositoryFormat ¶
func NewMockRepositoryFormat(ctrl *gomock.Controller) *MockRepositoryFormat
NewMockRepositoryFormat creates a new mock instance.
func (*MockRepositoryFormat) EXPECT ¶
func (m *MockRepositoryFormat) EXPECT() *MockRepositoryFormatMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRepositoryFormat) Format ¶
func (m *MockRepositoryFormat) Format(r hosting.Repository) (string, error)
Format mocks base method.
type MockRepositoryFormatMockRecorder ¶
type MockRepositoryFormatMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryFormatMockRecorder is the mock recorder for MockRepositoryFormat.