Documentation ¶
Index ¶
- Constants
- type BoolChanges
- type BranchInfoModel
- type Changes
- type CodePushEventModel
- type CommentInfoModel
- type CommitModel
- type HookProvider
- type LabelChanges
- type LabelInfoModel
- type LastCommitInfoModel
- type MergeRequestCommentEventModel
- type MergeRequestEventModel
- type MergeRequestInfoModel
- type RepositoryModel
- type TagPushEventModel
- type UserModel
Constants ¶
View Source
const (
// ProviderID ...
ProviderID = "gitlab"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoolChanges ¶
BoolChanges ...
type BranchInfoModel ¶
type BranchInfoModel struct { VisibilityLevel int `json:"visibility_level"` GitSSHURL string `json:"git_ssh_url"` GitHTTPURL string `json:"git_http_url"` Namespace string `json:"namespace"` }
BranchInfoModel ...
type Changes ¶
type Changes struct { Draft BoolChanges `json:"draft"` Labels LabelChanges `json:"labels"` }
Changes ...
type CodePushEventModel ¶
type CodePushEventModel struct { ObjectKind string `json:"object_kind"` Ref string `json:"ref"` CheckoutSHA string `json:"checkout_sha"` Commits []CommitModel `json:"commits"` Repository RepositoryModel `json:"respository"` UserUsername string `json:"user_username"` }
CodePushEventModel ...
type CommentInfoModel ¶
type CommentInfoModel struct { ID int `json:"id"` Note string `json:"note"` NoteableType string `json:"noteable_type"` }
CommentInfoModel ...
type CommitModel ¶
type CommitModel struct { CommitHash string `json:"id"` CommitMessage string `json:"message"` AddedFiles []string `json:"added"` ModifiedFiles []string `json:"modified"` RemovedFiles []string `json:"removed"` }
CommitModel ...
type HookProvider ¶
type HookProvider struct {
// contains filtered or unexported fields
}
HookProvider ...
func NewDefaultHookProvider ¶
func NewDefaultHookProvider(logger *zap.Logger) HookProvider
NewDefaultHookProvider ...
func NewHookProvider ¶
func NewHookProvider(timeProvider hookCommon.TimeProvider, logger *zap.Logger) HookProvider
NewHookProvider ...
func (HookProvider) GatherMetrics ¶
GatherMetrics ...
func (HookProvider) TransformRequest ¶
func (hp HookProvider) TransformRequest(r *http.Request) hookCommon.TransformResultModel
TransformRequest ...
type LabelChanges ¶
type LabelChanges struct { Previous []LabelInfoModel `json:"previous"` Current []LabelInfoModel `json:"current"` }
LabelChanges ...
type LabelInfoModel ¶
LabelInfoModel ...
type LastCommitInfoModel ¶
type LastCommitInfoModel struct {
SHA string `json:"id"`
}
LastCommitInfoModel ...
type MergeRequestCommentEventModel ¶
type MergeRequestCommentEventModel struct { ObjectKind string `json:"object_kind"` ObjectAttributes CommentInfoModel `json:"object_attributes"` MergeRequest MergeRequestInfoModel `json:"merge_request"` User UserModel `json:"user"` }
MergeRequestCommentEventModel ...
type MergeRequestEventModel ¶
type MergeRequestEventModel struct { ObjectKind string `json:"object_kind"` ObjectAttributes MergeRequestInfoModel `json:"object_attributes"` Labels []LabelInfoModel `json:"labels"` User UserModel `json:"user"` Changes Changes `json:"changes"` }
MergeRequestEventModel ...
type MergeRequestInfoModel ¶
type MergeRequestInfoModel struct { ID int `json:"iid"` Title string `json:"title"` Description string `json:"description"` State string `json:"state"` Action string `json:"action"` MergeStatus string `json:"merge_status"` MergeCommitSHA string `json:"merge_commit_sha"` MergeError string `json:"merge_error"` Oldrev string `json:"oldrev"` Source BranchInfoModel `json:"source"` SourceBranch string `json:"source_branch"` Target BranchInfoModel `json:"target"` TargetBranch string `json:"target_branch"` LastCommit LastCommitInfoModel `json:"last_commit"` Draft bool `json:"draft"` Labels []LabelInfoModel `json:"labels"` }
MergeRequestInfoModel ...
type RepositoryModel ¶
type RepositoryModel struct { VisibilityLevel int `json:"visibility_level"` GitSSHURL string `json:"git_ssh_url"` GitHTTPURL string `json:"git_http_url"` }
RepositoryModel ...
type TagPushEventModel ¶
type TagPushEventModel struct { ObjectKind string `json:"object_kind"` Ref string `json:"ref"` CheckoutSHA string `json:"checkout_sha"` Repository RepositoryModel `json:"respository"` UserUsername string `json:"user_username"` }
TagPushEventModel ...
Click to show internal directories.
Click to hide internal directories.