events

package
v0.0.0-...-0c3f707 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// CreateTemplate event type
	CreateTemplate = "Create Template"

	// CreateCCLAApprovalListRequest event type
	CreateCCLAApprovalListRequest = "Create CCLA Approval List Request"
	// DeleteCCLAApprovalListRequest event type
	DeleteCCLAApprovalListRequest = "Delete CCLA Approval List Request"

	// DeletePendingInvite event type
	AddGitHubOrganization    = "Add GitHub Organization"
	DeleteGitHubOrganization = "Delete GitHub Organization"
)

event types

View Source
const (
	CLATemplateCreated = "cla_template.created"
	UserCreated        = "user.created"
	UserUpdated        = "user.updated"
	UserDeleted        = "user.deleted"

	RepositoryAdded                    = "repository.added"
	RepositoryRenamed                  = "repository.renamed"
	RepositoryTransferred              = "repository.transferred"
	RepositoryDisabled                 = "repository.disabled"
	RepositoryDeleted                  = "repository.deleted"
	RepositoryUpdated                  = "repository.updated"
	RepositoryBranchProtectionAdded    = "repository.branchprotection.updated"
	RepositoryBranchProtectionDisabled = "repository.branchprotection.updated"
	RepositoryBranchProtectionUpdated  = "repository.branchprotection.updated"

	GerritRepositoryAdded   = "gerrit_repository.added"
	GerritRepositoryDeleted = "gerrit_repository.deleted"
	GerritUserAdded         = "gerrit_user.added"
	GerritUserRemoved       = "gerrit_user.deleted"

	GitHubOrganizationAdded   = "github_organization.added"
	GitHubOrganizationDeleted = "github_organization.deleted"
	GitHubOrganizationUpdated = "github_organization.updated"

	GitlabOrganizationAdded   = "gitlab_organization.added"
	GitlabOrganizationDeleted = "gitlab_organization.deleted"
	GitlabOrganizationUpdated = "gitlab_organization.updated"

	CompanyACLUserAdded       = "company_acl.user_added"
	CompanyACLRequestAdded    = "company_acl.request_added"
	CompanyACLRequestApproved = "company_acl.request_approved"
	CompanyACLRequestDenied   = "company_acl.request_denied"

	CCLAApprovalListRequestCreated  = "ccla_approval_list_request.created"
	CCLAApprovalListRequestApproved = "ccla_approval_list_request.approved"
	CCLAApprovalListRequestRejected = "ccla_approval_list_request.rejected"

	ApprovalListGitHubOrganizationAdded   = "approval_list.github_organization_added"
	ApprovalListGitHubOrganizationDeleted = "approval_list.github_organization_deleted"

	ClaManagerAccessRequestCreated  = "cla_manager.access_request_created"
	ClaManagerAccessRequestApproved = "cla_manager.access_request_approved"
	ClaManagerAccessRequestDenied   = "cla_manager.access_request_denied"
	ClaManagerAccessRequestDeleted  = "cla_manager.access_request_deleted"

	ClaApprovalListUpdated = "cla_manager.approval_list_updated"

	ClaManagerCreated     = "cla_manager.added"
	ClaManagerDeleted     = "cla_manager.deleted"
	ClaManagerRoleCreated = "cla_manager.added"
	ClaManagerRoleDeleted = "cla_manager.deleted"

	CLAGroupCreated           = "cla_group.created"
	CLAGroupUpdated           = "cla_group.updated"
	CLAGroupDeleted           = "cla_group.deleted"
	CLAGroupEnrolledProject   = "cla_group.enrolled.project"
	CLAGroupUnenrolledProject = "cla_group.unenrolled.project"

	InvalidatedSignature = "signature.invalidated"

	ContributorNotifyCompanyAdminType = "contributor.notify_company_admin"
	ContributorNotifyCLADesigneeType  = "contributor.notify_cla_designee"
	ContributorAssignCLADesigneeType  = "contributor.assign_designee"
	ConvertUserToContactType          = "lfx_user.convert_to_contact"
	AssignUserRoleScopeType           = "lfx_org_service.assign_user_role_scope"
	RemoveUserRoleScopeType           = "lfx_org_service.remove_user_role_scope"

	ProjectServiceCLAEnabled       = "project.service.cla.enabled"
	ProjectServiceCLADisabled      = "project.service.cla.disabled"
	SignatureAutoCreateECLAUpdated = "signature.auto_create_ecla.updated"

	IndividualSignatureSigned = "individual.signature.signed"
	CorporateSignatureSigned  = "corporate.signature.signed"
)

events naming convention : <resource>.<action>

View Source
const (
	CompanySFIDFoundationSFIDEpochIndex           = "company-sfid-foundation-sfid-event-time-epoch-index"
	CompanySFIDProjectIDEpochIndex                = "company-sfid-project-id-event-time-epoch-index"
	CompanyIDEventTypeIndex                       = "company-id-event-type-index"
	EventFoundationSFIDEpochIndex                 = "event-foundation-sfid-event-time-epoch-index"
	EventProjectIDEpochIndex                      = "event-project-id-event-time-epoch-index"
	EventCLAGroupIDEpochIndex                     = "event-cla-group-id-event-time-epoch-index"
	EventCompanySFIDEventDataLowerIndex           = "event-company-sfid-event-data-lower-index"
	CompanyIDExternalProjectIDEventEpochTimeIndex = "company-id-external-project-id-event-epoch-time-index"
	CompanySFIDClaGroupIDEpochIndex               = "company-sfid-cla-group-id-event-time-epoch-index"
	EventProjectSFIDEventTypeIndex                = "event-project-sfid-event-type-index"
)

indexes

View Source
const (
	HugePageSize    = 10000
	DefaultPageSize = 10
)

constants

View Source
const (
	ReturnAllEvents     = true
	LoadRepoDetails     = true
	DontLoadRepoDetails = false
)

constants

