Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { JiraUsername string `mapstructure:"jira_username"` JiraPassword string `mapstructure:"jira_password"` JiraToken string `mapstructure:"jira_token"` JiraBaseUrl string `mapstructure:"jira_baseurl"` JiraEnabled bool `mapstructure:"jira_enabled"` JiraQuery []string `mapstructure:"jira_query"` }
type JiraWatcher ¶
type JiraWatcher struct { JiraClient *jira.Client JiraQuery string LastQueryTime time.Time Logger logrus.FieldLogger }
func NewJiraWatchers ¶
func NewJiraWatchers(ctx context.Context, config *Config, logger logrus.FieldLogger) ([]*JiraWatcher, error)
func (*JiraWatcher) Watch ¶
func (jw *JiraWatcher) Watch(ctx context.Context) ([]*Notification, error)
type Notification ¶
func (*Notification) ToCommand ¶
func (n *Notification) ToCommand() *exec.Cmd
Click to show internal directories.
Click to hide internal directories.