Documentation ¶
Overview ¶
Package mock_gitSensor is a generated GoMock package.
Index ¶
- type MockClient
- func (m *MockClient) AddRepo(ctx context.Context, materials []*gitSensor.GitMaterial) error
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) FetchChanges(ctx context.Context, req *gitSensor.FetchScmChangesRequest) (*gitSensor.MaterialChangeResp, error)
- func (m *MockClient) GetAllWebhookEventConfigForHost(ctx context.Context, req *gitSensor.WebhookEventConfigRequest) ([]*gitSensor.WebhookEventConfig, error)
- func (m *MockClient) GetCommitMetadata(ctx context.Context, req *gitSensor.CommitMetadataRequest) (*gitSensor.GitCommit, error)
- func (m *MockClient) GetCommitMetadataForPipelineMaterial(ctx context.Context, req *gitSensor.CommitMetadataRequest) (*gitSensor.GitCommit, error)
- func (m *MockClient) GetHeadForPipelineMaterials(ctx context.Context, req *gitSensor.HeadRequest) ([]*gitSensor.CiPipelineMaterial, error)
- func (m *MockClient) GetWebhookData(ctx context.Context, req *gitSensor.WebhookDataRequest) (*gitSensor.WebhookAndCiData, error)
- func (m *MockClient) GetWebhookEventConfig(ctx context.Context, req *gitSensor.WebhookEventConfigRequest) (*gitSensor.WebhookEventConfig, error)
- func (m *MockClient) GetWebhookPayloadDataForPipelineMaterialId(ctx context.Context, req *gitSensor.WebhookPayloadDataRequest) (*gitSensor.WebhookPayloadDataResponse, error)
- func (m *MockClient) GetWebhookPayloadFilterDataForPipelineMaterialId(ctx context.Context, req *gitSensor.WebhookPayloadFilterDataRequest) (*gitSensor.WebhookPayloadFilterDataResponse, error)
- func (m *MockClient) RefreshGitMaterial(ctx context.Context, req *gitSensor.RefreshGitMaterialRequest) (*gitSensor.RefreshGitMaterialResponse, error)
- func (m *MockClient) SaveGitProvider(ctx context.Context, provider *gitSensor.GitProvider) error
- func (m *MockClient) SavePipelineMaterial(ctx context.Context, ciPipelineMaterials []*gitSensor.CiPipelineMaterial) error
- func (m *MockClient) UpdateRepo(ctx context.Context, material *gitSensor.GitMaterial) error
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) AddRepo(ctx, materials interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) FetchChanges(ctx, req interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetAllWebhookEventConfigForHost(ctx, req interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetCommitMetadata(ctx, req interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetCommitMetadataForPipelineMaterial(ctx, req interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetHeadForPipelineMaterials(ctx, req interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetWebhookData(ctx, req interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetWebhookEventConfig(ctx, req interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetWebhookPayloadDataForPipelineMaterialId(ctx, req interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetWebhookPayloadFilterDataForPipelineMaterialId(ctx, req interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) RefreshGitMaterial(ctx, req interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) SaveGitProvider(ctx, provider interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) SavePipelineMaterial(ctx, ciPipelineMaterials interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) UpdateRepo(ctx, material interface{}) *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) AddRepo ¶
func (m *MockClient) AddRepo(ctx context.Context, materials []*gitSensor.GitMaterial) error
AddRepo 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) FetchChanges ¶
func (m *MockClient) FetchChanges(ctx context.Context, req *gitSensor.FetchScmChangesRequest) (*gitSensor.MaterialChangeResp, error)
FetchChanges mocks base method.
func (*MockClient) GetAllWebhookEventConfigForHost ¶
func (m *MockClient) GetAllWebhookEventConfigForHost(ctx context.Context, req *gitSensor.WebhookEventConfigRequest) ([]*gitSensor.WebhookEventConfig, error)
GetAllWebhookEventConfigForHost mocks base method.
func (*MockClient) GetCommitMetadata ¶
func (m *MockClient) GetCommitMetadata(ctx context.Context, req *gitSensor.CommitMetadataRequest) (*gitSensor.GitCommit, error)
GetCommitMetadata mocks base method.
func (*MockClient) GetCommitMetadataForPipelineMaterial ¶
func (m *MockClient) GetCommitMetadataForPipelineMaterial(ctx context.Context, req *gitSensor.CommitMetadataRequest) (*gitSensor.GitCommit, error)
GetCommitMetadataForPipelineMaterial mocks base method.
func (*MockClient) GetHeadForPipelineMaterials ¶
func (m *MockClient) GetHeadForPipelineMaterials(ctx context.Context, req *gitSensor.HeadRequest) ([]*gitSensor.CiPipelineMaterial, error)
GetHeadForPipelineMaterials mocks base method.
func (*MockClient) GetWebhookData ¶
func (m *MockClient) GetWebhookData(ctx context.Context, req *gitSensor.WebhookDataRequest) (*gitSensor.WebhookAndCiData, error)
GetWebhookData mocks base method.
func (*MockClient) GetWebhookEventConfig ¶
func (m *MockClient) GetWebhookEventConfig(ctx context.Context, req *gitSensor.WebhookEventConfigRequest) (*gitSensor.WebhookEventConfig, error)
GetWebhookEventConfig mocks base method.
func (*MockClient) GetWebhookPayloadDataForPipelineMaterialId ¶
func (m *MockClient) GetWebhookPayloadDataForPipelineMaterialId(ctx context.Context, req *gitSensor.WebhookPayloadDataRequest) (*gitSensor.WebhookPayloadDataResponse, error)
GetWebhookPayloadDataForPipelineMaterialId mocks base method.
func (*MockClient) GetWebhookPayloadFilterDataForPipelineMaterialId ¶
func (m *MockClient) GetWebhookPayloadFilterDataForPipelineMaterialId(ctx context.Context, req *gitSensor.WebhookPayloadFilterDataRequest) (*gitSensor.WebhookPayloadFilterDataResponse, error)
GetWebhookPayloadFilterDataForPipelineMaterialId mocks base method.
func (*MockClient) RefreshGitMaterial ¶
func (m *MockClient) RefreshGitMaterial(ctx context.Context, req *gitSensor.RefreshGitMaterialRequest) (*gitSensor.RefreshGitMaterialResponse, error)
RefreshGitMaterial mocks base method.
func (*MockClient) SaveGitProvider ¶
func (m *MockClient) SaveGitProvider(ctx context.Context, provider *gitSensor.GitProvider) error
SaveGitProvider mocks base method.
func (*MockClient) SavePipelineMaterial ¶
func (m *MockClient) SavePipelineMaterial(ctx context.Context, ciPipelineMaterials []*gitSensor.CiPipelineMaterial) error
SavePipelineMaterial mocks base method.
func (*MockClient) UpdateRepo ¶
func (m *MockClient) UpdateRepo(ctx context.Context, material *gitSensor.GitMaterial) error
UpdateRepo mocks base method.
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient.
func (*MockClientMockRecorder) AddRepo ¶
func (mr *MockClientMockRecorder) AddRepo(ctx, materials interface{}) *gomock.Call
AddRepo indicates an expected call of AddRepo.
func (*MockClientMockRecorder) FetchChanges ¶
func (mr *MockClientMockRecorder) FetchChanges(ctx, req interface{}) *gomock.Call
FetchChanges indicates an expected call of FetchChanges.
func (*MockClientMockRecorder) GetAllWebhookEventConfigForHost ¶
func (mr *MockClientMockRecorder) GetAllWebhookEventConfigForHost(ctx, req interface{}) *gomock.Call
GetAllWebhookEventConfigForHost indicates an expected call of GetAllWebhookEventConfigForHost.
func (*MockClientMockRecorder) GetCommitMetadata ¶
func (mr *MockClientMockRecorder) GetCommitMetadata(ctx, req interface{}) *gomock.Call
GetCommitMetadata indicates an expected call of GetCommitMetadata.
func (*MockClientMockRecorder) GetCommitMetadataForPipelineMaterial ¶
func (mr *MockClientMockRecorder) GetCommitMetadataForPipelineMaterial(ctx, req interface{}) *gomock.Call
GetCommitMetadataForPipelineMaterial indicates an expected call of GetCommitMetadataForPipelineMaterial.
func (*MockClientMockRecorder) GetHeadForPipelineMaterials ¶
func (mr *MockClientMockRecorder) GetHeadForPipelineMaterials(ctx, req interface{}) *gomock.Call
GetHeadForPipelineMaterials indicates an expected call of GetHeadForPipelineMaterials.
func (*MockClientMockRecorder) GetWebhookData ¶
func (mr *MockClientMockRecorder) GetWebhookData(ctx, req interface{}) *gomock.Call
GetWebhookData indicates an expected call of GetWebhookData.
func (*MockClientMockRecorder) GetWebhookEventConfig ¶
func (mr *MockClientMockRecorder) GetWebhookEventConfig(ctx, req interface{}) *gomock.Call
GetWebhookEventConfig indicates an expected call of GetWebhookEventConfig.
func (*MockClientMockRecorder) GetWebhookPayloadDataForPipelineMaterialId ¶
func (mr *MockClientMockRecorder) GetWebhookPayloadDataForPipelineMaterialId(ctx, req interface{}) *gomock.Call
GetWebhookPayloadDataForPipelineMaterialId indicates an expected call of GetWebhookPayloadDataForPipelineMaterialId.
func (*MockClientMockRecorder) GetWebhookPayloadFilterDataForPipelineMaterialId ¶
func (mr *MockClientMockRecorder) GetWebhookPayloadFilterDataForPipelineMaterialId(ctx, req interface{}) *gomock.Call
GetWebhookPayloadFilterDataForPipelineMaterialId indicates an expected call of GetWebhookPayloadFilterDataForPipelineMaterialId.
func (*MockClientMockRecorder) RefreshGitMaterial ¶
func (mr *MockClientMockRecorder) RefreshGitMaterial(ctx, req interface{}) *gomock.Call
RefreshGitMaterial indicates an expected call of RefreshGitMaterial.
func (*MockClientMockRecorder) SaveGitProvider ¶
func (mr *MockClientMockRecorder) SaveGitProvider(ctx, provider interface{}) *gomock.Call
SaveGitProvider indicates an expected call of SaveGitProvider.
func (*MockClientMockRecorder) SavePipelineMaterial ¶
func (mr *MockClientMockRecorder) SavePipelineMaterial(ctx, ciPipelineMaterials interface{}) *gomock.Call
SavePipelineMaterial indicates an expected call of SavePipelineMaterial.
func (*MockClientMockRecorder) UpdateRepo ¶
func (mr *MockClientMockRecorder) UpdateRepo(ctx, material interface{}) *gomock.Call
UpdateRepo indicates an expected call of UpdateRepo.