View Source
const IndividualSignedEvent = "IndividualSignatureSigned"

IndividualSignedEvent represntative of ICLA signatures

Variables

View Source
var (
	ErrUserIDRequired    = errors.New("UserID cannot be empty")    //nolint
	ErrEventTypeRequired = errors.New("EventType cannot be empty") //nolint
)

errors

Functions

func Configure

func Configure(api *operations.ClaAPI, service Service)

Configure setups handlers on api with service

func NewMockRepository

func NewMockRepository() *mockRepository

NewMockRepository creates a new instance of the mock event repository

Types

type ApprovalListGitHubOrganizationAddedEventData

type ApprovalListGitHubOrganizationAddedEventData struct {
	GitHubOrganizationName string
}

ApprovalListGitHubOrganizationAddedEventData data model

func (*ApprovalListGitHubOrganizationAddedEventData) GetEventDetailsString

func (ed *ApprovalListGitHubOrganizationAddedEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*ApprovalListGitHubOrganizationAddedEventData) GetEventSummaryString

func (ed *ApprovalListGitHubOrganizationAddedEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type ApprovalListGitHubOrganizationDeletedEventData

type ApprovalListGitHubOrganizationDeletedEventData struct {
	GitHubOrganizationName string
}

ApprovalListGitHubOrganizationDeletedEventData data model

func (*ApprovalListGitHubOrganizationDeletedEventData) GetEventDetailsString

func (ed *ApprovalListGitHubOrganizationDeletedEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*ApprovalListGitHubOrganizationDeletedEventData) GetEventSummaryString

func (ed *ApprovalListGitHubOrganizationDeletedEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type AssignRoleScopeData

type AssignRoleScopeData struct {
	Role      string
	Scope     string
	UserName  string
	UserEmail string
}

AssignRoleScopeData data model

func (*AssignRoleScopeData) GetEventDetailsString

func (ed *AssignRoleScopeData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*AssignRoleScopeData) GetEventSummaryString

func (ed *AssignRoleScopeData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type CCLAApprovalListRequestApprovedEventData

type CCLAApprovalListRequestApprovedEventData struct {
	RequestID string
}

CCLAApprovalListRequestApprovedEventData data model

func (*CCLAApprovalListRequestApprovedEventData) GetEventDetailsString

func (ed *CCLAApprovalListRequestApprovedEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*CCLAApprovalListRequestApprovedEventData) GetEventSummaryString

func (ed *CCLAApprovalListRequestApprovedEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type CCLAApprovalListRequestCreatedEventData

type CCLAApprovalListRequestCreatedEventData struct {
	RequestID string
}

CCLAApprovalListRequestCreatedEventData data model

func (*CCLAApprovalListRequestCreatedEventData) GetEventDetailsString

func (ed *CCLAApprovalListRequestCreatedEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*CCLAApprovalListRequestCreatedEventData) GetEventSummaryString

func (ed *CCLAApprovalListRequestCreatedEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type CCLAApprovalListRequestRejectedEventData

type CCLAApprovalListRequestRejectedEventData struct {
	RequestID string
}

CCLAApprovalListRequestRejectedEventData data model

func (*CCLAApprovalListRequestRejectedEventData) GetEventDetailsString

func (ed *CCLAApprovalListRequestRejectedEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*CCLAApprovalListRequestRejectedEventData) GetEventSummaryString

func (ed *CCLAApprovalListRequestRejectedEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type CLAApprovalListAddDomainData

type CLAApprovalListAddDomainData struct {
	ApprovalListDomain string
}

CLAApprovalListAddDomainData data model

func (*CLAApprovalListAddDomainData) GetEventDetailsString

func (ed *CLAApprovalListAddDomainData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*CLAApprovalListAddDomainData) GetEventSummaryString

func (ed *CLAApprovalListAddDomainData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type CLAApprovalListAddEmailData

type CLAApprovalListAddEmailData struct {
	ApprovalListEmail string
}

CLAApprovalListAddEmailData data model

func (*CLAApprovalListAddEmailData) GetEventDetailsString

func (ed *CLAApprovalListAddEmailData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*CLAApprovalListAddEmailData) GetEventSummaryString

func (ed *CLAApprovalListAddEmailData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type CLAApprovalListAddGitHubOrgData

type CLAApprovalListAddGitHubOrgData struct {
	ApprovalListGitHubOrg string
}

CLAApprovalListAddGitHubOrgData data model

func (*CLAApprovalListAddGitHubOrgData) GetEventDetailsString

func (ed *CLAApprovalListAddGitHubOrgData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*CLAApprovalListAddGitHubOrgData) GetEventSummaryString

func (ed *CLAApprovalListAddGitHubOrgData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type CLAApprovalListAddGitHubUsernameData

type CLAApprovalListAddGitHubUsernameData struct {
	ApprovalListGitHubUsername string
}

CLAApprovalListAddGitHubUsernameData data model

func (*CLAApprovalListAddGitHubUsernameData) GetEventDetailsString

func (ed *CLAApprovalListAddGitHubUsernameData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*CLAApprovalListAddGitHubUsernameData) GetEventSummaryString

func (ed *CLAApprovalListAddGitHubUsernameData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type CLAApprovalListAddGitLabGroupData

type CLAApprovalListAddGitLabGroupData struct {
	ApprovalListGitLabGroup string
}

CLAApprovalListAddGitLabGroupData data model

func (*CLAApprovalListAddGitLabGroupData) GetEventDetailsString

func (ed *CLAApprovalListAddGitLabGroupData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*CLAApprovalListAddGitLabGroupData) GetEventSummaryString

func (ed *CLAApprovalListAddGitLabGroupData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type CLAApprovalListAddGitLabUsernameData

type CLAApprovalListAddGitLabUsernameData struct {
	ApprovalListGitLabUsername string
}

CLAApprovalListAddGitLabUsernameData data model

func (*CLAApprovalListAddGitLabUsernameData) GetEventDetailsString

func (ed *CLAApprovalListAddGitLabUsernameData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*CLAApprovalListAddGitLabUsernameData) GetEventSummaryString

func (ed *CLAApprovalListAddGitLabUsernameData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type CLAApprovalListRemoveDomainData

type CLAApprovalListRemoveDomainData struct {
	ApprovalListDomain string
}

CLAApprovalListRemoveDomainData data model

func (*CLAApprovalListRemoveDomainData) GetEventDetailsString

func (ed *CLAApprovalListRemoveDomainData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*CLAApprovalListRemoveDomainData) GetEventSummaryString

func (ed *CLAApprovalListRemoveDomainData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type CLAApprovalListRemoveEmailData

type CLAApprovalListRemoveEmailData struct {
	ApprovalListEmail string
}

CLAApprovalListRemoveEmailData data model

func (*CLAApprovalListRemoveEmailData) GetEventDetailsString

func (ed *CLAApprovalListRemoveEmailData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*CLAApprovalListRemoveEmailData) GetEventSummaryString

func (ed *CLAApprovalListRemoveEmailData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type CLAApprovalListRemoveGitHubOrgData

type CLAApprovalListRemoveGitHubOrgData struct {
	ApprovalListGitHubOrg string
}

CLAApprovalListRemoveGitHubOrgData data model

func (*CLAApprovalListRemoveGitHubOrgData) GetEventDetailsString

func (ed *CLAApprovalListRemoveGitHubOrgData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*CLAApprovalListRemoveGitHubOrgData) GetEventSummaryString

func (ed *CLAApprovalListRemoveGitHubOrgData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type CLAApprovalListRemoveGitHubUsernameData

type CLAApprovalListRemoveGitHubUsernameData struct {
	ApprovalListGitHubUsername string
}

CLAApprovalListRemoveGitHubUsernameData data model

func (*CLAApprovalListRemoveGitHubUsernameData) GetEventDetailsString

func (ed *CLAApprovalListRemoveGitHubUsernameData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*CLAApprovalListRemoveGitHubUsernameData) GetEventSummaryString

func (ed *CLAApprovalListRemoveGitHubUsernameData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type CLAApprovalListRemoveGitLabGroupData

type CLAApprovalListRemoveGitLabGroupData struct {
	ApprovalListGitLabGroup string
}

CLAApprovalListRemoveGitLabGroupData data model

func (*CLAApprovalListRemoveGitLabGroupData) GetEventDetailsString

func (ed *CLAApprovalListRemoveGitLabGroupData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*CLAApprovalListRemoveGitLabGroupData) GetEventSummaryString

func (ed *CLAApprovalListRemoveGitLabGroupData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type CLAApprovalListRemoveGitLabUsernameData

type CLAApprovalListRemoveGitLabUsernameData struct {
	ApprovalListGitLabUsername string
}

CLAApprovalListRemoveGitLabUsernameData data model

func (*CLAApprovalListRemoveGitLabUsernameData) GetEventDetailsString

func (ed *CLAApprovalListRemoveGitLabUsernameData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*CLAApprovalListRemoveGitLabUsernameData) GetEventSummaryString

func (ed *CLAApprovalListRemoveGitLabUsernameData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type CLAGroupCreatedEventData

type CLAGroupCreatedEventData struct{}

CLAGroupCreatedEventData data model

func (*CLAGroupCreatedEventData) GetEventDetailsString

func (ed *CLAGroupCreatedEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*CLAGroupCreatedEventData) GetEventSummaryString

func (ed *CLAGroupCreatedEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type CLAGroupDeletedEventData

type CLAGroupDeletedEventData struct{}

CLAGroupDeletedEventData data model

func (*CLAGroupDeletedEventData) GetEventDetailsString

func (ed *CLAGroupDeletedEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*CLAGroupDeletedEventData) GetEventSummaryString

func (ed *CLAGroupDeletedEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type CLAGroupEnrolledProjectData

type CLAGroupEnrolledProjectData struct {
}

CLAGroupEnrolledProjectData event data model

func (*CLAGroupEnrolledProjectData) GetEventDetailsString

func (ed *CLAGroupEnrolledProjectData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*CLAGroupEnrolledProjectData) GetEventSummaryString

func (ed *CLAGroupEnrolledProjectData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type CLAGroupUnenrolledProjectData

type CLAGroupUnenrolledProjectData struct {
}

CLAGroupUnenrolledProjectData event data model

func (*CLAGroupUnenrolledProjectData) GetEventDetailsString

func (ed *CLAGroupUnenrolledProjectData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*CLAGroupUnenrolledProjectData) GetEventSummaryString

func (ed *CLAGroupUnenrolledProjectData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type CLAGroupUpdatedEventData

type CLAGroupUpdatedEventData struct {
	NewClaGroupName        string
	NewClaGroupDescription string
	OldClaGroupName        string
	OldClaGroupDescription string
}

CLAGroupUpdatedEventData data model

func (*CLAGroupUpdatedEventData) GetEventDetailsString

func (ed *CLAGroupUpdatedEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*CLAGroupUpdatedEventData) GetEventSummaryString

func (ed *CLAGroupUpdatedEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type CLAManagerCreatedEventData

type CLAManagerCreatedEventData struct {
	CompanyName string
	ProjectName string
	UserName    string
	UserEmail   string
	UserLFID    string
}

CLAManagerCreatedEventData data model

func (*CLAManagerCreatedEventData) GetEventDetailsString

func (ed *CLAManagerCreatedEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*CLAManagerCreatedEventData) GetEventSummaryString

func (ed *CLAManagerCreatedEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type CLAManagerDeletedEventData

type CLAManagerDeletedEventData struct {
	CompanyName string
	ProjectName string
	UserName    string
	UserEmail   string
	UserLFID    string
}

CLAManagerDeletedEventData data model

func (*CLAManagerDeletedEventData) GetEventDetailsString

func (ed *CLAManagerDeletedEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*CLAManagerDeletedEventData) GetEventSummaryString

func (ed *CLAManagerDeletedEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type CLAManagerRequestApprovedEventData

type CLAManagerRequestApprovedEventData struct {
	RequestID    string
	CompanyName  string
	ProjectName  string
	UserName     string
	UserEmail    string
	ManagerName  string
	ManagerEmail string
}

CLAManagerRequestApprovedEventData data model

func (*CLAManagerRequestApprovedEventData) GetEventDetailsString

func (ed *CLAManagerRequestApprovedEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*CLAManagerRequestApprovedEventData) GetEventSummaryString

func (ed *CLAManagerRequestApprovedEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type CLAManagerRequestCreatedEventData

type CLAManagerRequestCreatedEventData struct {
	RequestID   string
	CompanyName string
	ProjectName string
	UserName    string
	UserEmail   string
	UserLFID    string
}

CLAManagerRequestCreatedEventData data model

func (*CLAManagerRequestCreatedEventData) GetEventDetailsString

func (ed *CLAManagerRequestCreatedEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*CLAManagerRequestCreatedEventData) GetEventSummaryString

func (ed *CLAManagerRequestCreatedEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type CLAManagerRequestDeletedEventData

type CLAManagerRequestDeletedEventData struct {
	RequestID    string
	CompanyName  string
	ProjectName  string
	UserName     string
	UserEmail    string
	ManagerName  string
	ManagerEmail string
}

CLAManagerRequestDeletedEventData data model

func (*CLAManagerRequestDeletedEventData) GetEventDetailsString

func (ed *CLAManagerRequestDeletedEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*CLAManagerRequestDeletedEventData) GetEventSummaryString

func (ed *CLAManagerRequestDeletedEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type CLAManagerRequestDeniedEventData

type CLAManagerRequestDeniedEventData struct {
	RequestID    string
	CompanyName  string
	ProjectName  string
	UserName     string
	UserEmail    string
	ManagerName  string
	ManagerEmail string
}

CLAManagerRequestDeniedEventData data model

func (*CLAManagerRequestDeniedEventData) GetEventDetailsString

func (ed *CLAManagerRequestDeniedEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*CLAManagerRequestDeniedEventData) GetEventSummaryString

func (ed *CLAManagerRequestDeniedEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type CLATemplateCreatedEventData

type CLATemplateCreatedEventData struct {
	TemplateName string
	OldPOC       string
	NewPOC       string
}

CLATemplateCreatedEventData data model

func (*CLATemplateCreatedEventData) GetEventDetailsString

func (ed *CLATemplateCreatedEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*CLATemplateCreatedEventData) GetEventSummaryString

func (ed *CLATemplateCreatedEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type ClaManagerAccessRequestAddedEventData

type ClaManagerAccessRequestAddedEventData struct {
	ProjectName string
	CompanyName string
}

ClaManagerAccessRequestAddedEventData data model

func (*ClaManagerAccessRequestAddedEventData) GetEventDetailsString

func (ed *ClaManagerAccessRequestAddedEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*ClaManagerAccessRequestAddedEventData) GetEventSummaryString

func (ed *ClaManagerAccessRequestAddedEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type ClaManagerAccessRequestDeletedEventData

type ClaManagerAccessRequestDeletedEventData struct {
	RequestID string
}

ClaManagerAccessRequestDeletedEventData data model

func (*ClaManagerAccessRequestDeletedEventData) GetEventDetailsString

func (ed *ClaManagerAccessRequestDeletedEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*ClaManagerAccessRequestDeletedEventData) GetEventSummaryString

func (ed *ClaManagerAccessRequestDeletedEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type ClaManagerRoleCreatedData

type ClaManagerRoleCreatedData struct {
	Role      string
	Scope     string
	UserName  string
	UserEmail string
}

ClaManagerRoleCreatedData data model

func (*ClaManagerRoleCreatedData) GetEventDetailsString

func (ed *ClaManagerRoleCreatedData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*ClaManagerRoleCreatedData) GetEventSummaryString

func (ed *ClaManagerRoleCreatedData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type ClaManagerRoleDeletedData

type ClaManagerRoleDeletedData struct {
	Role      string
	Scope     string
	UserName  string
	UserEmail string
}

ClaManagerRoleDeletedData data model

func (*ClaManagerRoleDeletedData) GetEventDetailsString

func (ed *ClaManagerRoleDeletedData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*ClaManagerRoleDeletedData) GetEventSummaryString

func (ed *ClaManagerRoleDeletedData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type CombinedRepo

type CombinedRepo interface {
	GetCLAGroupByID(ctx context.Context, claGroupID string, loadRepoDetails bool) (*models.ClaGroup, error)
	GetCompany(ctx context.Context, companyID string) (*models.Company, error)
	GetUserByUserName(userName string, fullMatch bool) (*models.User, error)
	GetUser(userID string) (*models.User, error)
	GetClaGroupIDForProject(ctx context.Context, projectSFID string) (*projects_cla_groups.ProjectClaGroup, error)
}

CombinedRepo contains the various methods of other repositories

type CompanyACLRequestAddedEventData

type CompanyACLRequestAddedEventData struct {
	UserName  string
	UserID    string
	UserEmail string
}

CompanyACLRequestAddedEventData data model

func (*CompanyACLRequestAddedEventData) GetEventDetailsString

func (ed *CompanyACLRequestAddedEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*CompanyACLRequestAddedEventData) GetEventSummaryString

func (ed *CompanyACLRequestAddedEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type CompanyACLRequestApprovedEventData

type CompanyACLRequestApprovedEventData struct {
	UserName  string
	UserID    string
	UserEmail string
}

CompanyACLRequestApprovedEventData data model

func (*CompanyACLRequestApprovedEventData) GetEventDetailsString

func (ed *CompanyACLRequestApprovedEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*CompanyACLRequestApprovedEventData) GetEventSummaryString

func (ed *CompanyACLRequestApprovedEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type CompanyACLRequestDeniedEventData

type CompanyACLRequestDeniedEventData struct {
	UserName  string
	UserID    string
	UserEmail string
}

CompanyACLRequestDeniedEventData data model

func (*CompanyACLRequestDeniedEventData) GetEventDetailsString

func (ed *CompanyACLRequestDeniedEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*CompanyACLRequestDeniedEventData) GetEventSummaryString

func (ed *CompanyACLRequestDeniedEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type CompanyACLUserAddedEventData

type CompanyACLUserAddedEventData struct {
	UserLFID string
}

CompanyACLUserAddedEventData data model

func (*CompanyACLUserAddedEventData) GetEventDetailsString

func (ed *CompanyACLUserAddedEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*CompanyACLUserAddedEventData) GetEventSummaryString

func (ed *CompanyACLUserAddedEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type ContributorAssignCLADesignee

type ContributorAssignCLADesignee struct {
	DesigneeName  string
	DesigneeEmail string
}

ContributorAssignCLADesignee data model

func (*ContributorAssignCLADesignee) GetEventDetailsString

func (ed *ContributorAssignCLADesignee) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*ContributorAssignCLADesignee) GetEventSummaryString

func (ed *ContributorAssignCLADesignee) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type ContributorNotifyCLADesignee

type ContributorNotifyCLADesignee struct {
	DesigneeName  string
	DesigneeEmail string
}

ContributorNotifyCLADesignee data model

func (*ContributorNotifyCLADesignee) GetEventDetailsString

func (ed *ContributorNotifyCLADesignee) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*ContributorNotifyCLADesignee) GetEventSummaryString

func (ed *ContributorNotifyCLADesignee) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type ContributorNotifyCompanyAdminData

type ContributorNotifyCompanyAdminData struct {
	AdminName  string
	AdminEmail string
}

ContributorNotifyCompanyAdminData data model

func (*ContributorNotifyCompanyAdminData) GetEventDetailsString

func (ed *ContributorNotifyCompanyAdminData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*ContributorNotifyCompanyAdminData) GetEventSummaryString

func (ed *ContributorNotifyCompanyAdminData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type CorporateSignatureSignedEventData

type CorporateSignatureSignedEventData struct {
	ProjectName   string
	CompanyName   string
	SignatoryName string
}

func (*CorporateSignatureSignedEventData) GetEventDetailsString

func (ed *CorporateSignatureSignedEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

func (*CorporateSignatureSignedEventData) GetEventSummaryString

func (ed *CorporateSignatureSignedEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

type DBProjectDocumentModel

type DBProjectDocumentModel struct {
	DocumentName            string `dynamodbav:"document_name"`
	DocumentFileID          string `dynamodbav:"document_file_id"`
	DocumentPreamble        string `dynamodbav:"document_preamble"`
	DocumentLegalEntityName string `dynamodbav:"document_legal_entity_name"`
	DocumentAuthorName      string `dynamodbav:"document_author_name"`
	DocumentContentType     string `dynamodbav:"document_content_type"`
	DocumentS3URL           string `dynamodbav:"document_s3_url"`
	DocumentMajorVersion    string `dynamodbav:"document_major_version"`
	DocumentMinorVersion    string `dynamodbav:"document_minor_version"`
	DocumentCreationDate    string `dynamodbav:"document_creation_date"`
}

DBProjectDocumentModel is a data model for the CLA Group Project documents

type DBProjectModel

type DBProjectModel struct {
	DateCreated                      string                   `dynamodbav:"date_created"`
	DateModified                     string                   `dynamodbav:"date_modified"`
	ProjectExternalID                string                   `dynamodbav:"project_external_id"`
	ProjectID                        string                   `dynamodbav:"project_id"`
	ProjectName                      string                   `dynamodbav:"project_name"`
	Version                          string                   `dynamodbav:"version"`
	ProjectCclaEnabled               bool                     `dynamodbav:"project_ccla_enabled"`
	ProjectCclaRequiresIclaSignature bool                     `dynamodbav:"project_ccla_requires_icla_signature"`
	ProjectIclaEnabled               bool                     `dynamodbav:"project_icla_enabled"`
	ProjectCorporateDocuments        []DBProjectDocumentModel `dynamodbav:"project_corporate_documents"`
	ProjectIndividualDocuments       []DBProjectDocumentModel `dynamodbav:"project_individual_documents"`
	ProjectMemberDocuments           []DBProjectDocumentModel `dynamodbav:"project_member_documents"`
	ProjectACL                       []string                 `dynamodbav:"project_acl"`
}

DBProjectModel data model

type DBUser

type DBUser struct {
	UserID             string   `json:"user_id"`
	UserExternalID     string   `json:"user_external_id"`
	LFEmail            string   `json:"lf_email"`
	Admin              bool     `json:"admin"`
	LFUsername         string   `json:"lf_username"`
	DateCreated        string   `json:"date_created"`
	DateModified       string   `json:"date_modified"`
	UserName           string   `json:"user_name"`
	Version            string   `json:"version"`
	UserEmails         []string `json:"user_emails"`
	UserGithubID       string   `json:"user_github_id"`
	UserCompanyID      string   `json:"user_company_id"`
	UserGithubUsername string   `json:"user_github_username"`
	Note               string   `json:"note"`
}

DBUser data model

type Event

type Event struct {
	EventID   string `dynamodbav:"event_id"`
	EventType string `dynamodbav:"event_type"`

	EventUserID     string `dynamodbav:"event_user_id"`
	EventUserName   string `dynamodbav:"event_user_name"`
	EventLfUsername string `dynamodbav:"event_lf_username"`

	EventCLAGroupID        string `dynamodbav:"event_cla_group_id"`
	EventCLAGroupName      string `dynamodbav:"event_cla_group_name"`
	EventCLAGroupNameLower string `dynamodbav:"event_cla_group_name_lower"`

	EventProjectID         string `dynamodbav:"event_project_id"` // legacy, same as the SFID
	EventProjectSFID       string `dynamodbav:"event_project_sfid"`
	EventProjectName       string `dynamodbav:"event_project_name"`
	EventParentProjectSFID string `dynamodbav:"event_parent_project_sfid"`
	EventParentProjectName string `dynamodbav:"event_parent_project_name"`

	EventCompanyID   string `dynamodbav:"event_company_id"`
	EventCompanySFID string `dynamodbav:"event_company_sfid"`
	EventCompanyName string `dynamodbav:"event_company_name"`

	EventData    string `dynamodbav:"event_data"`
	EventSummary string `dynamodbav:"event_summary"`

	EventTime      string `dynamodbav:"event_time"`
	EventTimeEpoch int64  `dynamodbav:"event_time_epoch"`
}

Event data model

type EventData

type EventData interface {
	GetEventDetailsString(args *LogEventArgs) (eventData string, containsPII bool)
	GetEventSummaryString(args *LogEventArgs) (eventData string, containsPII bool)
}

EventData returns event data string which is used for event logging and containsPII field

type GerritAddedEventData

type GerritAddedEventData struct {
	GerritRepositoryName string
}

GerritAddedEventData data model

func (*GerritAddedEventData) GetEventDetailsString

func (ed *GerritAddedEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*GerritAddedEventData) GetEventSummaryString

func (ed *GerritAddedEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type GerritDeletedEventData

type GerritDeletedEventData struct {
	GerritRepositoryName string
}

GerritDeletedEventData data model

func (*GerritDeletedEventData) GetEventDetailsString

func (ed *GerritDeletedEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*GerritDeletedEventData) GetEventSummaryString

func (ed *GerritDeletedEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type GerritProjectDeletedEventData

type GerritProjectDeletedEventData struct {
	DeletedCount int
}

GerritProjectDeletedEventData event data model

func (*GerritProjectDeletedEventData) GetEventDetailsString

func (ed *GerritProjectDeletedEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*GerritProjectDeletedEventData) GetEventSummaryString

func (ed *GerritProjectDeletedEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type GerritUserAddedEventData

type GerritUserAddedEventData struct {
	Username  string
	GroupName string
}

GerritUserAddedEventData data model

func (*GerritUserAddedEventData) GetEventDetailsString

func (ed *GerritUserAddedEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*GerritUserAddedEventData) GetEventSummaryString

func (ed *GerritUserAddedEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type GerritUserRemovedEventData

type GerritUserRemovedEventData struct {
	Username  string
	GroupName string
}

GerritUserRemovedEventData data model

func (*GerritUserRemovedEventData) GetEventDetailsString

func (ed *GerritUserRemovedEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*GerritUserRemovedEventData) GetEventSummaryString

func (ed *GerritUserRemovedEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type GitHubOrganizationAddedEventData

type GitHubOrganizationAddedEventData struct {
	GitHubOrganizationName  string
	AutoEnabled             bool
	AutoEnabledClaGroupID   string
	BranchProtectionEnabled bool
}

GitHubOrganizationAddedEventData data model

func (*GitHubOrganizationAddedEventData) GetEventDetailsString

func (ed *GitHubOrganizationAddedEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*GitHubOrganizationAddedEventData) GetEventSummaryString

func (ed *GitHubOrganizationAddedEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type GitHubOrganizationDeletedEventData

type GitHubOrganizationDeletedEventData struct {
	GitHubOrganizationName string
}

GitHubOrganizationDeletedEventData data model

func (*GitHubOrganizationDeletedEventData) GetEventDetailsString

func (ed *GitHubOrganizationDeletedEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*GitHubOrganizationDeletedEventData) GetEventSummaryString

func (ed *GitHubOrganizationDeletedEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type GitHubOrganizationUpdatedEventData

type GitHubOrganizationUpdatedEventData struct {
	GitHubOrganizationName  string
	AutoEnabled             bool
	AutoEnabledClaGroupID   string
	BranchProtectionEnabled bool
}

GitHubOrganizationUpdatedEventData data model

func (*GitHubOrganizationUpdatedEventData) GetEventDetailsString

func (ed *GitHubOrganizationUpdatedEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*GitHubOrganizationUpdatedEventData) GetEventSummaryString

func (ed *GitHubOrganizationUpdatedEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type GitHubProjectDeletedEventData

type GitHubProjectDeletedEventData struct {
	DeletedCount int
}

GitHubProjectDeletedEventData data model

func (*GitHubProjectDeletedEventData) GetEventDetailsString

func (ed *GitHubProjectDeletedEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*GitHubProjectDeletedEventData) GetEventSummaryString

func (ed *GitHubProjectDeletedEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type GitLabOrganizationAddedEventData

type GitLabOrganizationAddedEventData struct {
	GitLabOrganizationName  string
	AutoEnabled             bool
	AutoEnabledClaGroupID   string
	BranchProtectionEnabled bool
}

GitLabOrganizationAddedEventData data model

func (*GitLabOrganizationAddedEventData) GetEventDetailsString

func (ed *GitLabOrganizationAddedEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*GitLabOrganizationAddedEventData) GetEventSummaryString

func (ed *GitLabOrganizationAddedEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type GitLabOrganizationDeletedEventData

type GitLabOrganizationDeletedEventData struct {
	GitLabOrganizationName string
}

GitLabOrganizationDeletedEventData data model

func (*GitLabOrganizationDeletedEventData) GetEventDetailsString

func (ed *GitLabOrganizationDeletedEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*GitLabOrganizationDeletedEventData) GetEventSummaryString

func (ed *GitLabOrganizationDeletedEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type GitLabOrganizationUpdatedEventData

type GitLabOrganizationUpdatedEventData struct {
	GitLabOrganizationName string
	GitLabGroupID          int64
	AutoEnabled            bool
	AutoEnabledClaGroupID  string
}

GitLabOrganizationUpdatedEventData data model

func (*GitLabOrganizationUpdatedEventData) GetEventDetailsString

func (ed *GitLabOrganizationUpdatedEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*GitLabOrganizationUpdatedEventData) GetEventSummaryString

func (ed *GitLabOrganizationUpdatedEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type IndividualSignatureSignedEventData

type IndividualSignatureSignedEventData struct {
	ProjectName string
	Username    string
	ProjectID   string
}

func (*IndividualSignatureSignedEventData) GetEventDetailsString

func (ed *IndividualSignatureSignedEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

func (*IndividualSignatureSignedEventData) GetEventSummaryString

func (ed *IndividualSignatureSignedEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

type LogEventArgs

type LogEventArgs struct {
	EventType string

	UserID     string
	LfUsername string
	UserName   string
	UserModel  *models.User
	LFUser     *userServiceModels.User

	CLAGroupID    string
	CLAGroupName  string
	ClaGroupModel *models.ClaGroup

	ProjectID         string // Should just use CLA GroupID
	ProjectSFID       string
	ProjectName       string
	ParentProjectSFID string
	ParentProjectName string

	CompanyID    string
	CompanyName  string
	CompanySFID  string
	CompanyModel *models.Company

	EventData EventData
}

LogEventArgs is argument to LogEvent function EventType, EventData are compulsory. One of LfUsername, UserID must be present

type ProjectServiceCLADisabledData

type ProjectServiceCLADisabledData struct {
}

ProjectServiceCLADisabledData event data model

func (*ProjectServiceCLADisabledData) GetEventDetailsString

func (ed *ProjectServiceCLADisabledData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*ProjectServiceCLADisabledData) GetEventSummaryString

func (ed *ProjectServiceCLADisabledData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type ProjectServiceCLAEnabledData

type ProjectServiceCLAEnabledData struct {
}

ProjectServiceCLAEnabledData event data model

func (*ProjectServiceCLAEnabledData) GetEventDetailsString

func (ed *ProjectServiceCLAEnabledData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*ProjectServiceCLAEnabledData) GetEventSummaryString

func (ed *ProjectServiceCLAEnabledData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type Repository

type Repository interface {
	CreateEvent(event *models.Event) error
	AddDataToEvent(eventID, parentProjectSFID, projectSFID, projectSFName, companySFID, projectID, claGroupID string) error
	SearchEvents(params *eventOps.SearchEventsParams, pageSize int64) (*models.EventList, error)
	GetCCLAEvents(claGroupId, companyID, searchTerm, eventType string, pageSize int64) ([]*models.Event, error)
	GetRecentEvents(pageSize int64) (*models.EventList, error)
	GetEventsByType(eventType string, pageSize int64) ([]*models.Event, error)

	GetCompanyFoundationEvents(companySFID, companyID, foundationSFID string, nextKey *string, paramPageSize *int64, searchTerm *string, all bool) (*models.EventList, error)
	GetCompanyClaGroupEvents(claGroupID string, companySFID string, nextKey *string, paramPageSize *int64, searchTerm *string, all bool) (*models.EventList, error)
	GetCompanyEvents(companyID, eventType string, nextKey *string, paramPageSize *int64, all bool) (*models.EventList, error)
	GetFoundationEvents(foundationSFID string, nextKey *string, paramPageSize *int64, all bool, searchTerm *string) (*models.EventList, error)
	GetClaGroupEvents(claGroupID string, nextKey *string, paramPageSize *int64, all bool, searchTerm *string) (*models.EventList, error)
}

Repository interface defines methods of event repository service

func NewRepository

func NewRepository(awsSession *session.Session, stage string) Repository

NewRepository creates a new instance of the event repository

type RepositoryAddedEventData

type RepositoryAddedEventData struct {
	RepositoryName string
	RepositoryType string
}

RepositoryAddedEventData event data model

func (*RepositoryAddedEventData) GetEventDetailsString

func (ed *RepositoryAddedEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*RepositoryAddedEventData) GetEventSummaryString

func (ed *RepositoryAddedEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type RepositoryBranchProtectionAddedEventData

type RepositoryBranchProtectionAddedEventData struct {
	RepositoryName string
}

RepositoryBranchProtectionAddedEventData event data model

func (*RepositoryBranchProtectionAddedEventData) GetEventDetailsString

func (ed *RepositoryBranchProtectionAddedEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*RepositoryBranchProtectionAddedEventData) GetEventSummaryString

func (ed *RepositoryBranchProtectionAddedEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the details string for this event

type RepositoryBranchProtectionDisabledEventData

type RepositoryBranchProtectionDisabledEventData struct {
	RepositoryName string
}

RepositoryBranchProtectionDisabledEventData event data model

func (*RepositoryBranchProtectionDisabledEventData) GetEventDetailsString

func (ed *RepositoryBranchProtectionDisabledEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*RepositoryBranchProtectionDisabledEventData) GetEventSummaryString

func (ed *RepositoryBranchProtectionDisabledEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the details string for this event

type RepositoryBranchProtectionUpdatedEventData

type RepositoryBranchProtectionUpdatedEventData struct {
	RepositoryName string
}

RepositoryBranchProtectionUpdatedEventData event data model

func (*RepositoryBranchProtectionUpdatedEventData) GetEventDetailsString

func (ed *RepositoryBranchProtectionUpdatedEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*RepositoryBranchProtectionUpdatedEventData) GetEventSummaryString

func (ed *RepositoryBranchProtectionUpdatedEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the details string for this event

type RepositoryDeletedEventData

type RepositoryDeletedEventData struct {
	RepositoryName       string
	RepositoryExternalID int64
}

RepositoryDeletedEventData event data model

func (*RepositoryDeletedEventData) GetEventDetailsString

func (ed *RepositoryDeletedEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*RepositoryDeletedEventData) GetEventSummaryString

func (ed *RepositoryDeletedEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type RepositoryDisabledEventData

type RepositoryDisabledEventData struct {
	RepositoryName       string
	RepositoryExternalID int64
	RepositoryType       string
}

RepositoryDisabledEventData event data model

func (*RepositoryDisabledEventData) GetEventDetailsString

func (ed *RepositoryDisabledEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*RepositoryDisabledEventData) GetEventSummaryString

func (ed *RepositoryDisabledEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type RepositoryRenamedEventData

type RepositoryRenamedEventData struct {
	NewRepositoryName string
	OldRepositoryName string
}

RepositoryRenamedEventData event data model

func (*RepositoryRenamedEventData) GetEventDetailsString

func (ed *RepositoryRenamedEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*RepositoryRenamedEventData) GetEventSummaryString

func (ed *RepositoryRenamedEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type RepositoryTransferredEventData

type RepositoryTransferredEventData struct {
	RepositoryName   string
	OldGithubOrgName string
	NewGithubOrgName string
}

RepositoryTransferredEventData event data model

func (*RepositoryTransferredEventData) GetEventDetailsString

func (ed *RepositoryTransferredEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*RepositoryTransferredEventData) GetEventSummaryString

func (ed *RepositoryTransferredEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type RepositoryUpdatedEventData

type RepositoryUpdatedEventData struct {
	RepositoryName string
}

RepositoryUpdatedEventData event data model

func (*RepositoryUpdatedEventData) GetEventDetailsString

func (ed *RepositoryUpdatedEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*RepositoryUpdatedEventData) GetEventSummaryString

func (ed *RepositoryUpdatedEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type Service

type Service interface {
	LogEvent(args *LogEventArgs)
	LogEventWithContext(ctx context.Context, args *LogEventArgs)
	SearchEvents(params *eventOps.SearchEventsParams) (*models.EventList, error)
	GetRecentEvents(paramPageSize *int64) (*models.EventList, error)

	GetFoundationEvents(foundationSFID string, nextKey *string, paramPageSize *int64, all bool, searchTerm *string) (*models.EventList, error)
	GetClaGroupEvents(claGroupID string, nextKey *string, paramPageSize *int64, all bool, searchTerm *string) (*models.EventList, error)
	GetCompanyFoundationEvents(companySFID, companyID, foundationSFID string, nextKey *string, paramPageSize *int64, searchTerm *string, all bool) (*models.EventList, error)
	GetCompanyClaGroupEvents(claGroupID string, companySFID string, nextKey *string, paramPageSize *int64, searchTerm *string, all bool) (*models.EventList, error)
	GetCompanyEvents(companyID, eventType string, nextKey *string, paramPageSize *int64, all bool) (*models.EventList, error)
}

Service interface defines methods of event service

func NewService

func NewService(repo Repository, combinedRepo CombinedRepo) Service

NewService creates new instance of event service

type SignatureAutoCreateECLAUpdatedEventData

type SignatureAutoCreateECLAUpdatedEventData struct {
	AutoCreateECLA bool
}

SignatureAutoCreateECLAUpdatedEventData data model

func (*SignatureAutoCreateECLAUpdatedEventData) GetEventDetailsString

func (ed *SignatureAutoCreateECLAUpdatedEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*SignatureAutoCreateECLAUpdatedEventData) GetEventSummaryString

func (ed *SignatureAutoCreateECLAUpdatedEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type SignatureInvalidatedApprovalRejectionEventData

type SignatureInvalidatedApprovalRejectionEventData struct {
	GHUsername  string
	Email       string
	SignatureID string
	CLAManager  *models.User
	CLAGroupID  string
}

SignatureInvalidatedApprovalRejectionEventData data model

func (*SignatureInvalidatedApprovalRejectionEventData) GetEventDetailsString

func (ed *SignatureInvalidatedApprovalRejectionEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*SignatureInvalidatedApprovalRejectionEventData) GetEventSummaryString

func (ed *SignatureInvalidatedApprovalRejectionEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type SignatureProjectInvalidatedEventData

type SignatureProjectInvalidatedEventData struct {
	InvalidatedCount int
}

SignatureProjectInvalidatedEventData data model

func (*SignatureProjectInvalidatedEventData) GetEventDetailsString

func (ed *SignatureProjectInvalidatedEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*SignatureProjectInvalidatedEventData) GetEventSummaryString

func (ed *SignatureProjectInvalidatedEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type UserConvertToContactData

type UserConvertToContactData struct {
	UserName  string
	UserEmail string
}

UserConvertToContactData data model

func (*UserConvertToContactData) GetEventDetailsString

func (ed *UserConvertToContactData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*UserConvertToContactData) GetEventSummaryString

func (ed *UserConvertToContactData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type UserCreatedEventData

type UserCreatedEventData struct{}

UserCreatedEventData data model

func (*UserCreatedEventData) GetEventDetailsString

func (ed *UserCreatedEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*UserCreatedEventData) GetEventSummaryString

func (ed *UserCreatedEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type UserDeletedEventData

type UserDeletedEventData struct {
	DeletedUserID string
}

UserDeletedEventData data model

func (*UserDeletedEventData) GetEventDetailsString

func (ed *UserDeletedEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*UserDeletedEventData) GetEventSummaryString

func (ed *UserDeletedEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

type UserUpdatedEventData

type UserUpdatedEventData struct{}

UserUpdatedEventData data model

func (*UserUpdatedEventData) GetEventDetailsString

func (ed *UserUpdatedEventData) GetEventDetailsString(args *LogEventArgs) (string, bool)

GetEventDetailsString returns the details string for this event

func (*UserUpdatedEventData) GetEventSummaryString

func (ed *UserUpdatedEventData) GetEventSummaryString(args *LogEventArgs) (string, bool)

GetEventSummaryString returns the summary string for this event

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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