Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BitbucketHandler ¶
type BitbucketHandler struct {
// contains filtered or unexported fields
}
func NewBitbucketHandler ¶
func NewBitbucketHandler(runners ...runners.Runner) *BitbucketHandler
func (BitbucketHandler) ServeHTTP ¶
func (handler BitbucketHandler) ServeHTTP(res http.ResponseWriter, req *http.Request)
type BitbucketMessage ¶
type BitbucketMessage struct {
Actor User
Repository struct {
Name string
FullName string `json:"full_name"`
Uuid string
Scm string
IsPrivate bool `json:"is_private"`
Links struct {
Self Link
Html Link
Avatar Link
}
}
Push struct {
Changes []struct {
New ReferenceState
Old ReferenceState
Links struct {
Html Link
Diff Link
Commit Link
}
Created bool
Closed bool
Forced bool
Truncated bool
Commits []struct {
Hash string
Type string
Message string
Author User
Links struct {
Self Link
Html Link
}
}
}
}
}
type DockerHubHandler ¶
type DockerHubHandler struct {
// contains filtered or unexported fields
}
func NewDockerHubHandler ¶
func NewDockerHubHandler(runners ...runners.Runner) *DockerHubHandler
func (DockerHubHandler) ServeHTTP ¶
func (handler DockerHubHandler) ServeHTTP(res http.ResponseWriter, req *http.Request)
type DockerHubMessage ¶
type DockerHubMessage struct {
CallbackUrl string `json:"callback_url"`
PushData struct {
Images []string
Pusher string
PuashedAt int `json:"pushed_at"`
Tag string
} `json:"push_data"`
Repository struct {
CommentCount int `json:"comment_count"`
DateCreated int `json:"date_created"`
Description string
FullDescription string `json:"full_description"`
IsOfficial bool `json:"is_official"`
IsPrivate bool `json:"is_private"`
IsTrusted bool `json:"is_trusted"`
Name string
Namespace string
Owner string
RepoUrl string `json:"repo_url"`
RepoName string `json:"repo_name"`
Status string
StarCount int `json:"star_count"`
}
}
type ReferenceState ¶
type ReferenceState struct {
Type string
Name string
Target struct {
Type string
Hash string
Author User
Message string
Date string
Parents []struct {
Type string
Hash string
Links struct {
Self Link
Html Link
}
}
Links struct {
Self Link
Html Link
}
}
Links struct {
Self Link
Commits Link
Html Link
}
}
Click to show internal directories.
Click to hide internal directories.