drone-webhook/types.go

20 lines
657 B
Go
Raw Normal View History

2015-11-20 23:51:50 +00:00
package main
// Params represents the valid paramenter options for the webhook plugin.
type Params struct {
2016-01-08 18:27:49 +00:00
URLs []string `json:"urls"`
SkipVerify bool `json:"skip_verify"`
2015-11-21 01:39:05 +00:00
Debug bool `json:"debug"`
Auth Auth `json:"auth"`
2015-11-20 23:51:50 +00:00
Headers map[string]string `json:"header"`
Method string `json:"method"`
Template string `json:"template"`
ContentType string `json:"content_type"`
}
// Auth represents a basic HTTP authentication username and password.
type Auth struct {
2015-11-20 23:51:50 +00:00
Username string `json:"username"`
Password string `json:"password"`
}