Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultTemplate = `{{ .Repository.FullName }}:{{ .Deployment.Sha }}`
Functions ¶
Types ¶
type DeploymentHandler ¶
type DeploymentHandler struct {
// contains filtered or unexported fields
}
Deployment is an http.Handler for handling the `deployment` event.
func (*DeploymentHandler) ServeHTTP ¶
func (h *DeploymentHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
func (*DeploymentHandler) ServeHTTPContext ¶
func (h *DeploymentHandler) ServeHTTPContext(ctx context.Context, w http.ResponseWriter, r *http.Request) error
type Empire ¶ added in v0.10.0
type Empire interface {
Deploy(context.Context, empire.DeploymentsCreateOpts) (*empire.Release, error)
}
Empire mocks the Empire interface we use.
type Options ¶
type Options struct {
// The GitHub secret to ensure that the request was sent from GitHub.
Secret string
// If provided, specifies the environments that this Empire instance
// should handle deployments for.
Environments []string
// ImageTemplate is used to determine the image to deploy.
ImageTemplate string
// TugboatURL can be provided if you want to send deployment logs to a
// Tugboat instance.
TugboatURL string
}
Click to show internal directories.
Click to hide internal directories.