Documentation ¶
Index ¶
- Constants
- func Configure(api *operations.EasyclaAPI, service Service, ...)
- func GetFullSignURL(gitlabOrganizationID string, gitlabRepositoryID string, mrID string) string
- func PrepareMrCommentContent(missingUsers []*gatedGitlabUser, signedUsers []*gitlab.User, signURL string) string
- type ProcessMergeActivityInput
- type Service
- type UserSigned
Constants ¶
View Source
const (
// SessionStoreKey for cla-gitlab
SessionStoreKey = "cla-gitlab"
)
Variables ¶
This section is empty.
Functions ¶
func Configure ¶
func Configure(api *operations.EasyclaAPI, service Service, gitlabOrgService gitlab_organizations.ServiceInterface, eventService events.Service, gitLabApp *gitlab_api.App, signService gitlab_sign.Service, contributorConsoleV2Base string, sessionStore *dynastore.Store)
func GetFullSignURL ¶
func PrepareMrCommentContent ¶
Types ¶
type ProcessMergeActivityInput ¶
type ProcessMergeActivityInput struct { ProjectName string ProjectPath string ProjectNamespace string ProjectID int MergeID int RepositoryPath string LastCommitSha string }
ProcessMergeActivityInput is used to pass the data needed to trigger a gitlab mr check
type Service ¶
type Service interface { ProcessMergeCommentActivity(ctx context.Context, secretToken string, commentEvent *gitlab.MergeEvent) error ProcessMergeOpenedActivity(ctx context.Context, secretToken string, mergeEvent *gitlab.MergeEvent) error ProcessMergeActivity(ctx context.Context, secretToken string, input *ProcessMergeActivityInput) error IsUserApprovedForSignature(ctx context.Context, f logrus.Fields, corporateSignature *models.Signature, user *models.User, gitlabUser *gitlab.User) bool }
func NewService ¶
func NewService(gitRepository repositories.RepositoryInterface, gitV2Repository gitV2Repositories.RepositoryInterface, usersRepository users.UserRepository, signaturesRepository signatures.SignatureRepository, projectsCLAGroupsRepository projects_cla_groups.Repository, companyRepository company.IRepository, signatureRepository signatures.SignatureRepository, gitlabOrgService gitlab_organizations.ServiceInterface) Service
type UserSigned ¶
type UserSigned struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.