Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bitbucket ¶
type Bitbucket struct { Host string Username string Password string Project string Repository string }
Bitbucket credentials/options
type Calendar ¶
type Calendar struct { Path string Name string Events []CalendarEvent Ical ics.Event `yaml:"-"` // todo temporary way to pass Ical event }
Calendar is able to trigger commands based on ical calendar events
type CalendarEvent ¶
CalendarEvent is one single calender config which should be watched
type Config ¶
type Config struct { Slack Slack `yaml:"slack"` Server Server `yaml:"server"` Jenkins Jenkins `yaml:"jenkins"` Jira Jira `yaml:"jira"` Mqtt Mqtt `yaml:"mqtt"` StoragePath string `yaml:"storage_path"` Bitbucket Bitbucket `yaml:"bitbucket"` Github struct { AccessToken string } Gitlab struct { AccessToken string Host string } Macros []Macro Crons []Cron Logger Logger Calendars []Calendar // @deprecated BranchLookup struct { Type string // stash/bitbucket/git/null Repository string } `yaml:"branch_lookup"` AllowedUsers []string `yaml:"allowed_users,flow"` AdminUsers []string `yaml:"admin_users,flow"` OpenWeather OpenWeather `yaml:"open_weather"` Timezone string `yaml:"timezone"` }
Config contains the full config structure of this bot
func LoadPattern ¶
LoadPattern loads config yaml file(s) by a glob pattern
type Jenkins ¶
type Jenkins struct { Host string Username string Password string Jobs JenkinsJobs }
Jenkins is the main Jenkins config, including credentials and the whitelisted jobs
type JenkinsJobs ¶
JenkinsJobs is the list of all (whitelisted) Jenkins jobs
type JiraField ¶
JiraField are custom Jira issue fields which should be displayed in the search/output Icons can be provided to have special mapping, e.g. for bug type or different priorities
type JobConfig ¶
type JobConfig struct { Parameters []JobParameter Trigger string OnStart []string OnSuccess []string OnFailure []string }
JobConfig concrete job configuration -> only defined jobs are (re)startable
type JobParameter ¶
JobParameter are defined build parameters per job
type Macro ¶
type Macro struct { Name string Description string Trigger string Commands []string Examples []string }
Macro represents a single macro which is defined by a trigger regexp and a list of executed commands
type OpenWeather ¶
OpenWeather is an optional feature to get current weather
type Server ¶
type Slack ¶
type Slack struct { Token string `yaml:"token"` Debug bool `yaml:"debug"` AllowedGroups []string `yaml:"allowed_groups,flow"` AutoJoinChannels []string `yaml:"auto_join_channels,flow"` ErrorChannel string `yaml:"error_channel"` // only used for integration tests TestEndpointUrl string `yaml:"-"` VerificationToken string `yaml:"-"` }
Slack contains the credentials and configuration of the Slack client