handlers

package
v0.0.0-...-c18b09c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(name string, runners ...runners.Runner) http.Handler

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 Link struct {
	Href string
}

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
	}
}

type User

type User struct {
	Username    string
	DisplayName string `json:"display_name"`
	Uuid        string
	Links       struct {
		Self   Link
		Html   Link
		Avatar Link
	}
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL