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 ¶
NewK8sConfigFromEnv returns a new K8sConfig or an error.
type PagerdutyConfig ¶
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)
Click to show internal directories.
Click to hide internal directories.