2015-12-11 09:46:36 +01:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/drone/drone-go/drone"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Params struct {
|
|
|
|
Recipients []string `json:"recipients"`
|
|
|
|
Host string `json:"host"`
|
|
|
|
Port int `json:"port"`
|
|
|
|
From string `json:"from"`
|
|
|
|
Username string `json:"username"`
|
|
|
|
Password string `json:"password"`
|
2015-12-16 11:41:30 +01:00
|
|
|
Subject string `json:"subject"`
|
|
|
|
Template string `json:"template"`
|
|
|
|
SkipVerify bool `json:"skip_verify"`
|
2015-12-11 09:46:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type Context struct {
|
|
|
|
System drone.System
|
|
|
|
Repo drone.Repo
|
|
|
|
Build drone.Build
|
|
|
|
Vargs Params
|
|
|
|
}
|