Created
December 14, 2017 13:42
-
-
Save radu-matei/bf9c1eaf61cd7bc548a2fc80e6c40421 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// WebhookData struct is the data sent from Docker Hub webhooks | |
type WebhookData struct { | |
PushData struct { | |
PushedAt int `json:"pushed_at"` | |
Images []string `json:"images"` | |
Tag string `json:"tag"` | |
Pusher string `json:"pusher"` | |
} `json:"push_data"` | |
CallbackURL string `json:"callback_url"` | |
Repository struct { | |
Status string `json:"status"` | |
Description string `json:"description"` | |
IsTrusted bool `json:"is_trusted"` | |
FullDescription string `json:"full_description"` | |
RepoURL string `json:"repo_url"` | |
Owner string `json:"owner"` | |
IsOfficial bool `json:"is_official"` | |
IsPrivate bool `json:"is_private"` | |
Name string `json:"name"` | |
Namespace string `json:"namespace"` | |
StarCount int `json:"star_count"` | |
CommentCount int `json:"comment_count"` | |
DateCreated int `json:"date_created"` | |
RepoName string `json:"repo_name"` | |
} `json:"repository"` | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment