config

package
v0.0.0-...-8814989 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	StashHost              string          `json:"stash_host"`
	StashUsername          string          `json:"stash_username"`
	StashPassword          string          `json:"stash_password"`
	Projects               []projectConfig `json:"stash_projects"`
	LookBackDays           int             `json:"look_back_days"`
	StatsForTheseTeams     []Team          `json:"stats_for_these_teams"`
	IgnoreCommentUsernames []string        `json:"ignore_comments_from_usernames"`
}

func Setup

func Setup(pathToConfig *string) *Config

func (Config) AllMembersLdaps

func (c Config) AllMembersLdaps() []string

func (*Config) TeamsMap

func (c *Config) TeamsMap() map[string]Team

type Team

type Team struct {
	TeamName                   string   `json:"team_name"`
	SlackIncomingWebhookUrl    string   `json:"slack_incoming_webhook_url"`
	SlackNotifyPeopleOnPosting bool     `json:"slack_notify_people_on_posting"`
	SlackRobotName             string   `json:"robot_name"`
	SlackRobotEmoji            string   `json:"robot_emoji"`
	SlackChannelOverride       string   `json:"slack_channel_override"`
	Members                    []string `json:"members_ldap_names"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL