config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K8sConfig

type K8sConfig struct {
	// Path to kubeconfig.
	KubeConfig string
}

K8sConfig ...

func NewK8sConfigFromEnv

func NewK8sConfigFromEnv() (*K8sConfig, error)

NewK8sConfigFromEnv returns a new K8sConfig or an error.

type PagerdutyConfig

type PagerdutyConfig struct {
	AuthToken      string
	DefaultEmail   string
	FilterServices []string
}

PagerdutyConfig ...

func NewPagerdutyConfigFromEnv

func NewPagerdutyConfigFromEnv() (*PagerdutyConfig, error)

NewPagerdutyConfigFromEnv returns a new PagerdutyConfig or an error.

type SlackConfig

type SlackConfig struct {
	// BotToken is the Slack token with bot permissions.
	BotToken string

	// BotID is the id of the bot.
	BotID string

	// AccessToken is the Slack token with permissions to list user groups and their members.
	AccessToken string

	// VerificationToken used to verify messages from the Slack API.
	VerificationToken string

	// AuthorizedUserGroupNames is the list of user group names whose members are authorized to interact with the bot.
	AuthorizedUserGroupNames []string

	// KubernetesUserGroupNames is the list of user group names whose members are authorized to perform read operations for kubernetes clusters via the bot.
	KubernetesUserGroupNames []string

	// KubernetesAdminGroupNames is the list of user group names whose members are authorized to perform all operations for kubernetes clusters via the bot.
	KubernetesAdminGroupNames []string

	// APIPort is the port on which the API is exposed.
	APIPort int

	// APIHost is the host on which the API is exposed.
	APIHost string

	// Slack Channel Ids for PD incident sync
	ChannelIdsListForPdSync []string

	// Slack Channel History Message Count which will be scanned
	ChannelMessageHistoryScanCount int
}

SlackConfig ...

func NewSlackConfigFromEnv

func NewSlackConfigFromEnv() (*SlackConfig, error)

Jump to

Keyboard shortcuts

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