Documentation ¶
Index ¶
- type Incident
- func (i Incident) Description() (string, error)
- func (i Incident) Events() *reporter.Events
- func (i Incident) Execute() error
- func (i Incident) ExecutionCompletedAt() time.Time
- func (i Incident) ExecutionStartedAt() time.Time
- func (i Incident) HasKillTask() bool
- func (i Incident) ID() string
- func (i Incident) ShortDescription() (string, error)
- func (i Incident) TaskTypes() []string
- type IncidentNotFoundError
- type IncidentsResp
- type Repo
- type RepoNotifier
- type Request
- type Response
- type Worker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Incident ¶
type Incident struct { Tasks tasks.OptionsSlice Selector selector.Request // contains filtered or unexported fields }
func (Incident) Description ¶
func (Incident) ExecutionCompletedAt ¶
func (Incident) ExecutionStartedAt ¶
func (Incident) HasKillTask ¶
func (Incident) ShortDescription ¶
type IncidentNotFoundError ¶
type IncidentNotFoundError struct {
ID string
}
func (IncidentNotFoundError) Error ¶
func (e IncidentNotFoundError) Error() string
type IncidentsResp ¶
type IncidentsResp []Response
func NewResponses ¶
func NewResponses(incidents []Incident) IncidentsResp
type Repo ¶
type RepoNotifier ¶
type RepoNotifier interface {
IncidentWasCreated(Incident)
}
type Response ¶
type Response struct { ID string Tasks tasks.OptionsSlice Selector selector.Request ExecutionStartedAt string ExecutionCompletedAt string Events []reporter.EventResponse // contains filtered or unexported fields }
func NewResponse ¶
func (Response) Description ¶
func (Response) HasEventErrors ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.