Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SeveritiesString ¶
func SeveritiesString() []string
Types ¶
type Config ¶
type Config struct { Content struct { Systems []string `yaml:"systems"` } `yaml:"content"` }
type Incident ¶
type Incident struct { Id string `yaml:"id,omitempty" json:"id,omitempty"` Title string `yaml:"title" json:"title,omitempty"` Description string `yaml:"description,omitempty" json:"description,omitempty"` Date Date `yaml:"date" json:"date,omitempty"` Modified Date `yaml:"modified,omitempty" json:"modified,omitempty"` Severity Severity `yaml:"severity,omitempty" json:"severity,omitempty"` AffectedSystems []string `yaml:"affectedsystems" json:"affectedsystems,omitempty"` Resolved bool `yaml:"resolved" json:"resolved,omitempty"` Scheduled *Date `yaml:"scheduled,omitempty" json:"scheduled,omitempty"` Duration int `yaml:"duration,omitempty" json:"duration,omitempty"` Content string `yaml:"-" fm:"content"` File string `yaml:"-" json:"filename"` }
func (*Incident) UnmarshalYAML ¶ added in v0.1.1
type Severity ¶
type Severity string
func FindSeverity ¶
func Severities ¶
func Severities() []Severity
Click to show internal directories.
Click to hide internal directories.