mock_service

package
v0.0.66 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mock_service is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockGitHubProviderService

type MockGitHubProviderService struct {
	// contains filtered or unexported fields
}

MockGitHubProviderService is a mock of GitHubProviderService interface.

func NewMockGitHubProviderService

func NewMockGitHubProviderService(ctrl *gomock.Controller) *MockGitHubProviderService

NewMockGitHubProviderService creates a new mock instance.

func (*MockGitHubProviderService) CreateGitHubAppProvider

func (m *MockGitHubProviderService) CreateGitHubAppProvider(ctx context.Context, token oauth2.Token, stateData db.GetProjectIDBySessionStateRow, installationID int64, state string) (*db.Provider, error)

CreateGitHubAppProvider mocks base method.

func (*MockGitHubProviderService) CreateGitHubAppWithoutInvitation

func (m *MockGitHubProviderService) CreateGitHubAppWithoutInvitation(ctx context.Context, qtx db.Querier, userID, installationID int64) (*db.Project, error)

CreateGitHubAppWithoutInvitation mocks base method.

func (*MockGitHubProviderService) DeleteGitHubAppInstallation

func (m *MockGitHubProviderService) DeleteGitHubAppInstallation(ctx context.Context, installationID int64) error

DeleteGitHubAppInstallation mocks base method.

func (*MockGitHubProviderService) DeleteInstallation

func (m *MockGitHubProviderService) DeleteInstallation(ctx context.Context, providerID uuid.UUID) error

DeleteInstallation mocks base method.

func (*MockGitHubProviderService) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockGitHubProviderService) ValidateGitHubAppWebhookPayload

func (m *MockGitHubProviderService) ValidateGitHubAppWebhookPayload(r *http.Request) ([]byte, error)

ValidateGitHubAppWebhookPayload mocks base method.

func (*MockGitHubProviderService) ValidateGitHubInstallationId

func (m *MockGitHubProviderService) ValidateGitHubInstallationId(ctx context.Context, token *oauth2.Token, installationID int64) error

ValidateGitHubInstallationId mocks base method.

func (*MockGitHubProviderService) ValidateOrgMembershipForToken

func (m *MockGitHubProviderService) ValidateOrgMembershipForToken(ctx context.Context, token *oauth2.Token, org string) (bool, error)

ValidateOrgMembershipForToken mocks base method.

func (*MockGitHubProviderService) VerifyProviderTokenIdentity

func (m *MockGitHubProviderService) VerifyProviderTokenIdentity(ctx context.Context, remoteUser, accessToken string) error

VerifyProviderTokenIdentity mocks base method.

type MockGitHubProviderServiceMockRecorder

type MockGitHubProviderServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockGitHubProviderServiceMockRecorder is the mock recorder for MockGitHubProviderService.

func (*MockGitHubProviderServiceMockRecorder) CreateGitHubAppProvider

func (mr *MockGitHubProviderServiceMockRecorder) CreateGitHubAppProvider(ctx, token, stateData, installationID, state any) *gomock.Call

CreateGitHubAppProvider indicates an expected call of CreateGitHubAppProvider.

func (*MockGitHubProviderServiceMockRecorder) CreateGitHubAppWithoutInvitation

func (mr *MockGitHubProviderServiceMockRecorder) CreateGitHubAppWithoutInvitation(ctx, qtx, userID, installationID any) *gomock.Call

CreateGitHubAppWithoutInvitation indicates an expected call of CreateGitHubAppWithoutInvitation.

func (*MockGitHubProviderServiceMockRecorder) DeleteGitHubAppInstallation

func (mr *MockGitHubProviderServiceMockRecorder) DeleteGitHubAppInstallation(ctx, installationID any) *gomock.Call

DeleteGitHubAppInstallation indicates an expected call of DeleteGitHubAppInstallation.

func (*MockGitHubProviderServiceMockRecorder) DeleteInstallation

func (mr *MockGitHubProviderServiceMockRecorder) DeleteInstallation(ctx, providerID any) *gomock.Call

DeleteInstallation indicates an expected call of DeleteInstallation.

func (*MockGitHubProviderServiceMockRecorder) ValidateGitHubAppWebhookPayload

func (mr *MockGitHubProviderServiceMockRecorder) ValidateGitHubAppWebhookPayload(r any) *gomock.Call

ValidateGitHubAppWebhookPayload indicates an expected call of ValidateGitHubAppWebhookPayload.

func (*MockGitHubProviderServiceMockRecorder) ValidateGitHubInstallationId

func (mr *MockGitHubProviderServiceMockRecorder) ValidateGitHubInstallationId(ctx, token, installationID any) *gomock.Call

ValidateGitHubInstallationId indicates an expected call of ValidateGitHubInstallationId.

func (*MockGitHubProviderServiceMockRecorder) ValidateOrgMembershipForToken

func (mr *MockGitHubProviderServiceMockRecorder) ValidateOrgMembershipForToken(ctx, token, org any) *gomock.Call

ValidateOrgMembershipForToken indicates an expected call of ValidateOrgMembershipForToken.

func (*MockGitHubProviderServiceMockRecorder) VerifyProviderTokenIdentity

func (mr *MockGitHubProviderServiceMockRecorder) VerifyProviderTokenIdentity(ctx, remoteUser, accessToken any) *gomock.Call

VerifyProviderTokenIdentity indicates an expected call of VerifyProviderTokenIdentity.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL