Versions in this module Expand all Collapse all v0 v0.54.1 Mar 29, 2024 v0.54.0 Mar 28, 2024 v0.53.1 Mar 26, 2024 Changes in this version + const GiteaHeader + const RetryDelayMilli type Configuration + RepositoryEventRetention int + RepositoryWebHookKey string type GiteaEventPayload + Action string + PullRequest struct{ ... } type GithubWebHookEvent + Action string v0.53.0 Sep 4, 2023 v0.52.0 Sep 26, 2022 Changes in this version + const TypeEntitiesHook + var EntitiesHookRootKey = cache.Key("hooks", "entities") + func CheckWebhookRequestSignatureMiddleware(pubKey *rsa.PublicKey) service.Middleware type Configuration + WebhooksPublicKeySign string + type GiteaEventPayload struct + After string + Before string + Commits []struct{ ... } + CompareUrl string + Pusher struct{ ... } + Ref string + Repository struct{ ... } + Secret string + Sender struct{ ... } type Service + WebHooksParsedPublicKey *rsa.PublicKey + func (s *Service) CheckHeaderToken(headerName string) service.Middleware + func (s *Service) CheckHmac256Signature(headerName string) service.Middleware v0.50.0 Dec 14, 2021 Changes in this version + const BitbucketCloudHeader + const BitbucketHeader + const CDS_TRIGGERED_BY_EMAIL + const CDS_TRIGGERED_BY_FULLNAME + const CDS_TRIGGERED_BY_USERNAME + const ConfigHookID + const ConfigHookRunID + const ConfigNumber + const ConfigSubNumber + const GIT_AUTHOR + const GIT_AUTHOR_EMAIL + const GIT_BRANCH + const GIT_BRANCH_BEFORE + const GIT_BRANCH_DEST + const GIT_EVENT + const GIT_HASH + const GIT_HASH_BEFORE + const GIT_HASH_DEST + const GIT_HASH_SHORT + const GIT_MESSAGE + const GIT_REPOSITORY + const GIT_REPOSITORY_BEFORE + const GIT_REPOSITORY_DEST + const GIT_TAG + const GerritChangeStatusAbandoned + const GerritChangeStatusMerged + const GerritChangeStatusNew + const GerritEmptyRef + const GerritEventTypeAssignedChanged + const GerritEventTypeChangeAbandoned + const GerritEventTypeChangeDeleted + const GerritEventTypeChangeMerged + const GerritEventTypeChangeRestored + const GerritEventTypeCommentAdded + const GerritEventTypeDrafPublished + const GerritEventTypeDroppedOutput + const GerritEventTypeHashTagsChanged + const GerritEventTypePatchsetCreated + const GerritEventTypePrivateStateChanged + const GerritEventTypeProjectCreated + const GerritEventTypeRefUpdated + const GerritEventTypeReviewerAdded + const GerritEventTypeReviewerDelete + const GerritEventTypeTopicChanged + const GerritEventTypeVoteDeleted + const GerritEventTypeWIPStateChanged + const GerritFileTypeAdded + const GerritFileTypeCopied + const GerritFileTypeDeleted + const GerritFileTypeModified + const GerritFileTypeRenamed + const GerritFileTypeRewrite + const GerritLabelStatusImpossible + const GerritLabelStatusMay + const GerritLabelStatusNeed + const GerritLabelStatusOk + const GerritLabelStatusReject + const GerritPatchSetKindMergeFirstParentUpdate + const GerritPatchSetKindNoChange + const GerritPatchSetKindNoCodeChange + const GerritPatchSetKindRework + const GerritPatchSetKindTrivialRebase + const GerritSubmitRecordStatusNotReady + const GerritSubmitRecordStatusOk + const GerritSubmitRecordStatusRuleError + const GithubHeader + const GitlabHeader + const MaintenanceHookKey + const MaintenanceHookQueue + const PAYLOAD + const PR_COMMENT_AUTHOR + const PR_COMMENT_AUTHOR_EMAIL + const PR_COMMENT_TEXT + const PR_COMMENT_TEXT_PREVIOUS + const PR_ID + const PR_PREVIOUS_BRANCH + const PR_PREVIOUS_HASH + const PR_PREVIOUS_STATE + const PR_PREVIOUS_TITLE + const PR_REVIEWER + const PR_REVIEWER_EMAIL + const PR_REVIEWER_ROLE + const PR_REVIEWER_STATUS + const PR_STATE + const PR_TITLE + const TaskExecutionDoing + const TaskExecutionDone + const TaskExecutionEnqueued + const TaskExecutionScheduled + const TypeGerrit + const TypeKafka + const TypeOutgoingWebHook + const TypeOutgoingWorkflow + const TypeRabbitMQ + const TypeRepoManagerWebHook + const TypeRepoPoller + const TypeScheduler + const TypeWebHook + const TypeWorkflowHook + func ListenGerritStreamEvent(ctx context.Context, store cache.Store, goRoutines *sdk.GoRoutines, ...) error + type BitbucketCloudActor struct + AccountID string + DisplayName string + Links struct{ ... } + Nickname string + Type string + UUID string + Username string + type BitbucketCloudChange struct + Closed bool + Commits []struct{ ... } + Created bool + Forced bool + Links struct{ ... } + New struct{ ... } + Old struct{ ... } + Truncated bool + type BitbucketCloudLink struct + Avatar struct{ ... } + HTML struct{ ... } + Self struct{ ... } + type BitbucketCloudRepository struct + FullName string + IsPrivate bool + Links BitbucketCloudLink + Name string + Owner BitbucketCloudActor + Scm string + Type string + UUID string + Website string + type BitbucketCloudWebHookEvent struct + Actor *BitbucketCloudActor + Push struct{ ... } + Repository *BitbucketCloudRepository + type Configuration struct + API service.APIServiceConfiguration + Cache struct{ ... } + Disable bool + ExecutionHistory int + HTTP service.HTTPRouterConfiguration + Name string + RetryDelay int64 + RetryError int64 + URL string + URLPublic string + type GerritAccount struct + Email string + Name string + Username string + type GerritApproval struct + By *GerritAccount + Description string + GrantedOn int + OldValue string + Type string + Value string + type GerritChange struct + AllReviewers []GerritAccount + Branch string + Comments []GerritMessage + CommitMessage string + CreatedOn int64 + CurrentPatchSet *GerritPatchSet + DependsOn []GerritDependency + HashTags []string + ID string + LastUpdated int64 + NeededBy []GerritDependency + Open bool + Owner *GerritAccount + PatchSets []GerritPatchSet + Private bool + Project string + Status string + Subject string + SubmitRecords []GerritSubmitRecord + Topic string + TrackingIDs []GerritTrackingID + URL string + Wip bool + type GerritDependency struct + ID string + IsCurrentPatchSet bool + Number string + Ref string + Revision string + type GerritEvent struct + Abandoner *GerritAccount + Added []string + Approvals []GerritApproval + Author *GerritAccount + Change *GerritChange + Changer *GerritAccount + Comment string + Deleter *GerritAccount + Editor *GerritAccount + EventCreatedOn int64 + HashTags []string + NewRev string + OldAssignee string + OldTopic string + PatchSet *GerritPatchSet + ProjectHead string + ProjectName string + Reason string + RefUpdate *GerritRefUpdate + Removed []string + Remover *GerritAccount + Restorer string + Reviewer *GerritAccount + Submitter *GerritAccount + Type string + Uploader *GerritAccount + type GerritFile struct + Deletions int + File string + FileOld string + Insertions int + Type string + type GerritLabel struct + By *GerritAccount + Label string + Status string + type GerritMessage struct + Message string + Reviewer *GerritAccount + Timestamp int64 + type GerritPatchSet struct + Approvals []GerritApproval + Author *GerritAccount + Comments []GerritPatchSetComment + CreatedOn int + Files []GerritFile + IsDraft bool + Kind string + Number int64 + Parents []string + Ref string + Revision string + SizeDeletions int + SizeInsertions int + Uploader *GerritAccount + type GerritPatchSetComment struct + File string + Line int + Message string + Reviewer *GerritAccount + type GerritRefUpdate struct + NewRev string + OldRev string + Project string + RefName string + type GerritRequirement struct + Data string + FallbackText string + Type string + type GerritSubmitRecord struct + Labels []GerritLabel + Requirements []GerritRequirement + Status string + type GerritTrackingID struct + ID string + System string + type GithubAuthor struct + Email string + Name string + Username string + type GithubCommit struct + Added []interface{} + Author GithubAuthor + Committer GithubAuthor + Distinct bool + ID string + Message string + Modified []string + Removed []interface{} + Timestamp time.Time + TreeID string + URL string + type GithubDate time.Time + func (g *GithubDate) UnmarshalJSON(data []byte) error + type GithubOwner struct + Email string + Name string + type GithubRepository struct + ArchiveURL string + AssigneesURL string + BlobsURL string + BranchesURL string + CloneURL string + CollaboratorsURL string + CommentsURL string + CommitsURL string + CompareURL string + ContentsURL string + ContributorsURL string + CreateAt GithubDate + DefaultBranch string + Description string + DownloadsURL string + EventsURL string + Fork bool + Forks int + ForksCount int + ForksURL string + FullName string + GitCommitsURL string + GitRefsURL string + GitTagsURL string + GitURL string + HTMLURL string + HasDownloads bool + HasIssues bool + HasPages bool + HasWiki bool + Homepage interface{} + HooksURL string + ID int + IssueCommentURL string + IssueEventsURL string + IssuesURL string + KeysURL string + LabelsURL string + Language interface{} + LanguagesURL string + MasterBranch string + MergesURL string + MilestonesURL string + MirrorURL interface{} + Name string + NotificationsURL string + OpenIssues int + OpenIssuesCount int + Owner GithubOwner + Private bool + PullsURL string + PushedAt GithubDate + ReleasesURL string + SSHURL string + Size int + Stargazers int + StargazersCount int + StargazersURL string + StatusesURL string + SubscribersURL string + SubscriptionURL string + SvnURL string + TagsURL string + TeamsURL string + TreesURL string + URL string + UpdatedAt time.Time + Watchers int + WatchersCount int + type GithubSender struct + AvatarURL string + EventsURL string + FollowersURL string + FollowingURL string + GistsURL string + GravatarID string + HTMLURL string + ID int + Login string + OrganizationsURL string + ReceivedEventsURL string + ReposURL string + SiteAdmin bool + StarredURL string + SubscriptionsURL string + Type string + URL string + type GithubWebHookEvent struct + After string + BaseRef interface{} + Before string + Commits []GithubCommit + Compare string + Created bool + Deleted bool + Forced bool + HeadCommit *GithubCommit + Pusher GithubOwner + Ref string + Repository *GithubRepository + Sender GithubSender + func (g *GithubWebHookEvent) GetCommits() []sdk.VCSCommit + type GitlabAuthor struct + Email string + Name string + type GitlabCommit struct + Added []string + Author GitlabAuthor + ID string + Message string + Modified []string + Removed []interface{} + Timestamp time.Time + URL string + type GitlabEvent struct + After string + Before string + CheckoutSha string + Commits []GitlabCommit + ObjectKind string + Project *GitlabProject + ProjectID int + Ref string + Repository *GitlabRepository + TotalCommitsCount int + UserAvatar string + UserEmail string + UserID int + UserName string + UserUsername string + func (g *GitlabEvent) GetCommits() []sdk.VCSCommit + type GitlabProject struct + AvatarURL interface{} + DefaultBranch string + Description string + GitHTTPURL string + GitSSHURL string + HTTPURL string + Homepage string + ID int + Name string + Namespace string + PathWithNamespace string + SSHURL string + URL string + VisibilityLevel int + WebURL string + type GitlabRepository struct + Description string + GitHTTPURL string + GitSSHURL string + Homepage string + Name string + URL string + VisibilityLevel int + type Service struct + Cache cache.Store + Cfg Configuration + Dao dao + Maintenance bool + Router *api.Router + func New() *Service + func (s *Service) ApplyConfiguration(config interface{}) error + func (s *Service) CheckConfiguration(config interface{}) error + func (s *Service) ComputeGerritStreamEvent(ctx context.Context, vcsServer string, gerritEventChan <-chan GerritEvent) + func (s *Service) Init(config interface{}) (cdsclient.ServiceConfig, error) + func (s *Service) Serve(c context.Context) error + func (s *Service) Status(ctx context.Context) *sdk.MonitoringStatus