Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PushData ¶
type PushData struct { Images []string `json:"images"` PushedAt float64 `json:"pushed_at"` Pusher string `json:"pusher"` Tag string `json:"tag"` }
PushData is part of the Webhook struct.
type Repository ¶
type Repository struct { RepoName string `json:"repo_name"` Name string `json:"name"` Namespace string `json:"namespace"` Owner string `json:"owner"` Description string `json:"description"` FullDescription string `json:"full_description"` RepoURL string `json:"repo_url"` Dockerfile string `json:"dockerfile"` Status string `json:"status"` IsOfficial bool `json:"is_official"` IsPrivate bool `json:"is_private"` IsTrusted bool `json:"is_trusted"` DateCreated float64 `json:"date_created"` StarCount int64 `json:"star_count"` CommentCount int64 `json:"comment_count"` }
Repository is part of the Webhook struct.
type Webhook ¶
type Webhook struct { CallbackURL string `json:"callback_url"` PushData *PushData `json:"push_data"` Repository *Repository `json:"repository"` }
Webhook is a struct for the Docker Hub webhook event.
func (Webhook) EventRepository ¶
EventRepository is an implementation of the hooks.PushEvent interface.
func (Webhook) PushedImageURL ¶
PushedImageURL is an implementation of the hooks.PushEvent interface.
Click to show internal directories.
Click to hide internal directories.