Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Commit ¶
type Commit struct {
AuthorEmail string `json:"author_email"`
AuthorName string `json:"author_name"`
AuthorURL string `json:"author_url"`
Duration int `json:"duration"`
FinishedAt string `json:"finished_at"`
ID int `json:"id"`
Message string `json:"message"`
Sha string `json:"sha"`
StartedAt string `json:"started_at"`
Status string `json:"status"`
}
type HandleEvent ¶
func GetEventHandler ¶
func GetEventHandler(eventHook string) (HandleEvent, error)
type JobHook ¶
type JobHook struct {
BeforeSha string `json:"before_sha"`
BuildAllowFailure bool `json:"build_allow_failure"`
BuildDuration float64 `json:"build_duration"`
BuildFinishedAt string `json:"build_finished_at"`
BuildID int `json:"build_id"`
BuildName string `json:"build_name"`
BuildStage string `json:"build_stage"`
BuildStartedAt string `json:"build_started_at"`
BuildStatus string `json:"build_status"`
Commit Commit `json:"commit"`
ObjectKind string `json:"object_kind"`
ProjectID int `json:"project_id"`
ProjectName string `json:"project_name"`
Ref string `json:"ref"`
Repository Repository `json:"repository"`
Sha string `json:"sha"`
Tag bool `json:"tag"`
User User `json:"user"`
}
type Repository ¶
Click to show internal directories.
Click to hide internal directories.