config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 28, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BugzillaRelease

type BugzillaRelease struct {
	CurrentTargetRelease string   `yaml:"currentTargetRelease"`
	TargetReleases       []string `yaml:"targetReleases"`
}

type Credentials

type Credentials struct {
	Username               string `yaml:"username"`
	Password               string `yaml:"password"`
	APIKey                 string `yaml:"apiKey"`
	SlackToken             string `yaml:"slackToken"`
	SlackVerificationToken string `yaml:"slackVerificationToken"`
}

func (Credentials) DecodedAPIKey

func (b Credentials) DecodedAPIKey() string

DecodedAPIKey return decoded APIKey (in case it was base64 encoded)

func (Credentials) DecodedPassword

func (b Credentials) DecodedPassword() string

DecodedAPIKey return decoded Password (in case it was base64 encoded)

func (Credentials) DecodedSlackToken

func (b Credentials) DecodedSlackToken() string

func (Credentials) DecodedSlackVerificationToken

func (b Credentials) DecodedSlackVerificationToken() string

func (Credentials) DecodedUsername

func (b Credentials) DecodedUsername() string

DecodedAPIKey return decoded Username (in case it was base64 encoded)

type Group

type Group []string

type OperatorConfig

type OperatorConfig struct {
	Credentials Credentials `yaml:"credentials"`

	StaleBugComment      string `yaml:"staleBugComment"`
	StaleBugCloseComment string `yaml:"staleBugCloseComment"`

	Release    BugzillaRelease `yaml:"release"`
	Components []string        `yaml:"components"`

	Groups map[string]Group `yaml:"groups"`

	// SlackChannel is a channel where the operator will post reports/etc.
	SlackChannel      string `yaml:"slackChannel"`
	SlackAdminChannel string `yaml:"slackAdminChannel"`

	CachePath string `yaml:"cachePath"`
}

func (*OperatorConfig) Anonymize

func (c *OperatorConfig) Anonymize() OperatorConfig

Anonymize makes a shallow copy of the config, suitable for dumping in logs (no sensitive data)

type Transition

type Transition struct {
	From string `yaml:"from"`
	To   string `yaml:"to"`
}

Jump to

Keyboard shortcuts

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