Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BitbucketPushEvent ¶
type BitbucketPushEvent struct { Actor struct { DisplayName string `json:"display_name"` Links struct { Avatar struct { Href string `json:"href"` } `json:"avatar"` HTML struct { Href string `json:"href"` } `json:"html"` Self struct { Href string `json:"href"` } `json:"self"` } `json:"links"` Type string `json:"type"` Username string `json:"username"` UUID string `json:"uuid"` } `json:"actor"` Push struct { Changes []struct { Closed bool `json:"closed"` Commits []CommitDescription `json:"commits"` Created bool `json:"created"` Forced bool `json:"forced"` Links struct { Commits struct { Href string `json:"href"` } `json:"commits"` Diff struct { Href string `json:"href"` } `json:"diff"` HTML struct { Href string `json:"href"` } `json:"html"` } `json:"links"` New PushEvent `json:"new"` Old PushEvent `json:"old"` Truncated bool `json:"truncated"` } `json:"changes"` } `json:"push"` Repository struct { FullName string `json:"full_name"` IsPrivate bool `json:"is_private"` Links struct { Avatar struct { Href string `json:"href"` } `json:"avatar"` HTML struct { Href string `json:"href"` } `json:"html"` Self struct { Href string `json:"href"` } `json:"self"` } `json:"links"` Name string `json:"name"` Owner struct { DisplayName string `json:"display_name"` Links struct { Avatar struct { Href string `json:"href"` } `json:"avatar"` HTML struct { Href string `json:"href"` } `json:"html"` Self struct { Href string `json:"href"` } `json:"self"` } `json:"links"` Type string `json:"type"` Username string `json:"username"` UUID string `json:"uuid"` } `json:"owner"` Scm string `json:"scm"` Type string `json:"type"` UUID string `json:"uuid"` Website string `json:"website"` } `json:"repository"` }
BitbucketPushEvent is a JSON struct used to parsed the JSON payload send by Github on push events
type CommitDescription ¶
type CommitDescription struct { Author struct { Raw string `json:"raw"` User struct { DisplayName string `json:"display_name"` Links struct { Avatar struct { Href string `json:"href"` } `json:"avatar"` HTML struct { Href string `json:"href"` } `json:"html"` Self struct { Href string `json:"href"` } `json:"self"` } `json:"links"` Type string `json:"type"` Username string `json:"username"` UUID string `json:"uuid"` } `json:"user"` } `json:"author"` Date string `json:"date"` Hash string `json:"hash"` Links struct { HTML struct { Href string `json:"href"` } `json:"html"` Self struct { Href string `json:"href"` } `json:"self"` } `json:"links"` Message string `json:"message"` Parents []struct { Hash string `json:"hash"` Links struct { HTML struct { Href string `json:"href"` } `json:"html"` Self struct { Href string `json:"href"` } `json:"self"` } `json:"links"` Type string `json:"type"` } `json:"parents"` Type string `json:"type"` }
CommitDescription to avoid dupplication
type GithubPushEvent ¶
type GithubPushEvent struct { After string `json:"after"` BaseRef string `json:"base_ref"` Before string `json:"before"` Commits []interface{} `json:"commits"` Compare string `json:"compare"` Created bool `json:"created"` Deleted bool `json:"deleted"` Forced bool `json:"forced"` HeadCommit struct { Added []interface{} `json:"added"` Author struct { Email string `json:"email"` Name string `json:"name"` Username string `json:"username"` } `json:"author"` Committer struct { Email string `json:"email"` Name string `json:"name"` Username string `json:"username"` } `json:"committer"` Distinct bool `json:"distinct"` ID string `json:"id"` Message string `json:"message"` Modified []string `json:"modified"` Removed []interface{} `json:"removed"` Timestamp string `json:"timestamp"` URL string `json:"url"` } `json:"head_commit"` Organization struct { AvatarURL string `json:"avatar_url"` Description string `json:"description"` EventsURL string `json:"events_url"` HooksURL string `json:"hooks_url"` ID int `json:"id"` IssuesURL string `json:"issues_url"` Login string `json:"login"` MembersURL string `json:"members_url"` PublicMembersURL string `json:"public_members_url"` ReposURL string `json:"repos_url"` URL string `json:"url"` } `json:"organization"` Pusher struct { Email string `json:"email"` Name string `json:"name"` } `json:"pusher"` Ref string `json:"ref"` Repository struct { ArchiveURL string `json:"archive_url"` AssigneesURL string `json:"assignees_url"` BlobsURL string `json:"blobs_url"` BranchesURL string `json:"branches_url"` CloneURL string `json:"clone_url"` CollaboratorsURL string `json:"collaborators_url"` CommentsURL string `json:"comments_url"` CommitsURL string `json:"commits_url"` CompareURL string `json:"compare_url"` ContentsURL string `json:"contents_url"` ContributorsURL string `json:"contributors_url"` CreatedAt int `json:"created_at"` DefaultBranch string `json:"default_branch"` DeploymentsURL string `json:"deployments_url"` Description string `json:"description"` DownloadsURL string `json:"downloads_url"` EventsURL string `json:"events_url"` Fork bool `json:"fork"` Forks int `json:"forks"` ForksCount int `json:"forks_count"` ForksURL string `json:"forks_url"` FullName string `json:"full_name"` GitCommitsURL string `json:"git_commits_url"` GitRefsURL string `json:"git_refs_url"` GitTagsURL string `json:"git_tags_url"` GitURL string `json:"git_url"` HasDownloads bool `json:"has_downloads"` HasIssues bool `json:"has_issues"` HasPages bool `json:"has_pages"` HasWiki bool `json:"has_wiki"` Homepage string `json:"homepage"` HooksURL string `json:"hooks_url"` HTMLURL string `json:"html_url"` ID int `json:"id"` IssueCommentURL string `json:"issue_comment_url"` IssueEventsURL string `json:"issue_events_url"` IssuesURL string `json:"issues_url"` KeysURL string `json:"keys_url"` LabelsURL string `json:"labels_url"` Language interface{} `json:"language"` LanguagesURL string `json:"languages_url"` MasterBranch string `json:"master_branch"` MergesURL string `json:"merges_url"` MilestonesURL string `json:"milestones_url"` MirrorURL interface{} `json:"mirror_url"` Name string `json:"name"` NotificationsURL string `json:"notifications_url"` OpenIssues int `json:"open_issues"` OpenIssuesCount int `json:"open_issues_count"` Organization string `json:"organization"` Owner struct { Email string `json:"email"` Name string `json:"name"` } `json:"owner"` Private bool `json:"private"` PullsURL string `json:"pulls_url"` PushedAt int `json:"pushed_at"` ReleasesURL string `json:"releases_url"` Size int `json:"size"` SSHURL string `json:"ssh_url"` Stargazers int `json:"stargazers"` StargazersCount int `json:"stargazers_count"` StargazersURL string `json:"stargazers_url"` StatusesURL string `json:"statuses_url"` SubscribersURL string `json:"subscribers_url"` SubscriptionURL string `json:"subscription_url"` SvnURL string `json:"svn_url"` TagsURL string `json:"tags_url"` TeamsURL string `json:"teams_url"` TreesURL string `json:"trees_url"` UpdatedAt string `json:"updated_at"` URL string `json:"url"` Watchers int `json:"watchers"` WatchersCount int `json:"watchers_count"` } `json:"repository"` Sender struct { AvatarURL string `json:"avatar_url"` EventsURL string `json:"events_url"` FollowersURL string `json:"followers_url"` FollowingURL string `json:"following_url"` GistsURL string `json:"gists_url"` GravatarID string `json:"gravatar_id"` HTMLURL string `json:"html_url"` ID int `json:"id"` Login string `json:"login"` OrganizationsURL string `json:"organizations_url"` ReceivedEventsURL string `json:"received_events_url"` ReposURL string `json:"repos_url"` SiteAdmin bool `json:"site_admin"` StarredURL string `json:"starred_url"` SubscriptionsURL string `json:"subscriptions_url"` Type string `json:"type"` URL string `json:"url"` } `json:"sender"` }
GithubPushEvent is a JSON struct used to parsed the JSON payload send by Github on push events
type PingResponse ¶
type PingResponse struct {
Pong string `json:"pong"`
}
PingResponse is a JSON struct to use when responding to the client
type PushEvent ¶
type PushEvent struct { Links struct { Commits struct { Href string `json:"href"` } `json:"commits"` HTML struct { Href string `json:"href"` } `json:"html"` Self struct { Href string `json:"href"` } `json:"self"` } `json:"links"` Name string `json:"name"` Repository struct { FullName string `json:"full_name"` Links struct { Avatar struct { Href string `json:"href"` } `json:"avatar"` HTML struct { Href string `json:"href"` } `json:"html"` Self struct { Href string `json:"href"` } `json:"self"` } `json:"links"` Name string `json:"name"` Type string `json:"type"` UUID string `json:"uuid"` } `json:"repository"` Target CommitDescription `json:"target"` Type string `json:"type"` }
PushEvent to avoid dupplication
type PushEventResponse ¶
PushEventResponse is a JSON struct to use when responding to the client
type StatusResponse ¶
type StatusResponse struct { DockerHostStatus string `json:"docker_host_status"` Status string `json:"status"` }
StatusResponse is a JSON struct to use when responding to the client
type VersionResponse ¶
type VersionResponse struct { DockerHostVersion string `json:"docker_host_version"` Version string `json:"version"` }
VersionResponse is a JSON struct to use when responding to the client
Click to show internal directories.
Click to hide internal directories.