Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BufferedExecutor ¶
type BufferedExecutor struct {
// contains filtered or unexported fields
}
func NewBufferedExecutor ¶
func NewBufferedExecutor() *BufferedExecutor
func (*BufferedExecutor) Submit ¶
func (r *BufferedExecutor) Submit(fn func() error)
Submit sends the deployment status via HTTP to the given address. This function returns immediately, and sends the HTTP requests in the background. If the HTTP endpoint responds slower than Report is called, only the latest deploy status is sent.
type CompositeReporter ¶
type CompositeReporter []reporter
func (CompositeReporter) Report ¶
func (cr CompositeReporter) Report(status *deployer.DeployStatus)
type GrafanaCreateAnnotationRequest ¶
type GrafanaCreateAnnotationRequest struct { DashboardID int64 `json:"dashboardId,omitempty"` IsRegion bool `json:"isRegion,omitempty"` PanelID int64 `json:"panelId,omitempty"` Tags []string `json:"tags,omitempty"` Text string `json:"text,omitempty"` Time int64 `json:"time,omitempty"` TimeEnd int64 `json:"timeEnd,omitempty"` }
type GrafanaReporter ¶
type GrafanaReporter struct {
// contains filtered or unexported fields
}
func NewGrafanaReporter ¶
func NewGrafanaReporter(grafanaURL, authToken string) *GrafanaReporter
func (*GrafanaReporter) Report ¶
func (r *GrafanaReporter) Report(status *deployer.DeployStatus)
type HTTPReporter ¶
type HTTPReporter struct {
// contains filtered or unexported fields
}
func NewHTTPReporter ¶
func NewHTTPReporter(address, token string) (*HTTPReporter, error)
func (*HTTPReporter) Report ¶
func (r *HTTPReporter) Report(status *deployer.DeployStatus)
type SlackReporter ¶
type SlackReporter struct {
// contains filtered or unexported fields
}
func NewSlackReporter ¶
func NewSlackReporter(token, channel string) *SlackReporter
func (*SlackReporter) Report ¶
func (r *SlackReporter) Report(status *deployer.DeployStatus)
type TerminalReporter ¶
type TerminalReporter struct {
// contains filtered or unexported fields
}
func (*TerminalReporter) Report ¶
func (r *TerminalReporter) Report(status *deployer.DeployStatus)
Click to show internal directories.
Click to hide internal directories.