Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  var ( ErrInvalidHTTPMethod = errors.New("invalid HTTP Method") ErrParsingPayload = errors.New("error parsing payload") )
parse errors
Functions ¶
This section is empty.
Types ¶
type BuildPayload ¶
type BuildPayload struct {
	CallbackURL string `json:"callback_url"`
	PushData    struct {
		Images   []string `json:"images"`
		PushedAt float32  `json:"pushed_at"`
		Pusher   string   `json:"pusher"`
		Tag      string   `json:"tag"`
	} `json:"push_data"`
	Repository struct {
		CommentCount    int     `json:"comment_count"`
		DateCreated     float32 `json:"date_created"`
		Description     string  `json:"description"`
		Dockerfile      string  `json:"dockerfile"`
		FullDescription string  `json:"full_description"`
		IsOfficial      bool    `json:"is_official"`
		IsPrivate       bool    `json:"is_private"`
		IsTrusted       bool    `json:"is_trusted"`
		Name            string  `json:"name"`
		Namespace       string  `json:"namespace"`
		Owner           string  `json:"owner"`
		RepoName        string  `json:"repo_name"`
		RepoURL         string  `json:"repo_url"`
		StarCount       int     `json:"star_count"`
		Status          string  `json:"status"`
	} `json:"repository"`
}
    BuildPayload a docker hub build notice https://docs.docker.com/docker-hub/webhooks/
type Event ¶
type Event string
Event defines a Docker hook event type
const (
	BuildEvent Event = "build"
)
    Docker hook types (only one for now)
 Click to show internal directories. 
   Click to hide internal directories.